Automattic\WooCommerce\Internal\ProductAttributesLookup
CLIRunner::__construct()
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.
Метод класса: CLIRunner{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$CLIRunner = new CLIRunner(); $CLIRunner->__construct();
Код CLIRunner::__construct() CLIRunner:: construct WC 9.7.1
public function __construct() { $container = wc_get_container(); $this->data_regenerator = $container->get( DataRegenerator::class ); $this->lookup_data_store = $container->get( LookupDataStore::class ); }