mirror of
https://gitlab.com/izyim/prototypes/ddd-example.git
synced 2026-08-19 04:24:04 +00:00
Refactor laravel architecture.
Move App folder to infrastructure folder. 1. moved laravel app folder content to /src/Common/Infrastructure/Laravel 2. moved Console/Kernel.php to /src/Common/Infrastructure/Laravel/Kernel/Console.php 3. moved Http/Kernel.php to /src/Common/Infrastructure/Laravel/Kernel/Http.php 4. moved Http/Controllers/Controller.php to /src/Common/Infrastructure/Laravel/Controller.php 5. fix file paths in boorstrap/app.php 6. fix file paths for application service providers in config/app.php 7. fix file paths for middleware in config/sanctum.php 8. change app to src in composer.json
This commit is contained in:
+3
-3
@@ -28,17 +28,17 @@ $app = new Illuminate\Foundation\Application(
|
||||
|
||||
$app->singleton(
|
||||
Illuminate\Contracts\Http\Kernel::class,
|
||||
App\Http\Kernel::class
|
||||
\Src\Common\Infrastructure\Laravel\Kernel\Http::class
|
||||
);
|
||||
|
||||
$app->singleton(
|
||||
Illuminate\Contracts\Console\Kernel::class,
|
||||
App\Console\Kernel::class
|
||||
\Src\Common\Infrastructure\Laravel\Kernel\Console::class
|
||||
);
|
||||
|
||||
$app->singleton(
|
||||
Illuminate\Contracts\Debug\ExceptionHandler::class,
|
||||
App\Exceptions\Handler::class
|
||||
\Src\Common\Infrastructure\Laravel\Exceptions\Handler::class
|
||||
);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user