You are here

public function PdoProfilerStorage::purge in Zircon Profile 8

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

Purges all data from the database.

Overrides ProfilerStorageInterface::purge

File

vendor/symfony/http-kernel/Profiler/PdoProfilerStorage.php, line 120

Class

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

Namespace

Symfony\Component\HttpKernel\Profiler

Code

public function purge() {
  $db = $this
    ->initDb();
  $this
    ->exec($db, 'DELETE FROM sf_profiler_data');
  $this
    ->close($db);
}