php-template/bootstrap/app.php
Snider 9f0d421ae8
Some checks failed
CI / PHP 8.3 (pull_request) Failing after 3s
CI / PHP 8.4 (pull_request) Failing after 2s
fix(dx): add strict_types to all PHP files and update CLAUDE.md
- 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>
2026-03-17 09:10:30 +00:00

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();