Exemplo n.º 1
0
 /**
  * Passes the given options and arguments to Pyrus for execution
  *
  * @param InputInterface $input
  * @param OutputInterface $output
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $tokens = $this->inputDefinition->getTokens($input);
     array_shift($tokens); // remove pyrus
     $pyrus = new Pyrus($this->getContainer( ));
     $pyrus->run($tokens);
 }
Exemplo n.º 2
0
 private function installPackage($package, $output) {
     $pyrus = new Pyrus($this->getContainer( ));
     $pyrus->run(array('install', $package));
     return;
 }