Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Problem in return getIdentity( ) #122

Open
marcoscg opened this issue Jul 18, 2016 · 3 comments
Open

Problem in return getIdentity( ) #122

marcoscg opened this issue Jul 18, 2016 · 3 comments

Comments

@marcoscg
Copy link

In Resource I use the method $this->getIdentity() to indetificar the user, but it is returning null in this latest update.

class PedResource extends AbstractResourceListener
{
public function fetch($id)
{
$user = $this->getIdentity(); //return null
.
.
.
}
}

@michalbundyra
Copy link
Member

I think it is because of #117, fixed in #120. Can you check please PR #120 and confirm if it works with your code?

@marcoscg
Copy link
Author

It worked!

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools-mvc-auth; a new issue has been opened at laminas-api-tools/api-tools-mvc-auth#5.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants