Forráskód Böngészése

use require instead of include

Anthon Pang 13 éve
szülő
commit
b2afd9ff46
1 módosított fájl, 3 hozzáadás és 1 törlés
  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);