Update console commands

This commit is contained in:
Romain Neutron
2012-09-21 14:53:04 +02:00
parent 0343baf8ba
commit 06b4e6bc6f
13 changed files with 195 additions and 214 deletions

View File

@@ -39,8 +39,7 @@ class module_console_schedulerStop extends Command
protected function doExecute(InputInterface $input, OutputInterface $output)
{
try {
$appbox = $this->getService('phraseanet.appbox');
$task_manager = new task_manager($appbox);
$task_manager = new task_manager($this->container);
$task_manager->setSchedulerState(task_manager::STATE_TOSTOP);
return 0;