Zend\Mvc\Controller\Plugin\Identity
Controller plugin to fetch the authenticated identity.
Synopsis
class Identity
extends AbstractPlugin
{
- // members
- protected AuthenticationService $authenticationService;
- // Inherited members from AbstractPlugin
- protected null|Dispatchable $controller;
- // methods
- public AuthenticationService getAuthenticationService()
- public void setAuthenticationService()
- public mixed|null __invoke()
- // Inherited methods from AbstractPlugin
- public void setController()
- public null|Dispatchable getController()
Hierarchy
Members
protected
- $authenticationService — Zend\Authentication\AuthenticationService
- $controller — Zend\Mvc\Controller\Plugin\null|Dispatchable
Methods
public
- __invoke() — Retrieve the current identity, if any.
- getAuthenticationService()
- setAuthenticationService()
Inherited from Zend\Mvc\Controller\Plugin\AbstractPlugin
public
- getController() — Get the current controller instance
- setController() — Set the current controller instance