Browse Source

Merge pull request #3334 from GrahamForks/compiled

Correctly deal with the compiled file
Taylor Otwell 10 years ago
parent
commit
8eb969098b
1 changed files with 5 additions and 3 deletions
  1. 5 3
      bootstrap/autoload.php

+ 5 - 3
bootstrap/autoload.php

@@ -27,9 +27,11 @@ require __DIR__.'/../vendor/autoload.php';
 |
 */
 
-$compiledPath = __DIR__.'/../vendor/compiled.php';
-
-if (file_exists($compiledPath))
+if (file_exists($compiledPath = __DIR__.'/../vendor/compiled.php'))
+{
+	require $compiledPath;
+}
+elseif (file_exists($compiledPath = __DIR__.'/../storage/framework/compiled.php'))
 {
 	require $compiledPath;
 }