X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a5e49f642b18de09cac0f2fdceacf07b0bafafe7..refs/pull/2393/head:/artisan diff --git a/artisan b/artisan index dad16dcde..d5c6aaf98 100755 --- a/artisan +++ b/artisan @@ -5,15 +5,17 @@ define('LARAVEL_START', microtime(true)); /* |-------------------------------------------------------------------------- -| Initialize The App +| Register The Auto Loader |-------------------------------------------------------------------------- | -| We need to get things going before we start up the app. -| The init file loads everything in, in the correct order. +| 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. | */ -require __DIR__.'/bootstrap/init.php'; +require __DIR__.'/vendor/autoload.php'; $app = require_once __DIR__.'/bootstrap/app.php';