category Zend
package Zend_View
subpackage Strategy

 Methods

Constructor

__construct(\Zend\View\Renderer\JsonRenderer $renderer) 

Parameters

Attach the aggregate to the specified event manager

attach(\Zend\EventManager\EventManagerInterface $events, int $priority) : void

Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.

Parameters

$priority

int

Detach aggregate listeners from the specified event manager

detach(\Zend\EventManager\EventManagerInterface $events) : void

Inject the response with the JSON payload and appropriate Content-Type header

injectResponse(\Zend\View\ViewEvent $e) : void

Parameters

Detect if we should use the JsonRenderer based on model type and/or Accept header

selectRenderer(\Zend\View\ViewEvent $e) : null | \Zend\View\Renderer\JsonRenderer

 Properties

 

$listeners

$listeners : \Zend\Stdlib\CallbackHandler[]

 

$renderer

$renderer : \Zend\View\Renderer\JsonRenderer