41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
<?php
|
|
|
|
return [
|
|
// Debug-Modus (aktiviert ausführliche Fehlerbehandlung)
|
|
'debug' => true,
|
|
|
|
// Discovery-Konfiguration
|
|
'async_discovery' => true,
|
|
|
|
// Standard-Middleware-Stack
|
|
'middleware' => [
|
|
// Globale Middleware für alle Requests
|
|
'global' => [
|
|
\App\Framework\Http\Middlewares\ControllerRequestMiddleware::class,
|
|
\App\Framework\Validation\ValidationErrorMiddleware::class,
|
|
\App\Framework\Http\Middlewares\RoutingMiddleware::class
|
|
],
|
|
|
|
// Gruppen-spezifische Middleware
|
|
'api' => [
|
|
// Hier können Sie API-spezifische Middleware hinzufügen
|
|
],
|
|
|
|
'web' => [
|
|
// Hier können Sie Web-spezifische Middleware hinzufügen
|
|
]
|
|
],
|
|
|
|
// Cache-Einstellungen
|
|
'cache' => [
|
|
'enabled' => true,
|
|
'ttl' => 3600, // Zeit in Sekunden
|
|
],
|
|
|
|
// Logging-Einstellungen
|
|
'logging' => [
|
|
'level' => 'debug', // Optionen: debug, info, notice, warning, error, critical, alert, emergency
|
|
'path' => 'logs/app.log',
|
|
],
|
|
];
|