You are here

public function TemplateManager::__construct in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/src/Profiler/TemplateManager.php \Drupal\webprofiler\Profiler\TemplateManager::__construct()
  2. 8.2 webprofiler/src/Profiler/TemplateManager.php \Drupal\webprofiler\Profiler\TemplateManager::__construct()
  3. 4.x webprofiler/src/Profiler/TemplateManager.php \Drupal\webprofiler\Profiler\TemplateManager::__construct()

Constructor.

Parameters

\Symfony\Component\HttpKernel\Profiler\Profiler $profiler:

\Twig_Environment $twig:

\Twig_Loader_Chain $twigLoader:

array $templates:

File

webprofiler/src/Profiler/TemplateManager.php, line 51

Class

TemplateManager
Profiler Templates Manager.

Namespace

Drupal\webprofiler\Profiler

Code

public function __construct(SymfonyProfiler $profiler, \Twig_Environment $twig, \Twig_Loader_Chain $twigLoader, array $templates) {
  $this->profiler = $profiler;
  $this->twig = $twig;
  $this->twigLoader = $twigLoader;
  $this->templates = $templates;
}