我在我的应用程序中集成了模块zfcrbac
,显然存在问题!当我执行时,我得到以下异常:
Fatal error: Uncaught exception 'Zend \ ServiceManager \ Exception \ ServiceNotCreatedException' with message 'While Attempting to create zfcrbacguards (alias: ZfcRbac \ Guards) WAS an invalid factory registered for this instance types.' in C: \ wamp \ www \ SSO \ vendor \ ZF2 \ library \ Zend \ ServiceManager \ ServiceManager.php on line 1031
我什么都没加!只需将模块放在供应商目录中即可!
答案 0 :(得分:1)
ini_autoloader.php中存在名称空间问题,我添加了zfc-rbac模块的名称空间并且可以正常工作