今天,使用作曲家,我已更新了我的应用程序。我的应用程序使用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:518nStack 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
没有更改。
plz,help =)
尝试更改bjyauthorize
配置中的以下行:
'object_manager' => 'doctrine.entity_manager.orm_default'
to
'object_manager' => 'doctrine.entitymanager.orm_default'