PHP Класс Zend\Mvc\Service\ViewJsonStrategyFactory

Наследование: implements Zend\ServiceManager\FactoryInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\View\Strategy\JsonStrategy Create and return the JSON view strategy
createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Zend\View\Strategy\JsonStrategy Create and return JsonStrategy instance

Описание методов

__invoke() публичный Метод

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.
public __invoke ( Interop\Container\ContainerInterface $container, string $name, array $options = null ) : Zend\View\Strategy\JsonStrategy
$container Interop\Container\ContainerInterface
$name string
$options array
Результат Zend\View\Strategy\JsonStrategy

createService() публичный Метод

For use with zend-servicemanager v2; proxies to __invoke().
public createService ( Zend\ServiceManager\ServiceLocatorInterface $container ) : Zend\View\Strategy\JsonStrategy
$container Zend\ServiceManager\ServiceLocatorInterface
Результат Zend\View\Strategy\JsonStrategy