You are here

protected function ImportCommand::execute in Configuration Split 8

File

src/Command/ImportCommand.php, line 38

Class

ImportCommand
Class ImportCommand.

Namespace

Drupal\config_split\Command

Code

protected function execute(InputInterface $input, OutputInterface $output) {
  try {

    // Make the magic happen.
    $this->cliService
      ->ioImport($input
      ->getOption('split'), $this
      ->getIo(), [
      $this,
      't',
    ], $input
      ->getOption('yes'));
  } catch (\Exception $e) {
    $this
      ->getIo()
      ->error($e
      ->getMessage());
  }
}