setDescription('Start the scheduler'); $this->setHelp( "You should use launch the command and finish it with `&`" . " to return to the console\n\n" . "\tie : bin/console scheduler:start &" ); return $this; } public function execute(InputInterface $input, OutputInterface $output) { if(!setup::is_installed()) { throw new RuntimeException('Phraseanet is not set up'); } require_once dirname(__FILE__) . '/../../../../lib/bootstrap.php'; $scheduler = new task_Scheduler(); $scheduler->run($output, true); return; } }