Automattic\WooCommerce\Internal\ProductAttributesLookup

CLIRunner::__constructpublicWC 1.0

Creates a new instance of the class.

Normally we define a public 'init' method with the class dependencies passed as arguments and then the DI container executes it, but if we do that a dummy command will be created for that method. Therefore, in this case we retrieve the dependencies manually instead.

Method of the class: CLIRunner{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

CLIRunner::__construct() code WC 9.9.5

public function __construct() {
	$container               = wc_get_container();
	$this->data_regenerator  = $container->get( DataRegenerator::class );
	$this->lookup_data_store = $container->get( LookupDataStore::class );
}