Zend\Mvc\View\Console\ViewManager
Prepares the view layer for console applications
Synopsis
class ViewManager
extends ViewManager
{
- // Inherited members from ViewManager
- protected $config;
- protected MvcEvent $event;
- protected ServiceManager $services;
- protected $exceptionStrategy;
- protected $helperManager;
- protected $mvcRenderingStrategy;
- protected $renderer;
- protected $rendererStrategy;
- protected $resolver;
- protected $routeNotFoundStrategy;
- protected $view;
- protected $viewModel;
- // Inherited members from AbstractListenerAggregate
- protected array $listeners;
- // methods
- public void onBootstrap()
- public DefaultRenderingStrategy getMvcRenderingStrategy()
- public ExceptionStrategy getExceptionStrategy()
- public RouteNotFoundStrategy getRouteNotFoundStrategy()
- // Inherited methods from ViewManager
- public void attach()
- public void detach()
- public void onBootstrap()
- public HelperPluginManager getHelperManager()
- public ResolverInterface getResolver()
- public PhpRenderer getRenderer()
- public PhpRendererStrategy getRendererStrategy()
- public View getView()
- public string getLayoutTemplate()
- public DefaultRenderingStrategy getMvcRenderingStrategy()
- public ExceptionStrategy getExceptionStrategy()
- public RouteNotFoundStrategy getRouteNotFoundStrategy()
- public void getInjectTemplateListener()
- public ModelInterface getViewModel()
- protected void registerMvcRenderingStrategies()
- protected void registerViewStrategies()
- // Inherited methods from AbstractListenerAggregate
- public void detach()
Hierarchy
Extends
Members
protected
- $config —
- $event — Zend\Mvc\MvcEvent
- $exceptionStrategy
- $helperManager
- $listeners — array
- $mvcRenderingStrategy
- $renderer
- $rendererStrategy
- $resolver
- $routeNotFoundStrategy
- $services — Zend\ServiceManager\ServiceManager
- $view
- $viewModel
Methods
public
- getExceptionStrategy() — Instantiates and configures the exception strategy
- getMvcRenderingStrategy() — Instantiates and configures the default MVC rendering strategy
- getRouteNotFoundStrategy() — Instantiates and configures the "route not found", or 404, strategy
- onBootstrap() — Prepares the view layer
Inherited from Zend\Mvc\View\Http\ViewManager
protected
- registerMvcRenderingStrategies() — Register additional mvc rendering strategies
- registerViewStrategies() — Register additional view strategies
public
- attach() — {@inheritDoc}
- detach() — Detach aggregate listeners from the specified event manager
- getExceptionStrategy() — Instantiates and configures the exception strategy
- getHelperManager() — Instantiates and configures the renderer's helper manager
- getInjectTemplateListener()
- getLayoutTemplate() — Retrieves the layout template name from the configuration
- getMvcRenderingStrategy() — Instantiates and configures the default MVC rendering strategy
- getRenderer() — Instantiates and configures the renderer
- getRendererStrategy() — Instantiates and configures the renderer strategy for the view
- getResolver() — Instantiates and configures the renderer's resolver
- getRouteNotFoundStrategy() — Instantiates and configures the "route not found", or 404, strategy
- getView() — Instantiates and configures the view
- getViewModel() — Configures the MvcEvent view model to ensure it has the template injected
- onBootstrap() — Prepares the view layer
Inherited from Zend\EventManager\AbstractListenerAggregate
public
- detach() — {@inheritDoc}