Пример #1
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $name = $input->getArgument('name');
     if (!($manifest = $this->chain->getManifest($name))) {
         throw new ManifestNotFoundException($name);
     }
     $this->describeManifest($manifest, $output);
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $name = $input->getArgument('name');
     $manifest = $this->chain->getManifest($name);
     if (!$manifest) {
         throw new ManifestNotFoundException($name);
     }
     $this->applyInputData($manifest, $input->getOption('input'));
     $this->runManifest($manifest);
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $manifests = $this->chain->getManifests();
     $rows = array();
     /** @var ManifestInterface $manifest */
     foreach ($manifests as $manifest) {
         $rows[] = array($manifest->getName());
     }
     $table = new Table($output);
     $table->setHeaders(array('Manifest name'))->setRows($rows);
     $table->render($output);
 }