schmittjoh / JMSJobQueueBundle

Run and Schedule Symfony Console Commands as Background Jobs
http://jmsyst.com/bundles/JMSJobQueueBundle
335 stars 254 forks source link

Exception when running as stated on the installation documentation #65

Closed garciall closed 10 years ago

garciall commented 10 years ago

I've tried in two different SF2 instances and always get the same error with every branch:

FatalErrorException: Error: Call to a member function getManagerForClass() on a non-object in /var/www/sf2/vendor/jms/job-queue-bundle/JMS/JobQueueBundle/Controller/JobController.php line 155

garciall commented 10 years ago

I answer myself... you need to add this two lines to AppKernel.php (not stated anywhere)

new JMS\DiExtraBundle\JMSDiExtraBundle($this), new JMS\AopBundle\JMSAopBundle(),