Automattic\WooCommerce
Container::get
Returns an instance of the specified class. See the comment about ContainerException in RuntimeContainer::get.
Method of the class: Container{}
No Hooks.
Returns
T. Object instance.
Usage
$Container = new Container(); $Container->get( $id );
- $id(string) (required)
- Class name.
Container::get() Container::get code WC 10.5.0
public function get( string $id ) {
return $this->container->get( $id );
}