Automattic\WooCommerce

Container::__construct()publicWC 1.0

Class constructor.

Method of the class: Container{}

No Hooks.

Return

null. Nothing (null).

Usage

$Container = new Container();
$Container->__construct();

Container::__construct() code WC 8.7.0

public function __construct() {
	$this->container = new ExtendedContainer();

	// Add ourselves as the shared instance of ContainerInterface,
	// register everything else using service providers.

	$this->container->share( __CLASS__, $this );

	foreach ( $this->service_providers as $service_provider_class ) {
		$this->container->addServiceProvider( $service_provider_class );
	}
}