Zend\EventManager\FilterChain::attach
Connect a filter to the chain
Signature
public function attach(callable
$callback,
[integer
$priority = 1] )
Parameters
$callback
— object- PHP Callback
$priority
— integer- Priority in the queue at which to execute; defaults to 1 (higher numbers == higher priority)
Returns
- CallbackHandler
- (to allow later unsubscribe)