Class Identity

Summary

Fully Qualified Name: Zend\Mvc\Plugin\Identity\Identity
Extends: AbstractPlugin

Description

Controller plugin to fetch the authenticated identity.

Methods

Name Description Defined By
__invoke() Retrieve the current identity, if any. Identity
getAuthenticationService() Identity
getController() Get the current controller instance AbstractPlugin
setAuthenticationService() Identity
setController() Set the current controller instance AbstractPlugin

Method Details

__invoke()

Retrieve the current identity, if any.

If none is present, returns null.

Returns: mixed|null

getAuthenticationService()

Returns: \AuthenticationServiceInterface

getController()

Get the current controller instance

Returns: null|\Dispatchable

setAuthenticationService()

Parameter Name Type Description
$authenticationService \AuthenticationServiceInterface

Returns:

setController()

Set the current controller instance

Parameter Name Type Description
$controller \Dispatchable

Returns: void

Top