Action_Scheduler\WP_CLI

Migration_Command::get_migration_config()privateWC 1.0

Build the config object used to create the Runner

Method of the class: Migration_Command{}

No Hooks.

Return

ActionScheduler\Migration\Config.

Usage

// private - for code of main (parent) class only
$result = $this->get_migration_config( $args );
$args(array) (required)
Optional arguments.

Migration_Command::get_migration_config() code WC 9.4.2

private function get_migration_config( $args ) {
	$args = wp_parse_args( $args, [
		'dry-run' => false,
	] );

	$config = Controller::instance()->get_migration_config_object();
	$config->set_dry_run( ! empty( $args[ 'dry-run' ] ) );

	return $config;
}