Automattic\WooCommerce\DataBase\Migrations\CustomOrderTable

CLIRunner::init()publicWC 1.0

Init method, invoked by DI container.

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

Хуков нет.

Возвращает

null. Ничего.

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

$CLIRunner = new CLIRunner();
$CLIRunner->init( $controller, $synchronizer, $posts_to_orders_migration_controller );
$controller(CustomOrdersTableController) (обязательный)
Instance.
$synchronizer(DataSynchronizer) (обязательный)
Instance.
$posts_to_orders_migration_controller(PostsToOrdersMigrationController) (обязательный)
Instance.

Код CLIRunner::init() WC 6.8.0

final public function init( CustomOrdersTableController $controller, DataSynchronizer $synchronizer, PostsToOrdersMigrationController $posts_to_orders_migration_controller ) {
	$this->controller           = $controller;
	$this->synchronizer         = $synchronizer;
	$this->post_to_cot_migrator = $posts_to_orders_migration_controller;
}