ソースを参照

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);