category Zend
package Zend_Mvc
subpackage Service

 Methods

Create and return the JSON view strategy

createService(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) : \Zend\View\Strategy\JsonStrategy

Retrieves the ViewJsonRenderer service from the service locator, and injects it into the constructor for the JSON strategy.

It then attaches the strategy to the View service, at a priority of 100.

Parameters

Returns