package Default

 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.

inherited_from \Zend\ServiceManager\FactoryInterface::createService()

Parameters

$serviceLocator

\Zend\ServiceManager\ServiceLocatorInterface

Returns

\Zend\View\Strategy\JsonStrategy