Fully Qualified Name: | Laminas\Session\Validator\AbstractValidatorChainEM2 |
Extends: | EventManager |
Abstract validator chain for validating sessions (for use with laminas-eventmanager v2).
Name | Description | Defined By |
---|---|---|
__construct() | Construct the validation chain | AbstractValidatorChainEM2 |
addIdentifiers() | EventManager | |
attach() | Attach a listener to the session validator chain. | AbstractValidatorChainEM2 |
clearListeners() | EventManager | |
detach() | EventManager | |
getIdentifiers() | EventManager | |
getSharedManager() | Retrieve the shared event manager, if composed. | EventManager |
prepareArgs() | Prepare arguments | EventManager |
setEventPrototype() | EventManager | |
setIdentifiers() | EventManager | |
trigger() | EventManager | |
triggerEvent() | EventManager | |
triggerEventUntil() | EventManager | |
triggerUntil() | EventManager |
Construct the validation chain
Retrieves validators from session storage and attaches them.
Duplicated in ValidatorChainEM3 to prevent trait collision with parent.
Parameter Name | Type | Description |
---|---|---|
$storage | \StorageInterface |
Returns:
Parameter Name | Type | Description |
---|---|---|
$identifiers |
Returns:
Attach a listener to the session validator chain.
Parameter Name | Type | Description |
---|---|---|
$event | string | |
$callback | null|callable | |
$priority | int |
Returns: \Laminas\Stdlib\CallbackHandler
Parameter Name | Type | Description |
---|---|---|
$eventName |
Returns:
Parameter Name | Type | Description |
---|---|---|
$listener | ||
$eventName | ||
$force |
Returns:
Returns:
Retrieve the shared event manager, if composed.
Returns: null|\SharedEventManagerInterface $sharedEventManager
Prepare arguments
Use this method if you want to be able to modify arguments from within a listener. It returns an ArrayObject of the arguments, which may then be passed to trigger().
Parameter Name | Type | Description |
---|---|---|
$args | array |
Returns: \ArrayObject
Parameter Name | Type | Description |
---|---|---|
$prototype |
Returns:
Parameter Name | Type | Description |
---|---|---|
$identifiers |
Returns:
Parameter Name | Type | Description |
---|---|---|
$eventName | ||
$target | ||
$argv |
Returns:
Parameter Name | Type | Description |
---|---|---|
$event |
Returns:
Parameter Name | Type | Description |
---|---|---|
$callback | ||
$event |
Returns:
Parameter Name | Type | Description |
---|---|---|
$callback | ||
$eventName | ||
$target | ||
$argv |
Returns: