public function DatabaseController::__construct in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Controller/DatabaseController.php \Drupal\webprofiler\Controller\DatabaseController::__construct()
- 8.2 webprofiler/src/Controller/DatabaseController.php \Drupal\webprofiler\Controller\DatabaseController::__construct()
- 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\ControllerCode
public function __construct(Profiler $profiler, Connection $database) {
$this->profiler = $profiler;
$this->database = $database;
}