Esempio n. 1
0
 public function execute(InputStream $in, OutputStream $out)
 {
     $out->write($in->getArgument('--boolean'));
     $out->write($in->getArgument('string'));
     $out->write(implode("-", $in->getArgument('array')));
     $out->flush();
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function execute(InputStream $in, OutputStream $out)
 {
     $operation = $in->getArgument('-o');
     switch ($in->getArgument('-o')) {
         case 'create':
             $this->createOperation($out);
             break;
         case 'upgrade':
             $this->upgradeOperation($out);
             break;
         case 'downgrade':
             $this->downgradeOperation($out);
             break;
         default:
             throw new OperationNotSupportedException($operation);
     }
 }
Esempio n. 3
0
 public function execute(InputStream $in, OutputStream $out)
 {
     $out->write($this->testService->getText() . ' ' . $in->getArgument('--name'));
     $out->flush();
 }