From c4aff28a4a0d1449e19b4a08e3d99464c253bccb Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 2 Apr 2015 15:15:00 +0100 Subject: [PATCH 1/2] Correctly deal with the compiled file --- bootstrap/autoload.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php index bc04666c..5fbc3a47 100644 --- a/bootstrap/autoload.php +++ b/bootstrap/autoload.php @@ -27,9 +27,11 @@ | */ -$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; } From 0d08fcf28107508a3f6135ae421fd06b29bc4371 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 2 Apr 2015 16:08:31 +0100 Subject: [PATCH 2/2] Fixed a typo --- bootstrap/autoload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php index 5fbc3a47..e0d3db1c 100644 --- a/bootstrap/autoload.php +++ b/bootstrap/autoload.php @@ -27,11 +27,11 @@ | */ -if (file_exists($compiledPath = __DIR__.'/../vendor/compiled.php';)) +if (file_exists($compiledPath = __DIR__.'/../vendor/compiled.php')) { require $compiledPath; } -elseif (file_exists($compiledPath = __DIR__.'/../storage/framework/compiled.php';)) +elseif (file_exists($compiledPath = __DIR__.'/../storage/framework/compiled.php')) { require $compiledPath; }