Example #1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $task = $input->getOption('task');
     $event = new Deploy\Event\Event();
     // $eventInput = new ArrayInput(array('env' => $this->_services['env']));
     $event->setInput($input);
     $event->setOutput($output);
     $event->setCommandCollection($this->_services['console.commands']);
     if ($input->getOption('before')) {
         $this->get('event.dispatcher')->dispatch('cog.deploy.before.' . $task, $event);
     } else {
         $this->get('event.dispatcher')->dispatch('cog.deploy.after.' . $task, $event);
     }
 }
Example #2
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $event = new Deploy\Event\Event();
     $event->setOutput($output);
     $this->get('event.dispatcher')->dispatch('cog.deploy.permissions', $event);
 }