我在应用程序中集成了模块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
我什么也没加!只需将模块放在供应商目录中即可!
在ini_autoloader.php中存在名称空间问题,我添加了zfc rbac模块的名称空间,它可以使用