doctrine-extensions / DoctrineExtensions

Doctrine2 behavioral extensions, Translatable, Sluggable, Tree-NestedSet, Timestampable, Loggable, Sortable
MIT License
4.03k stars 1.27k forks source link

Unable to fetch or create an instance for Gedmo\Translatable\TranslatableListener #1136

Closed pensiero closed 2 years ago

pensiero commented 10 years ago

Hi, i have updated today all the composer and I received this error:

Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotFoundException' with message 'Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for Gedmo\Translatable\TranslatableListener' in /Users/Oscar/Sites/Copernicum/git/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 529

When I try to do this: $translatableListener = $serviceManager->get('Gedmo\Translatable\TranslatableListener');

Do you know why? This is my module.config.php: https://gist.github.com/Gamempire/36a2a3fa09b0ef150ab9

Thanks

stof commented 10 years ago

well, it looks like you need to register a service for the Gedmo\Translatable\TranslatableListener in your service manager, given that the exception is Zend\ServiceManager\Exception\ServiceNotFoundException. I cannot help you with the way to do it though. I'm a Symfony guy. I don't know how the ZF ServiceManager works

pensiero commented 10 years ago

Thanks, so there could be a trouble with the doc… I perfectly follow this, but without success: https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/zendframework2.md

Il giorno 12/ago/2014, alle ore 19:18, Christophe Coevoet notifications@github.com ha scritto:

well, it looks like you need to register a service for the Gedmo\Translatable\TranslatableListener in your service manager, given that the exception is Zend\ServiceManager\Exception\ServiceNotFoundException. I cannot help you with the way to do it though. I'm a Symfony guy. I don't know how the ZF ServiceManager works

— Reply to this email directly or view it on GitHub.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.