public function TemplateManager::__construct in Devel 8.3
Same name and namespace in other branches
- 8 webprofiler/src/Profiler/TemplateManager.php \Drupal\webprofiler\Profiler\TemplateManager::__construct()
- 8.2 webprofiler/src/Profiler/TemplateManager.php \Drupal\webprofiler\Profiler\TemplateManager::__construct()
- 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\ProfilerCode
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;
}