我正在尝试让ZfcUser,ZfcAdmin和BjyAuthorize一起工作。
现在我收到了这个错误:
致命错误:未捕获的异常 “的Zend \的ServiceManager \ EXC
eption\ServiceNotFoundException' with message 'Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for My\Doctrine\Common\Persistence\ObjectManager' in C:\path_to_project\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php on line 495
我在这个项目中没有使用Doctrine。 我已经发现问题出在bjyauthorize.global.php文件中。
我需要更改object_manager。
由于我对Zend Framework 2或BjyAuthorize不太熟悉。 现在我只是不知道我需要在这里输入什么。
希望你们能帮助我。
答案 0 :(得分:0)
我遇到了和你一样的问题,虽然对你来说可能已经很晚了,如果有其他人有问题: Doctrine \ Common \ Persistence \ ObjectManager 或 Doctrine \ ORM \ EntityManager
更好的是,这是一个很好的指南(如果您只是想下载模块,请滚动到底部): http://samminds.com/2013/03/zfcuser-bjyauthorize-and-doctrine-working-together/