Closed parsadev closed 10 years ago
Hi,
IdentityProvider is expected to return an object that return IdentityInterface (https://github.com/ZF-Commons/ZfcRbac/blob/master/src/ZfcRbac/Identity/IdentityProviderInterface.php#L29)
You must therefore make your User entity implement this interface.
Hi,
Yes, your codes say it must implement IdentityInterface, but in the documentation there is no any reference to this, so I confused that it is because of mistake in the code layer or documentation is incomplete.
Thanks
You shoul follow the interface.
By the way please notice a new version is under the way, I'll ipdatz the documentation to outline that :).
Envoyé de mon iPhone
Le 15 déc. 2013 à 11:52, parsadev notifications@github.com a écrit :
Hi,
Yes, your codes say it must implement IdentityInterface, but in the documentation there is no any reference to this, so I confused that it is because of mistake in the code layer or documentation is incomplete.
Thanks
— Reply to this email directly or view it on GitHub.
hey, I'm getting this same message but how to implement this interface. Could you please redirect me to some positive direction.
Thanks.
@rizaozden You should implement IdentityInterface
in your User
entity as follows: https://github.com/ZF-Commons/zfc-rbac/blob/master/docs/07.%20Cookbook.md#using-zfcrbac-with-doctrine-orm
Hi,
There is a problem when I'm calling 'ZfcRbac\Service\AuthorizationService' service:
ZfcRbac\Exception\RuntimeException
File:
Message:
Stack trace:
IdentityProvider returns identity as a string, but ZfcRbac\Service\AuthorizationService expects returned identity implement IdentityInterface .
Regards, Parsa