diff --git a/composer.json b/composer.json index 76af70f4d20..feff2ff6699 100644 --- a/composer.json +++ b/composer.json @@ -29,10 +29,10 @@ }, "autoload": { "psr-4": { - "App\\": "app" + "App\\": "src" }, "files": [ - "app/functions.php" + "src/functions.php" ] }, "autoload-dev": { diff --git a/ecs.php b/ecs.php index 82a100d840f..f96fec78501 100644 --- a/ecs.php +++ b/ecs.php @@ -6,7 +6,7 @@ use Symplify\EasyCodingStandard\Config\ECSConfig; return ECSConfig::configure() - ->withPaths([__DIR__ . '/config', __DIR__ . '/app', __DIR__ . '/tests']) + ->withPaths([__DIR__ . '/config', __DIR__ . '/src', __DIR__ . '/tests']) ->withRootFiles() ->withPreparedSets(psr12: true, common: true, strict: true) ->withRules([LineLengthFixer::class]); diff --git a/rector.php b/rector.php index 200239c495e..8ed58261918 100644 --- a/rector.php +++ b/rector.php @@ -6,7 +6,7 @@ use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector; return RectorConfig::configure() - ->withPaths([__DIR__ . '/app', __DIR__ . '/bootstrap/app.php', __DIR__ . '/config', __DIR__ . '/tests']) + ->withPaths([__DIR__ . '/src', __DIR__ . '/bootstrap/app.php', __DIR__ . '/config', __DIR__ . '/tests']) ->withImportNames(removeUnusedImports: true) ->withRules([DeclareStrictTypesRector::class]) ->withPreparedSets( diff --git a/app/Console/Commands/TweetPostCommand.php b/src/Console/Commands/TweetPostCommand.php similarity index 100% rename from app/Console/Commands/TweetPostCommand.php rename to src/Console/Commands/TweetPostCommand.php diff --git a/app/Console/ConsoleKernel.php b/src/Console/ConsoleKernel.php similarity index 100% rename from app/Console/ConsoleKernel.php rename to src/Console/ConsoleKernel.php diff --git a/app/DependencyInjection/ContainerFactory.php b/src/DependencyInjection/ContainerFactory.php similarity index 100% rename from app/DependencyInjection/ContainerFactory.php rename to src/DependencyInjection/ContainerFactory.php diff --git a/app/Entity/Post.php b/src/Entity/Post.php similarity index 100% rename from app/Entity/Post.php rename to src/Entity/Post.php diff --git a/app/EntityFactory/PostFactory.php b/src/EntityFactory/PostFactory.php similarity index 100% rename from app/EntityFactory/PostFactory.php rename to src/EntityFactory/PostFactory.php diff --git a/app/Enum/Design.php b/src/Enum/Design.php similarity index 100% rename from app/Enum/Design.php rename to src/Enum/Design.php diff --git a/app/Enum/FontFile.php b/src/Enum/FontFile.php similarity index 100% rename from app/Enum/FontFile.php rename to src/Enum/FontFile.php diff --git a/app/Enum/GptModel.php b/src/Enum/GptModel.php similarity index 100% rename from app/Enum/GptModel.php rename to src/Enum/GptModel.php diff --git a/app/Exception/ShouldNotHappenException.php b/src/Exception/ShouldNotHappenException.php similarity index 100% rename from app/Exception/ShouldNotHappenException.php rename to src/Exception/ShouldNotHappenException.php diff --git a/app/FileSystem/PathAnalyzer.php b/src/FileSystem/PathAnalyzer.php similarity index 100% rename from app/FileSystem/PathAnalyzer.php rename to src/FileSystem/PathAnalyzer.php diff --git a/app/Http/Controllers/HomepageController.php b/src/Http/Controllers/HomepageController.php similarity index 100% rename from app/Http/Controllers/HomepageController.php rename to src/Http/Controllers/HomepageController.php diff --git a/app/Http/Controllers/PostController.php b/src/Http/Controllers/PostController.php similarity index 100% rename from app/Http/Controllers/PostController.php rename to src/Http/Controllers/PostController.php diff --git a/app/Http/Controllers/RssController.php b/src/Http/Controllers/RssController.php similarity index 100% rename from app/Http/Controllers/RssController.php rename to src/Http/Controllers/RssController.php diff --git a/app/Http/Controllers/ShareBoardController.php b/src/Http/Controllers/ShareBoardController.php similarity index 100% rename from app/Http/Controllers/ShareBoardController.php rename to src/Http/Controllers/ShareBoardController.php diff --git a/app/Http/Controllers/ThumbnailController.php b/src/Http/Controllers/ThumbnailController.php similarity index 100% rename from app/Http/Controllers/ThumbnailController.php rename to src/Http/Controllers/ThumbnailController.php diff --git a/app/Http/Controllers/ToolsController.php b/src/Http/Controllers/ToolsController.php similarity index 100% rename from app/Http/Controllers/ToolsController.php rename to src/Http/Controllers/ToolsController.php diff --git a/app/Providers/AppServiceProvider.php b/src/Providers/AppServiceProvider.php similarity index 100% rename from app/Providers/AppServiceProvider.php rename to src/Providers/AppServiceProvider.php diff --git a/app/Repository/PostRepository.php b/src/Repository/PostRepository.php similarity index 100% rename from app/Repository/PostRepository.php rename to src/Repository/PostRepository.php diff --git a/app/Repository/ToolRepository.php b/src/Repository/ToolRepository.php similarity index 100% rename from app/Repository/ToolRepository.php rename to src/Repository/ToolRepository.php diff --git a/app/Socials/PostTweetGenerator.php b/src/Socials/PostTweetGenerator.php similarity index 100% rename from app/Socials/PostTweetGenerator.php rename to src/Socials/PostTweetGenerator.php diff --git a/app/ValueObject/PostTweet.php b/src/ValueObject/PostTweet.php similarity index 100% rename from app/ValueObject/PostTweet.php rename to src/ValueObject/PostTweet.php diff --git a/app/ValueObject/Tool.php b/src/ValueObject/Tool.php similarity index 100% rename from app/ValueObject/Tool.php rename to src/ValueObject/Tool.php diff --git a/app/functions.php b/src/functions.php similarity index 100% rename from app/functions.php rename to src/functions.php