Controller plugin to fetch the authenticated identity.

 Methods

Retrieve the current identity, if any.

__invoke() : mixed | null

If none is present, returns null.

Exceptions

\Zend\Mvc\Exception\RuntimeException

Returns

mixednull

getAuthenticationService()

getAuthenticationService() : \Zend\Authentication\AuthenticationService

Get the current controller instance

getController() : null | \Zend\Stdlib\DispatchableInterface
Inherited

inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin::getController()

Returns

setAuthenticationService()

setAuthenticationService(\Zend\Authentication\AuthenticationService $authenticationService) 

Parameters

Set the current controller instance

setController(\Zend\Stdlib\DispatchableInterface $controller) : void
Inherited

inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin::setController()

Parameters

 Properties

 

$authenticationService

$authenticationService : \Zend\Authentication\AuthenticationService

 

$controller

$controller : null | \Zend\Stdlib\DispatchableInterface
Inherited

inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin::$$controller