Automattic\WooCommerce\Blocks\Domain

Bootstrap::__construct()publicWC 1.0

Constructor

{} Это метод класса: Bootstrap{}

Хуки из метода

Возвращает

null. Ничего.

Использование

$Bootstrap = new Bootstrap();
$Bootstrap->__construct( $container );
$container(Container) (обязательный)
The Dependency Injection Container.

Код Bootstrap::__construct() WC 6.7.0

public function __construct( Container $container ) {
	$this->container = $container;
	$this->package   = $container->get( Package::class );
	if ( $this->has_core_dependencies() ) {
		$this->init();
		/**
		 * Fires after WooCommerce Blocks plugin has loaded.
		 *
		 * This hook is intended to be used as a safe event hook for when the plugin has been loaded, and all
		 * dependency requirements have been met.
		 */
		do_action( 'woocommerce_blocks_loaded' );
	}
}