Automattic\WooCommerce
Container::__construct() public WC 1.0
Class constructor.
{} Это метод класса: Container{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$Container = new Container(); $Container->__construct();
Код Container::__construct() Container:: construct WC 4.9.1
public function __construct() {
$this->container = new ExtendedContainer();
// Add ourselves as the shared instance of ContainerInterface,
// register everything else using service providers.
$this->container->share( \Psr\Container\ContainerInterface::class, $this );
foreach ( $this->service_providers as $service_provider_class ) {
$this->container->addServiceProvider( $service_provider_class );
}
}