Преглед на файлове

use require instead of include

Anthon Pang преди 13 години
родител
ревизия
b2afd9ff46
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  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);