<?php12/*3|--------------------------------------------------------------------------4| Create The Application5|--------------------------------------------------------------------------6|7| The first thing we will do is create a new Laravel application instance8| which serves as the "glue" for all the components of Laravel, and is9| the IoC container for the system binding all of the various parts.10|11*/1213$app = new Illuminate\Foundation\Application(14$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)15);1617if (isset($_ENV['APP_STORAGE_PATH'])) {18$app->useStoragePath($_ENV['APP_STORAGE_PATH']);19}2021/*22|--------------------------------------------------------------------------23| Bind Important Interfaces24|--------------------------------------------------------------------------25|26| Next, we need to bind some important interfaces into the container so27| we will be able to resolve them when needed. The kernels serve the28| incoming requests to this application from both the web and CLI.29|30*/3132$app->singleton(33Illuminate\Contracts\Http\Kernel::class,34Pterodactyl\Http\Kernel::class35);3637$app->singleton(38Illuminate\Contracts\Console\Kernel::class,39Pterodactyl\Console\Kernel::class40);4142$app->singleton(43Illuminate\Contracts\Debug\ExceptionHandler::class,44Pterodactyl\Exceptions\Handler::class45);4647/*48|--------------------------------------------------------------------------49| Return The Application50|--------------------------------------------------------------------------51|52| This script returns the application instance. The instance is given to53| the calling script so we can separate the building of the instances54| from the actual running of the application and sending responses.55|56*/5758return $app;596061