Example #1
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     // Locate
     $config = new Config();
     $config->load(getcwd());
     // We need to use $argv directly, as otherwise we cannot retrieve all
     // arguments and options.
     global $argv;
     $arguments = $argv;
     // The first is the command itself.
     array_shift($arguments);
     $command = array_shift($arguments);
     $config->getCommand($command)->execute($arguments);
 }