Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/kernel/Console/Command/RunScheduledTaskCommand.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) | ||||
{ | { | ||||
$scheduled_task_name = $input->getArgument('scheduled_task_name'); | $scheduled_task_name = $this->io->getArgument('scheduled_task_name'); | ||||
if ( !$scheduled_task_name ) { | if ( !$scheduled_task_name ) { | ||||
$this->Application->EventManager->runScheduledTasks(true); | $this->Application->EventManager->runScheduledTasks(true); | ||||
return 0; | return 0; | ||||
} | } | ||||
if ( !in_array($scheduled_task_name, $this->getScheduledTaskNames()) ) { | if ( !in_array($scheduled_task_name, $this->getScheduledTaskNames()) ) { | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |