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:
omair saleh
2022-09-24 20:53:31 +08:00
parent 5e603de56f
commit b6c87fd42b
23 changed files with 90 additions and 43 deletions
+3 -3
View File
@@ -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
);
/*