Zend framework zfcuser、bjyauthorize和orm类的最新消息

Zend framework zfcuser、bjyauthorize和orm类的最新消息,zend-framework,zfcuser,bjyauthorize,zfdoctrine,Zend Framework,Zfcuser,Bjyauthorize,Zfdoctrine,我正在与zfcuser、zfcuser和bjyauthorize合作,但我不确定如何处理所有配置。我已经坐好了 return array( 'bjyauthorize' => array( // default role for unauthenticated users 'default_role' => 'guest', // default role for authenticated users (if using th

我正在与zfcuser、zfcuser和bjyauthorize合作,但我不确定如何处理所有配置。我已经坐好了

return array(
    'bjyauthorize' => array(
        // default role for unauthenticated users
        'default_role' => 'guest',
        // default role for authenticated users (if using the
        // 'BjyAuthorize\Provider\Identity\AuthenticationIdentityProvider' identity provider)
        'authenticated_role' => 'user',
        // identity provider service name
        'identity_provider' => 'BjyAuthorize\Provider\Identity\AuthenticationDoctrineEntity',
        // Role providers to be used to load all available roles into Zend\Permissions\Acl\Acl
        // Keys are the provider service names, values are the options to be passed to the provider
        'role_providers' => array(
            /* here, 'guest' and 'user are defined as top-level roles, with
             * 'admin' inheriting from user
             */
            'BjyAuthorize\Provider\Role\DoctrineEntity' => array(
                'role_entity_class' => 'Application\Entity\Role',
            ),

[...]
(我正在使用@ocramius on建议的BjyAuthorize\Provider\Role\DoctrineEntity)

但是“BjyAuthorize\Provider\Role\DoctrineEntity”不在模块中,也不在工厂中。我尝试使用:

'BjyAuthorize\Provider\Role\DoctrineEntity' => 'BjyAuthorize\Service\DoctrineEntityRoleProviderFactory',
但它不起作用:

Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotCreatedException' with message 'While attempting to create bjyauthorizeproviderroledoctrineentity(alias: BjyAuthorize\Provider\Role\DoctrineEntity) an invalid factory was registered for this instance type.' in D:\wamp\www\vidum\src\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php on line 860

有人知道这个工厂的类是什么吗?

连接条令角色提供程序的正确类是

BjyAuthorize\Provider\Role\ObjectRepositoryProvider


您可以看到一个示例设置。

只是想知道这对您来说是否仍然是一个实时问题?