attach()
detach()
getExceptionStrategy()
getHelperManager()
getInjectTemplateListener()
getLayoutTemplate()
getMvcRenderingStrategy()
getRenderer()
getRendererStrategy()
getResolver()
getRouteNotFoundStrategy()
getView()
getViewModel()
onBootstrap()
registerMvcRenderingStrategies()
registerViewStrategies()
$config
$event
$exceptionStrategy
$helperManager
$listeners
$mvcRenderingStrategy
$renderer
$rendererStrategy
$resolver
$routeNotFoundStrategy
$services
$view
$viewModel
Prepares the view layer
Instantiates and configures all classes related to the view layer, including the renderer (and its associated resolver(s) and helper manager), the view object (and its associated rendering strategies), and the various MVC strategies and listeners.
Defines and manages the following services:
attach(\Zend\EventManager\EventManagerInterface $events) : void
Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.
detach(\Zend\EventManager\EventManagerInterface $events) : void
inherited_from | \Zend\EventManager\AbstractListenerAggregate::detach() |
---|
getExceptionStrategy() : \Zend\Mvc\View\Http\ExceptionStrategy
getHelperManager() : \Zend\View\HelperPluginManager
getInjectTemplateListener()
getLayoutTemplate() : string
string
getMvcRenderingStrategy() : \Zend\Mvc\View\Http\DefaultRenderingStrategy
getRendererStrategy() : \Zend\View\Strategy\PhpRendererStrategy
getResolver() : \Zend\View\Resolver\ResolverInterface
getRouteNotFoundStrategy() : \Zend\Mvc\View\Http\RouteNotFoundStrategy
getViewModel() : \Zend\View\Model\ModelInterface
onBootstrap($event) : void
registerMvcRenderingStrategies(\Zend\EventManager\EventManagerInterface $events) : void
If there is a "mvc_strategies" key of the view manager configuration, loop through it. Pull each as a service from the service manager, and, if it is a ListenerAggregate, attach it to the view, at priority 100. This latter allows each to trigger before the default mvc rendering strategy, and for them to trigger in the order they are registered.
registerViewStrategies() : void
If there is a "strategies" key of the view manager configuration, loop through it. Pull each as a service from the service manager, and, if it is a ListenerAggregate, attach it to the view, at priority 100. This latter allows each to trigger before the default strategy, and for them to trigger in the order they are registered.
$config : object
$exceptionStrategy
$helperManager
$listeners : \Zend\Stdlib\CallbackHandler[]
inherited_from | \Zend\EventManager\AbstractListenerAggregate::$$listeners |
---|
$mvcRenderingStrategy
$renderer
$rendererStrategy
$resolver
$routeNotFoundStrategy
$view
$viewModel