Automattic\WooCommerce
Container::get
Returns an instance of the specified class. See the comment about ContainerException in RuntimeContainer::get.
Метод класса: Container{}
Хуков нет.
Возвращает
T. Object instance.
Использование
$Container = new Container(); $Container->get( $id );
- $id(строка) (обязательный)
- Class name.
Код Container::get() Container::get WC 11.0.1
public function get( string $id ) {
return $this->container->get( $id );
}