public function PdoProfilerStorage::__construct

Constructor.

Parameters

string $dsn A data source name:

string $username The username for the database:

string $password The password for the database:

integer $lifetime The lifetime to use for the purge:

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Profiler/PdoProfilerStorage.php, line 36

Class

PdoProfilerStorage
Base PDO storage for profiling information in a PDO database.

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function __construct($dsn, $username = '', $password = '', $lifetime = 86400) {
  $this->dsn = $dsn;
  $this->username = $username;
  $this->password = $password;
  $this->lifetime = (int) $lifetime;
}