You are here

public function DatabaseController::__construct in Devel 8

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

Constructs a new WebprofilerController.

Parameters

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

\Drupal\Core\Database\Connection $database:

File

webprofiler/src/Controller/DatabaseController.php, line 45

Class

DatabaseController
Class DatabaseController

Namespace

Drupal\webprofiler\Controller

Code

public function __construct(Profiler $profiler, Connection $database) {
  $this->profiler = $profiler;
  $this->database = $database;
}