Fully Qualified Name: | Zend\Mvc\Service\ViewJsonStrategyFactory |
Implements: | FactoryInterface |
Name | Description | Defined By |
---|---|---|
__invoke() | Create and return the JSON view strategy | ViewJsonStrategyFactory |
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