From e099b7bdeea9f9619196cb288da9603aae016ea7 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Mon, 20 Jan 2020 14:33:14 +0800 Subject: [PATCH] Move autoloading to index to make it the same as Laravel 6. Implements work done in https://github.com/octobercms/october/pull/4280. Credit to @Samuell1 --- artisan | 28 +++++++++++++++++-- bootstrap/autoload.php | 54 ------------------------------------ index.php | 47 +++++++++++++++++++++++++------ tests/bootstrap.php | 6 ---- tests/functional/phpunit.xml | 4 +-- 5 files changed, 66 insertions(+), 73 deletions(-) delete mode 100644 bootstrap/autoload.php diff --git a/artisan b/artisan index 961e94d0b..1d451b277 100644 --- a/artisan +++ b/artisan @@ -1,6 +1,28 @@ #!/usr/bin/env php make('Illuminate\Contracts\Console\Kernel'); +$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class); $status = $kernel->handle( $input = new Symfony\Component\Console\Input\ArgvInput, @@ -48,4 +70,4 @@ $status = $kernel->handle( $kernel->terminate($input, $status); -exit($status); \ No newline at end of file +exit($status); diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php deleted file mode 100644 index b980622d7..000000000 --- a/bootstrap/autoload.php +++ /dev/null @@ -1,54 +0,0 @@ -make('Illuminate\Contracts\Http\Kernel'); +$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); $response = $kernel->handle( $request = Illuminate\Http\Request::capture() diff --git a/tests/bootstrap.php b/tests/bootstrap.php index e7e53fd1a..013490740 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,10 +1,4 @@ ./ - \ No newline at end of file +