Explorar el Código

[FrameworkBundle] moved class cache loader earlier

Fabien Potencier hace 14 años
padre
commit
4ecafd883e
Se han modificado 1 ficheros con 8 adiciones y 10 borrados
  1. 8 10
      src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php

+ 8 - 10
src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php

@@ -41,16 +41,6 @@ class FrameworkBundle extends Bundle
      */
     public function boot()
     {
-        $container = $this->container;
-
-        if ($container->has('error_handler')) {
-            $container->get('error_handler');
-        }
-
-        if ($this->container->hasParameter('document_root')) {
-            File::setDocumentRoot($this->container->getParameter('document_root'));
-        }
-
         // load core classes
         ClassCollectionLoader::load(
             $this->container->getParameter('kernel.compiled_classes'),
@@ -60,6 +50,14 @@ class FrameworkBundle extends Bundle
             true
         );
 
+        if ($this->container->has('error_handler')) {
+            $this->container->get('error_handler');
+        }
+
+        if ($this->container->hasParameter('document_root')) {
+            File::setDocumentRoot($this->container->getParameter('document_root'));
+        }
+
         if (file_exists($this->container->getParameter('kernel.cache_dir').'/autoload.php')) {
             $classloader = new MapFileClassLoader($this->container->getParameter('kernel.cache_dir').'/autoload.php');
             $classloader->register(true);