You are here

public function TemplateManager::__construct in Devel 8.2

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Profiler/TemplateManager.php \Drupal\webprofiler\Profiler\TemplateManager::__construct()
  2. 8 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

SymfonyProfiler $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;
}