ZF-Commons / ZfcUserDoctrineORM

Doctrine2 ORM storage adapter for ZfcUser.
BSD 3-Clause "New" or "Revised" License
89 stars 92 forks source link

Invalid event subscriber "Closure" given, must be a service name, class name or an instance implementing Doctrine\Common\EventSubscriber #24

Closed ghost closed 12 years ago

ghost commented 12 years ago

Hi there, I got an error. See https://github.com/doctrine/DoctrineModule/issues/54

Regards

EvanDotPro commented 12 years ago

I see you closed this issue -- were you able to resolve it on your end?

ghost commented 12 years ago

No i was no able to. Here is another trace when i'm trying to log-in:

File:

vendor\doctrine\doctrine-module\src\DoctrineModule\Service\EventManagerFactory.php:58

Message:

Invalid event subscriber "Closure" given, must be a service name, class name or an instance implementing Doctrine\Common\EventSubscriber

Stack trace:

#0 [internal function]: DoctrineModule\Service\EventManagerFactory->createService(Object(Zend\ServiceManager\ServiceManager), 'doctrine.eventm...', 'doctrine.eventm...')
#1 vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(672): call_user_func(Array, Object(Zend\ServiceManager\ServiceManager), 'doctrine.eventm...', 'doctrine.eventm...')
#2 vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(763): Zend\ServiceManager\ServiceManager->createServiceViaCallback(Array, 'doctrine.eventm...', 'doctrine.eventm...')
#3 vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(438): Zend\ServiceManager\ServiceManager->createFromFactory('doctrine.eventm...', 'doctrine.eventm...')
#4 vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(391): Zend\ServiceManager\ServiceManager->create(Array)
#5 vendor\doctrine\doctrine-module\src\DoctrineModule\Service\ConnectionFactory.php(57): Zend\ServiceManager\ServiceManager->get('doctrine.eventm...')
#6 [internal function]: DoctrineModule\Service\ConnectionFactory->createService(Object(Zend\ServiceManager\ServiceManager), 'doctrine.connec...', 'doctrine.connec...')
#7 vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(672): call_user_func(Array, Object(Zend\ServiceManager\ServiceManager), 'doctrine.connec...', 'doctrine.connec...')
#8 vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(763): Zend\ServiceManager\ServiceManager->createServiceViaCallback(Array, 'doctrine.connec...', 'doctrine.connec...')
#9 vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(438): Zend\ServiceManager\ServiceManager->createFromFactory('doctrine.connec...', 'doctrine.connec...')
#10 vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(391): Zend\ServiceManager\ServiceManager->create(Array)
#11 vendor\doctrine\doctrine-orm-module\src\DoctrineORMModule\Service\EntityManagerFactory.php(14): Zend\ServiceManager\ServiceManager->get('doctrine.connec...')
#12 [internal function]: DoctrineORMModule\Service\EntityManagerFactory->createService(Object(Zend\ServiceManager\ServiceManager), 'doctrine.entity...', 'doctrine.entity...')
#13 vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(672): call_user_func(Array, Object(Zend\ServiceManager\ServiceManager), 'doctrine.entity...', 'doctrine.entity...')
#14 vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(763): Zend\ServiceManager\ServiceManager->createServiceViaCallback(Array, 'doctrine.entity...', 'doctrine.entity...')
#15 vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(438): Zend\ServiceManager\ServiceManager->createFromFactory('doctrine.entity...', 'doctrine.entity...')
#16 vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php(391): Zend\ServiceManager\ServiceManager->create(Array)
#17 module\Application\src\Application\Model\Service\CommonService.php(52): Zend\ServiceManager\ServiceManager->get('doctrine.entity...')
#18 module\Membre\src\Membre\Model\Service\AuthenticationService.php(35): Application\Model\Service\CommonService->getEm()
#19 module\Membre\src\Membre\Model\Service\MembreService.php(129): Membre\Model\Service\AuthenticationService->authenticate('prod@prod.com', 'admin')
#20 module\Membre\src\Membre\Controller\IdentificationController.php(23): Membre\Model\Service\MembreService->identification('prod@prod.com', 'admin')
#21 vendor\zendframework\zendframework\library\Zend\Mvc\Controller\AbstractActionController.php(137): Membre\Controller\IdentificationController->loginAction()
#22 [internal function]: Zend\Mvc\Controller\AbstractActionController->execute(Object(Zend\Mvc\MvcEvent))
#23 vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(453): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#24 vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(193): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#25 vendor\zendframework\zendframework\library\Zend\Mvc\Controller\AbstractActionController.php(104): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#26 vendor\zendframework\zendframework\library\Zend\Mvc\DispatchListener.php(139): Zend\Mvc\Controller\AbstractActionController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#27 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#28 vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(453): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#29 vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(193): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#30 vendor\zendframework\zendframework\library\Zend\Mvc\Application.php(305): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#31 library\Mix\Mvc\Application.php(46): Zend\Mvc\Application->run()
ghost commented 12 years ago

I think this issue is relative to DoctrineORMModule https://github.com/doctrine/DoctrineORMModule/issues/81

ghost commented 12 years ago

Ocramius tell me that this issue is relative to ZfcUserDoctrineORM:

https://github.com/doctrine/DoctrineORMModule/issues/81

ghost commented 12 years ago

This error occurs even with ZfcUser and ZfcUserDoctrineORM deactivated.