From 8e1e61fc966d971466d6bbeabb72c04e76a9ee82 Mon Sep 17 00:00:00 2001 From: barunsoft Date: Tue, 23 Aug 2022 09:38:07 +0900 Subject: [PATCH] bootstrap --- .gitignore | 2 +- bootstrap/app.php | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 bootstrap/app.php diff --git a/.gitignore b/.gitignore index 1ce4eac..dc6a1c3 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ /storage/*.key /storage /vendor -/bootstrap +/bootstrap/cache .env .env.backup .idea diff --git a/bootstrap/app.php b/bootstrap/app.php new file mode 100644 index 0000000..037e17d --- /dev/null +++ b/bootstrap/app.php @@ -0,0 +1,55 @@ +singleton( + Illuminate\Contracts\Http\Kernel::class, + App\Http\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Console\Kernel::class, + App\Console\Kernel::class +); + +$app->singleton( + Illuminate\Contracts\Debug\ExceptionHandler::class, + App\Exceptions\Handler::class +); + +/* +|-------------------------------------------------------------------------- +| Return The Application +|-------------------------------------------------------------------------- +| +| This script returns the application instance. The instance is given to +| the calling script so we can separate the building of the instances +| from the actual running of the application and sending responses. +| +*/ + +return $app;