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 the aggregate to the specified event manager
| Parameters: | EventManagerInterface – |
|---|---|
| Return type: | void |
Detach aggregate listeners from the specified event manager
| Parameters: | EventManagerInterface – |
|---|---|
| Return type: | void |
Prepares the view layer
| Parameters: | $event – |
|---|---|
| Return type: | void |
Instantiates and configures the renderer’s helper manager
| Return type: | ZendViewHelperPluginManager |
|---|
Instantiates and configures the renderer’s resolver
| Return type: | ViewResolverResolverInterface |
|---|
Instantiates and configures the renderer
| Return type: | ViewPhpRenderer |
|---|
Instantiates and configures the renderer strategy for the view
| Return type: | PhpRendererStrategy |
|---|
Retrieves the layout template name from the configuration
| Return type: | string |
|---|
Instantiates and configures the default MVC rendering strategy
| Return type: | DefaultRenderingStrategy |
|---|
Instantiates and configures the exception strategy
| Return type: | ExceptionStrategy |
|---|
Instantiates and configures the “route not found”, or 404, strategy
| Return type: | RouteNotFoundStrategy |
|---|
Configures the MvcEvent view model to ensure it has the template injected
| Return type: | ZendViewModelModelInterface |
|---|
Register additional mvc rendering strategies
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.
Register additional view strategies
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.
| Return type: | void |
|---|