Controller plugin to fetch the authenticated identity.

package Default
inherited_from \Zend\Mvc\Controller\Plugin\AbstractPlugin

 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\AuthenticationServiceInterface

Returns

\Zend\Authentication\AuthenticationServiceInterface

Get the current controller instance

getController() : null | \Zend\Stdlib\DispatchableInterface
Inherited
inherited_from \Zend\Mvc\Controller\Plugin\PluginInterface::getController()

Returns

null\Zend\Stdlib\DispatchableInterface

setAuthenticationService()

setAuthenticationService(\Zend\Authentication\AuthenticationServiceInterface $authenticationService) 

Parameters

$authenticationService

\Zend\Authentication\AuthenticationServiceInterface

Set the current controller instance

setController(\Zend\Stdlib\DispatchableInterface $controller) : void
Inherited
inherited_from \Zend\Mvc\Controller\Plugin\PluginInterface::setController()

Parameters

$controller

\Zend\Stdlib\DispatchableInterface

 Properties

 

$authenticationService

$authenticationService : \Zend\Authentication\AuthenticationServiceInterface

Default

 

$controller

$controller : null | \Zend\Stdlib\DispatchableInterface

Default