You are here

public function PdoProfilerStorage::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Profiler/PdoProfilerStorage.php \Symfony\Component\HttpKernel\Profiler\PdoProfilerStorage::__construct()

Constructor.

Parameters

string $dsn A data source name:

string $username The username for the database:

string $password The password for the database:

int $lifetime The lifetime to use for the purge:

File

vendor/symfony/http-kernel/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;
}