Zend\View\View::addResponseStrategy
Add a response strategy
Expects a callable. Strategies should accept a ViewEvent object. The return value will be ignored. Typical usages for a response strategy are to populate the Response object. Internally, the callable provided will be subscribed to the "response" event, at the priority specified.
Signature
public function addResponseStrategy(callable
$callable,
[integer
$priority = 1] )
Parameters
$callable
— object
$priority
— integer
Returns
- View