[HttpKernel] added a way to enable a disable Profiler

This commit is contained in:
Fabien Potencier 2012-07-13 15:39:54 +02:00
parent 8c2f35f2ce
commit 67b91e562b

View File

@ -51,6 +51,14 @@ class Profiler
$this->enabled = false;
}
/**
* Enables the profiler.
*/
public function enable()
{
$this->enabled = true;
}
/**
* Loads the Profile for the given Response.
*