今天,使用作曲家,我更新了我的应用程序。 我的应用程序使用zfcUser / BjyAuthorize / Doctrine 2模块。 现在,更新后,我发现了这个错误:
PHP Fatal error: Uncaught exception 'Zend\\ServiceManager\\Exception\\ServiceNotFoundException' with message 'Zend\\ServiceManager\\ServiceManager::get was unable to fetch or create an instance for doctrine.entity_manager.orm_default' in /var/www/zf/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:518\nStack trace:\n#0 /var/www/zf/vendor/bjyoungblood/bjy-authorize/src/BjyAuthorize/Service/ObjectRepositoryRoleProviderFactory.php(50): Zend\\ServiceManager\\ServiceManager->get('doctrine.entity...')\n#1 [internal function]: BjyAuthorize\\Service\\ObjectRepositoryRoleProviderFactory->createService(Object(Zend\\ServiceManager\\ServiceManager), 'bjyauthorizepro...', 'BjyAuthorize\\Pr...')\n#2 /var/www/zf/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(897): call_user_func(Array, Object(Zend\\ServiceManager\\ServiceManager), 'bjyauthorizepro...', 'BjyAuthorize\\Pr...')\n#3 /var/www/zf/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(1027): Zend\\ServiceMan in /var/www/zf/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 518
Сode没有改变。
Plz,help =)
答案 0 :(得分:4)
尝试更改bjyauthorize
配置中的以下行:
'object_manager' => 'doctrine.entity_manager.orm_default'
,以
'object_manager' => 'doctrine.entitymanager.orm_default'