Explorar el Código

use require instead of include

Anthon Pang hace 13 años
padre
commit
b2afd9ff46
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php

+ 3 - 1
src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php

@@ -81,7 +81,9 @@ class DoctrineBundle extends Bundle
                         clearstatcache($file);
                     }
 
-                    @include $file;
+                    if (file_exists($file)) {
+                        require $file;
+                    }
                 }
             };
             spl_autoload_register($this->autoloader);