use require instead of include

This commit is contained in:
Anthon Pang 2012-05-01 11:33:50 -04:00
parent 1ed8b720ac
commit b2afd9ff46

View File

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