浏览代码

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