diff --git a/src/Symfony/Component/HttpKernel/Kernel.php b/src/Symfony/Component/HttpKernel/Kernel.php index 462b711bca09..797a09df050a 100644 --- a/src/Symfony/Component/HttpKernel/Kernel.php +++ b/src/Symfony/Component/HttpKernel/Kernel.php @@ -71,13 +71,10 @@ public function __construct($environment, $debug) $this->classes = array(); if ($this->debug) { - ini_set('display_errors', 1); - error_reporting(-1); - $this->startTime = microtime(true); - } else { - ini_set('display_errors', 0); } + + $this->init(); } public function __clone() @@ -90,6 +87,10 @@ public function __clone() $this->container = null; } + public function init() + { + } + /** * Boots the current kernel. */