class TemplateManager

Profiler Templates Manager.

Properties

protected $twig
protected $templates
protected $profiler

Methods

__construct(Profiler $profiler, Environment $twig, array $templates)

No description

mixed
getName(Profile $profile, string $panel)

Gets the template name for a given panel.

Template[]
getTemplates(Profile $profile) deprecated

Gets the templates for a given profile.

array
getNames(Profile $profile)

Gets template names of templates that are present in the viewed profile.

templateExists($template)

No description

Details

at line 35
__construct(Profiler $profiler, Environment $twig, array $templates)

Parameters

Profiler $profiler
Environment $twig
array $templates

at line 52
mixed getName(Profile $profile, string $panel)

Gets the template name for a given panel.

Parameters

Profile $profile
string $panel

Return Value

mixed

Exceptions

NotFoundHttpException

at line 70
Template[] getTemplates(Profile $profile) deprecated

deprecated not used anymore internally

Gets the templates for a given profile.

Parameters

Profile $profile

Return Value

Template[]

at line 88
array getNames(Profile $profile)

Gets template names of templates that are present in the viewed profile.

Parameters

Profile $profile

Return Value

array

Exceptions

UnexpectedValueException

at line 118
protected templateExists($template)

Parameters

$template