TemplateServiceProvider

This class is the Laravel Service Provider for Ceres.
The service provider runs on every request and bootstraps the application.
See https://laravel.com/docs/6.x/providers for further information.

Namespace

Ceres\Providers

Extends
Constants
Type Name Value Description

int

EVENT_LISTENER_PRIORITY

100

Properties
Type Name Description

array

$templateKeyToViewMap

This property maps templateKeys to their view and their used context

Methods
public register()

Register any application services.

public boot($twig, $eventDispatcher, $config)

Bootstrap any application services.

Parameters

Type

Name

Description

Twig

$twig

Dispatcher

$eventDispatcher

ConfigRepository

$config