ZF-Commons / zfc-rbac

Role-based access control module to provide additional features on top of Zend\Permissions\Rbac
BSD 3-Clause "New" or "Revised" License
181 stars 111 forks source link

ServiceNotFoundException #177

Closed e-belair closed 10 years ago

e-belair commented 10 years ago

After install ~2.0 of ZrcRbac, i still get this error:

Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotFoundException' with message 'Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for Zend\Authentication\AuthenticationService' in /var/www/myapp/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 518
( ! ) Zend\ServiceManager\Exception\ServiceNotFoundException: Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for Zend\Authentication\AuthenticationService in /var/www/myapp/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 518

I don't understand this part of the doc: https://github.com/ZF-Commons/zfc-rbac/blob/master/docs/02.%20Quick%20Start.md#specifying-an-identity-provider

jmfiaschi commented 10 years ago

Hi,

This page can help you : https://github.com/ZF-Commons/zfc-rbac/blob/master/docs/06.%20Using%20the%20Authorization%20Service.md

You need to specify your Authorization Service.

e-belair commented 10 years ago

I found the solution here : https://github.com/ZF-Commons/zfc-rbac/blob/master/docs/07.%20Cookbook.md#using-zfcrbac-and-zfcuser