diff --git a/Controller/JobController.php b/Controller/JobController.php index 39d5fddf..33bacb9a 100644 --- a/Controller/JobController.php +++ b/Controller/JobController.php @@ -160,14 +160,19 @@ public function retryJobAction(Job $job) } /** @return \Doctrine\ORM\EntityManager */ - private function getEm() + protected function getEm() { return $this->registry->getManagerForClass('JMSJobQueueBundle:Job'); } /** @return \JMS\JobQueueBundle\Entity\Repository\JobRepository */ - private function getRepo() + protected function getRepo() { return $this->getEm()->getRepository('JMSJobQueueBundle:Job'); } + + protected function getRouter() + { + return $this->router; + } }