Automattic\WooCommerce\Internal\CLI\Migrator\Core
ProductsController::init
Initialize the controller with its dependencies. Called automatically by the WooCommerce DI container.
Метод класса: ProductsController{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ProductsController = new ProductsController(); $ProductsController->init( $credential_manager, $platform_registry, $product_importer, $tracker ): void;
- $credential_manager(CredentialManager) (обязательный)
- The credential manager.
- $platform_registry(PlatformRegistry) (обязательный)
- The platform registry.
- $product_importer(WooCommerceProductImporter) (обязательный)
- The product importer.
- $tracker(MigratorTracker) (обязательный)
- The migration tracker.
Код ProductsController::init() ProductsController::init WC 11.0.1
final public function init(
CredentialManager $credential_manager,
PlatformRegistry $platform_registry,
WooCommerceProductImporter $product_importer,
MigratorTracker $tracker
): void {
$this->credential_manager = $credential_manager;
$this->platform_registry = $platform_registry;
$this->product_importer = $product_importer;
$this->tracker = $tracker;
}