\Omega\View\ServiceProvider ViewServiceProvider

View service provider class.

The ViewServiceProvider class provides service bindings related to the View component in the Omega system. It binds the 'view' service, which provides access to the ViewManager for rendering views.

Summary

Methods
Properties
Constants
bind
No public properties found
No public constants found
No protected methods found
No protected properties found
No protected constants found
bindPaths
bindMacros
bindEngine
No private properties found
No private constants found

Methods

bind()

bind(\Omega\Application\Application  $application) : void

Binding all view functions.

Binds the 'view' service, which provides access to the ViewManager for rendering views.

Parameters

\Omega\Application\Application $application

Holds an instance of Application.

Returns

void —

bindPaths()

bindPaths(\Omega\Application\Application  $application, \Omega\View\ViewManager  $viewManager) : void

Bind the view paths.

Adds view paths to the ViewManager to specify where views can be located.

Parameters

\Omega\Application\Application $application

Holds an instance of Application.

\Omega\View\ViewManager $viewManager

Holds an instance of ViewManager.

Returns

void —

bindMacros()

bindMacros(\Omega\Application\Application  $application, \Omega\View\ViewManager  $viewManager) : void

Bind view macros.

Adds macros to the ViewManager for use in view templates.

Parameters

\Omega\Application\Application $application

Holds an instance of Application.

\Omega\View\ViewManager $viewManager

Holds an instance of ViewManager.

Returns

void —

bindEngine()

bindEngine(\Omega\Application\Application  $application, \Omega\View\ViewManager  $viewManager) : void

Bind view renderers.

Adds various renderers to the ViewManager based on file extensions.

Parameters

\Omega\Application\Application $application

Holds an instance of Application.

\Omega\View\ViewManager $viewManager

Holds an instance of ViewManager.

Returns

void —