1688. Class

1688.1. Zend\Mvc\Service\ViewJsonStrategyFactory

1688.1.1. Methods

1688.1.1.1. createService

createService()

Create and return the JSON view strategy

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:ServiceLocatorInterface
Return type:JsonStrategy

Project Versions

Table Of Contents

Previous topic

1687. Class

Next topic

1689. Class

This Page