You are here

function DatabaseProfilerStorage::__construct in Devel 8

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

Constructs a new DatabaseProfilerStorage instance.

Parameters

\Drupal\Core\Database\Connection $database: The database connection.

File

webprofiler/src/Profiler/DatabaseProfilerStorage.php, line 27

Class

DatabaseProfilerStorage
Implements a profiler storage using the DBTNG query api.

Namespace

Drupal\webprofiler\Profiler

Code

function __construct(Connection $database) {
  $this->database = $database;
}