- Add declare(strict_types=1) to 9 PHP files missing it - Update CLAUDE.md: document composer test/lint scripts - Update CLAUDE.md: fix lthn/php-api → lthn/api package name - Fix PSR-12 compliance (Pint: ordered imports, FQCN extraction) Co-Authored-By: Virgil <virgil@lethean.io>
30 lines
858 B
PHP
30 lines
858 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Core\LifecycleEventProvider;
|
|
use Core\Website\Boot;
|
|
use Illuminate\Foundation\Application;
|
|
use Illuminate\Foundation\Configuration\Exceptions;
|
|
use Illuminate\Foundation\Configuration\Middleware;
|
|
|
|
return Application::configure(basePath: dirname(__DIR__))
|
|
->withProviders([
|
|
// Core PHP Framework
|
|
LifecycleEventProvider::class,
|
|
Boot::class,
|
|
Core\Front\Boot::class,
|
|
Core\Mod\Boot::class,
|
|
])
|
|
->withRouting(
|
|
web: __DIR__.'/../routes/web.php',
|
|
api: __DIR__.'/../routes/api.php',
|
|
commands: __DIR__.'/../routes/console.php',
|
|
health: '/up',
|
|
)
|
|
->withMiddleware(function (Middleware $middleware) {
|
|
Core\Front\Boot::middleware($middleware);
|
|
})
|
|
->withExceptions(function (Exceptions $exceptions) {
|
|
//
|
|
})->create();
|