PHP 클래스 Zend\Mvc\Service\ViewJsonStrategyFactory

상속: implements Zend\ServiceManager\FactoryInterface
파일 보기 프로젝트 열기: zendframework/zend-mvc

공개 메소드들

메소드 설명
__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