\Charcoal\ViewViewServiceProvider

View Service Provider

Requirements / Dependencies

  • config
    • The global / base app config (ConfigInterface).
  • logger
    • A PSR-3 loger.

Services

  • view/config
    • The global view config (ViewConfig).
  • view
    • The default ViewInterface object, determined by view/config.
  • view/renderer
    • A PSR-7 renderer using the default view object.

Helpers

  • view/engine
    • The default EngineInterface object, determined by view/config.
  • view/loader
    • The defailt LoaderInterface object, determined by view/config

Summary

Methods
Properties
Constants
register()
No public properties found
No constants found
registerViewConfig()
registerLoaderServices()
registerEngineServices()
registerMustacheTemplatingServices()
registerViewServices()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

register()

register(\Pimple\Container  $container) : void

Registers services on the given container.

This method should only be used to configure services and parameters. It should not get services.

Parameters

\Pimple\Container $container

A container instance.

registerViewConfig()

registerViewConfig(\Pimple\Container  $container) : void

Parameters

\Pimple\Container $container

The DI container.

registerLoaderServices()

registerLoaderServices(\Pimple\Container  $container) : void

Parameters

\Pimple\Container $container

The DI container.

registerEngineServices()

registerEngineServices(\Pimple\Container  $container) : void

Parameters

\Pimple\Container $container

The DI container.

registerMustacheTemplatingServices()

registerMustacheTemplatingServices(\Pimple\Container  $container) : void

Parameters

\Pimple\Container $container

The DI container.

registerViewServices()

registerViewServices(\Pimple\Container  $container) : void

Parameters

\Pimple\Container $container

The DI container.