protected function execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) { $start = time(); $this->processEvents->process(); $end = time(); if ($end - $start < 2) { sleep(1); } }
public function startup() { parent::startup(); if (!$this->user->isLoggedIn()) { $this->redirect(':Front:Homepage:default'); } // TODO temporary solution // TODO this works only for one user // TODO call this only from daemon like supervisor $this->processEvent->process(); }