Skip to content

Commit

Permalink
feat: change project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed May 10, 2023
1 parent 607aa06 commit d100215
Show file tree
Hide file tree
Showing 41 changed files with 533 additions and 852 deletions.
2 changes: 1 addition & 1 deletion app/.php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
require_once 'vendor/autoload.php';

$config = ConfigBuilder::createFromRuleSet(new DefaultSet(['static_lambda' => false]))
->inDir(__DIR__ . '/app')
->inDir(__DIR__ . '/src')
->inDir(__DIR__ . '/config')
->inDir(__DIR__ . '/database')
->inDir(__DIR__ . '/tests')
Expand Down
21 changes: 0 additions & 21 deletions app/app/Providers/BroadcastServiceProvider.php

This file was deleted.

8 changes: 4 additions & 4 deletions app/bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@

$app->singleton(
Illuminate\Contracts\Http\Kernel::class,
App\Http\Kernel::class
Laravel\Http\Kernel::class
);

$app->singleton(
Illuminate\Contracts\Console\Kernel::class,
App\Console\Kernel::class
Laravel\Console\Kernel::class
);

$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
App\Exceptions\Handler::class
Laravel\Exceptions\Handler::class
);

/*
Expand All @@ -47,7 +47,7 @@
|--------------------------------------------------------------------------
|
| This script returns the application instance. The instance is given to
| the calling script so we can separate the building of the instances
| the calling script, so we can separate the building of the instances
| from the actual running of the application and sending responses.
|
*/
Expand Down
6 changes: 5 additions & 1 deletion app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"ext-pdo": "*",
"php": "^8.1",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.8",
Expand All @@ -28,7 +29,10 @@
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Laravel\\": "src/Bridge/Laravel",
"Application\\": "src/Application",
"Domain\\": "src/Domain",
"Infrastructure\\": "src/Infrastructure",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
Expand Down
33 changes: 17 additions & 16 deletions app/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d100215

Please sign in to comment.