Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/kernel/Console/Command/RunEventCommand.php
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
* | * | ||||
* @param InputInterface $input An InputInterface instance. | * @param InputInterface $input An InputInterface instance. | ||||
* @param OutputInterface $output An OutputInterface instance. | * @param OutputInterface $output An OutputInterface instance. | ||||
* | * | ||||
* @return null|integer | * @return null|integer | ||||
*/ | */ | ||||
protected function execute(InputInterface $input, OutputInterface $output) | protected function execute(InputInterface $input, OutputInterface $output) | ||||
{ | { | ||||
$event_name = $input->getArgument('event_name'); | $event_name = $this->io->getArgument('event_name'); | ||||
$run_event = new \kEvent($event_name); | $run_event = new \kEvent($event_name); | ||||
$this->Application->HandleEvent($run_event); | $this->Application->HandleEvent($run_event); | ||||
return $run_event->status == \kEvent::erSUCCESS ? 0 : 64; | return $run_event->status == \kEvent::erSUCCESS ? 0 : 64; | ||||
} | } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |