296. Class

296.1. Zend\Mvc\View\Console\ViewManager

Prepares the view layer for console applications

296.1.1. Methods

296.1.1.1. onBootstrap

onBootstrap()

Prepares the view layer

Overriding, as several operations are omitted in the console view algorithms, as well as to ensure we pick up the Console variants of several listeners and strategies.

Parameters:$event
Return type:void

296.1.1.2. getMvcRenderingStrategy

getMvcRenderingStrategy()

Instantiates and configures the default MVC rendering strategy

Overriding to ensure we pick up the MVC rendering strategy for console, as well as to ensure that the appropriate aliases are set.

Return type:DefaultRenderingStrategy

296.1.1.3. getExceptionStrategy

getExceptionStrategy()

Instantiates and configures the exception strategy

Overriding to ensure we pick up the exception strategy for console, as well as to ensure that the appropriate aliases are set.

Return type:ExceptionStrategy

296.1.1.4. getRouteNotFoundStrategy

getRouteNotFoundStrategy()

Instantiates and configures the “route not found”, or 404, strategy

Overriding to ensure we pick up the route not found strategy for console, as well as to ensure that the appropriate aliases are set.

Return type:RouteNotFoundStrategy

Project Versions

Table Of Contents

Previous topic

295. Class

Next topic

297. Class

This Page