From 1f5901d3c73935fd11e76c15852841c18a4bf919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Sun, 28 Jun 2020 00:24:03 +0300 Subject: [PATCH] added php version control to console --- artisan | 46 ++++++++++-------------------------------- bootstrap/app.php | 2 +- bootstrap/autoload.php | 25 ++++++++++------------- index.php | 13 +++--------- 4 files changed, 26 insertions(+), 60 deletions(-) diff --git a/artisan b/artisan index df630d0d6..d8c80fa7a 100644 --- a/artisan +++ b/artisan @@ -1,33 +1,20 @@ #!/usr/bin/env php make(Illuminate\Contracts\Console\Kernel::class); $status = $kernel->handle( @@ -35,17 +22,6 @@ $status = $kernel->handle( new Symfony\Component\Console\Output\ConsoleOutput ); -/* -|-------------------------------------------------------------------------- -| Shutdown The Application -|-------------------------------------------------------------------------- -| -| Once Artisan has finished running. We will fire off the shutdown events -| so that any final work may be done by the application before we shut -| down the process. This is the last thing to happen to the request. -| -*/ - $kernel->terminate($input, $status); exit($status); diff --git a/bootstrap/app.php b/bootstrap/app.php index f2801adf6..037e17df0 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -12,7 +12,7 @@ */ $app = new Illuminate\Foundation\Application( - realpath(__DIR__.'/../') + $_ENV['APP_BASE_PATH'] ?? dirname(__DIR__) ); /* diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php index 629983380..e99ead36e 100644 --- a/bootstrap/autoload.php +++ b/bootstrap/autoload.php @@ -1,20 +1,17 @@ make(Illuminate\Contracts\Http\Kernel::class);