Class ViewJsonStrategyFactory

Summary

Fully Qualified Name: Zend\Mvc\Service\ViewJsonStrategyFactory
Implements: FactoryInterface

Description

Methods

Name Description Defined By
__invoke() Create and return the JSON view strategy ViewJsonStrategyFactory

Method Details

__invoke()

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.

Parameter Name Type Description
$container \ContainerInterface
$name string
$options null|array

Returns: \JsonStrategy

Top