Search code examples
zend-framework2zfc-rbac

zfc-rbac module exception


I integrated the module zfcrbac in my application, apparently there's a problem! when I execute I get the following exception:

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

I added nothing! just put the module in the vendor directory!


Solution

  • There was a namespaces problem in ini_autoloader.php , i added namespace of zfc-rbac module and it works