You are here

public function DashboardController::__construct in Devel 8

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

Constructs a new WebprofilerController.

Parameters

\Drupal\webprofiler\Profiler\Profiler $profiler:

\Symfony\Component\Routing\RouterInterface $router:

\Drupal\webprofiler\Profiler\TemplateManager $templateManager:

\Drupal\Core\Datetime\DateFormatter $date:

\Drupal\webprofiler\Profiler\ProfilerStorageManager $storageManager:

File

webprofiler/src/Controller/DashboardController.php, line 70

Class

DashboardController
Class DashboardController

Namespace

Drupal\webprofiler\Controller

Code

public function __construct(Profiler $profiler, RouterInterface $router, TemplateManager $templateManager, DateFormatter $date, ProfilerStorageManager $storageManager) {
  $this->profiler = $profiler;
  $this->router = $router;
  $this->templateManager = $templateManager;
  $this->date = $date;
  $this->storageManager = $storageManager;
}