Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
Identity Class Reference

Controller plugin to fetch the authenticated identity. More...

Public Member Functions

 getAuthenticationService ()
 
 setAuthenticationService (AuthenticationServiceInterface $authenticationService)
 
 __invoke ()
 Retrieve the current identity, if any.
 
- Public Member Functions inherited from AbstractPlugin
 setController (Dispatchable $controller)
 Set the current controller instance.
 
 getController ()
 Get the current controller instance.
 

Protected Attributes

 $authenticationService
 
- Protected Attributes inherited from AbstractPlugin
 $controller
 

Detailed Description

Controller plugin to fetch the authenticated identity.

Member Function Documentation

__invoke ( )

Retrieve the current identity, if any.

If none is present, returns null.

Returns
mixed|null
Exceptions
Exception\RuntimeException
getAuthenticationService ( )
Returns
AuthenticationServiceInterface
setAuthenticationService ( AuthenticationServiceInterface  $authenticationService)
Parameters
AuthenticationServiceInterface$authenticationService

Member Data Documentation

$authenticationService
protected