-
Notifications
You must be signed in to change notification settings - Fork 111
Fllow the cookbook I get a problem not fund the authorizationservice #370
Comments
Are you sure you have registered the ZfcRbac Module in config/application.php Looks like this https://github.com/ZF-Commons/zfc-rbac/blob/master/config/module.config.php#L33 configuration isn’t active…
… On 1 May 2017, at 16:44, Dreamseekai ***@***.***> wrote:
class Module
{
// getAutoloaderConfig(), getConfig(), etc...
public function getServiceConfig()
{
return [
'factories' => [
'PostService' => function($sm) {
return new PostService(
$sm->get('doctrine.entitymanager.orm_default'),
$sm->get('ZfcRbac\Service\AuthorizationService') // This is new!
);
}
]
]; Can not fund the ZfcRbac\Service\AuthorizationService?why. And how fix it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#370>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAIu3MVyKShVJNSX-dxLC_oVjaio2J5Wks5r1e_RgaJpZM4NNGAa>.
|
first thank you for your answer. i flow the cookbook get this fatal error~~ please give me sime idea~ |
@ashatrov can you provide a PR including tests? |
look here please-----
Fatal error: Uncaught Zend\ServiceManager\Exception\ServiceNotFoundException: Unable to resolve service "Zend\Authentication\AuthenticationService" to a factory; are you certain you provided it during configuration? in D:\phpStudy\WWW\ZF3\vendor\zendframework\zend-servicemanager\src\ServiceManager.php:681 Stack trace: #0 D:\phpStudy\WWW\ZF3\vendor\zendframework\zend-servicemanager\src\ServiceManager.php(757): Zend\ServiceManager\ServiceManager->getFactory('Zend\Authentica...') #1 D:\phpStudy\WWW\ZF3\vendor\zendframework\zend-servicemanager\src\ServiceManager.php(200): Zend\ServiceManager\ServiceManager->doCreate('Zend\Authentica...') #2 D:\phpStudy\WWW\ZF3\vendor\zf-commons\zfc-rbac\src\ZfcRbac\Factory\AuthenticationIdentityProviderFactory.php(43): Zend\ServiceManager\ServiceManager->get('Zend\Authentica...') #3 D:\phpStudy\WWW\ZF3\vendor\zendframework\zend-servicemanager\src\ServiceManager.php(758): ZfcRbac\Factory\AuthenticationIdentityProviderFactory->__invoke(Object(Zend\ServiceManager\ServiceManager), 'ZfcRbac\Id in D:\phpStudy\WWW\ZF3\vendor\zendframework\zend-servicemanager\src\ServiceManager.php on line 681
i flow the cookbook get this fatal error~~ please give me sime idea~
The text was updated successfully, but these errors were encountered: