From: Dan Brown Date: Sun, 19 Nov 2017 18:31:24 +0000 (+0000) Subject: Fixed heavy init breakages made in last commit X-Git-Tag: v0.19.0~1^2~19 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/7668a999a25d85684b41d6a9986ca37d48a86fe0?ds=inline;hp=--cc Fixed heavy init breakages made in last commit --- 7668a999a25d85684b41d6a9986ca37d48a86fe0 diff --git a/.travis.yml b/.travis.yml index 12820cbe1..29727f488 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ dist: trusty sudo: false language: php php: - - 7.0.7 + - 7.0.20 - 7.1.9 cache: diff --git a/artisan b/artisan index d5c6aaf98..dad16dcde 100755 --- a/artisan +++ b/artisan @@ -5,17 +5,15 @@ define('LARAVEL_START', microtime(true)); /* |-------------------------------------------------------------------------- -| Register The Auto Loader +| Initialize The App |-------------------------------------------------------------------------- | -| Composer provides a convenient, automatically generated class loader -| for our application. We just need to utilize it! We'll require it -| into the script here so that we do not have to worry about the -| loading of any our classes "manually". Feels great to relax. +| We need to get things going before we start up the app. +| The init file loads everything in, in the correct order. | */ -require __DIR__.'/vendor/autoload.php'; +require __DIR__.'/bootstrap/init.php'; $app = require_once __DIR__.'/bootstrap/app.php'; diff --git a/bootstrap/init.php b/bootstrap/init.php new file mode 100644 index 000000000..7d9e43f07 --- /dev/null +++ b/bootstrap/init.php @@ -0,0 +1,25 @@ +