Пример #1
0
 /**
  * Execute
  *
  * @param \Symfony\Component\Console\Input\InputInterface $input The command input
  * @param \Symfony\Component\Console\Output\OutputInterface $output The command output
  *
  * @return void
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $io = new SymfonyStyle($input, $output);
     $state = $this->buildState($input);
     try {
         $state = $this->extractor->execute($state);
         $io->success('Extract');
         $state = $this->transformer->execute($state);
         $io->success('Transform');
         $this->loader->execute($state);
         $io->success('Load');
     } catch (\Exception $e) {
         $io->error($e->getMessage());
     }
 }