You are here

public function ProfilerExtension::__construct in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Twig/Extension/ProfilerExtension.php \Drupal\webprofiler\Twig\Extension\ProfilerExtension::__construct()
  2. 8.2 webprofiler/src/Twig/Extension/ProfilerExtension.php \Drupal\webprofiler\Twig\Extension\ProfilerExtension::__construct()
  3. 4.x webprofiler/src/Twig/Extension/ProfilerExtension.php \Drupal\webprofiler\Twig\Extension\ProfilerExtension::__construct()

File

webprofiler/src/Twig/Extension/ProfilerExtension.php, line 25

Class

ProfilerExtension
Class ProfilerExtension

Namespace

Drupal\webprofiler\Twig\Extension

Code

public function __construct(\Twig_Profiler_Profile $profile, Stopwatch $stopwatch = NULL, IdeLinkGeneratorInterface $ideLink, ClassShortenerInterface $classShortener) {
  parent::__construct($profile);
  $this->ideLink = $ideLink;
  $this->classShortener = $classShortener;
  $this->stopwatch = $stopwatch;
  $this->events = new \SplObjectStorage();
}