Explorar el Código

[HttpKernel] added a Kernel::init() method

Fabien Potencier hace 14 años
padre
commit
0f0e5817b1
Se han modificado 1 ficheros con 6 adiciones y 5 borrados
  1. 6 5
      src/Symfony/Component/HttpKernel/Kernel.php

+ 6 - 5
src/Symfony/Component/HttpKernel/Kernel.php

@@ -71,13 +71,10 @@ abstract class Kernel implements KernelInterface
         $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 @@ abstract class Kernel implements KernelInterface
         $this->container = null;
     }
 
+    public function init()
+    {
+    }
+
     /**
      * Boots the current kernel.
      */