Zend framework2 zfc rbac模块异常

Zend framework2 zfc rbac模块异常,zend-framework2,zfc-rbac,Zend Framework2,Zfc Rbac,我在应用程序中集成了该模块,显然有问题!当我执行时,我得到以下异常: Fatal error: Uncaught exception 'Zend \ ServiceManager \ Exception \ ServiceNotCreatedException' with message 'While Attempting to create zfcrbacguards (alias: ZfcRbac \ Guards) WAS an invalid factory registered for

我在应用程序中集成了该模块,显然有问题!当我执行时,我得到以下异常:

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

我什么也没加!只需将模块放入供应商目录

ini_autoloader.php中存在名称空间问题,我添加了zfc rbac模块的名称空间,它可以工作

您是否通过向
application.config.php
添加
ZfcRbac
键来启用应用程序配置中的ZfcRbac模块?是的,我在application.config.phpI的模块列表中添加了ZfcRbac,找到了答案,ini_autoloader.php中有一个名称空间问题,我添加了zfc rbac模块的名称空间,它可以工作。