mirror of
https://github.com/pacnpal/thrillwiki_laravel.git
synced 2025-12-20 05:11:10 -05:00
25 lines
438 B
PHP
25 lines
438 B
PHP
<?php
|
|
|
|
use Illuminate\Foundation\Application;
|
|
|
|
$app = new Application(
|
|
$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
|
|
);
|
|
|
|
$app->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 $app;
|