From a529e5164d252a1b84055303cc7d4cd9e89d84df Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 8 Sep 2024 17:44:28 +0200 Subject: [PATCH] move /app to /src --- composer.json | 4 ++-- ecs.php | 2 +- rector.php | 2 +- {app => src}/Console/Commands/TweetPostCommand.php | 0 {app => src}/Console/ConsoleKernel.php | 0 {app => src}/DependencyInjection/ContainerFactory.php | 0 {app => src}/Entity/Post.php | 0 {app => src}/EntityFactory/PostFactory.php | 0 {app => src}/Enum/Design.php | 0 {app => src}/Enum/FontFile.php | 0 {app => src}/Enum/GptModel.php | 0 {app => src}/Exception/ShouldNotHappenException.php | 0 {app => src}/FileSystem/PathAnalyzer.php | 0 {app => src}/Http/Controllers/HomepageController.php | 0 {app => src}/Http/Controllers/PostController.php | 0 {app => src}/Http/Controllers/RssController.php | 0 {app => src}/Http/Controllers/ShareBoardController.php | 0 {app => src}/Http/Controllers/ThumbnailController.php | 0 {app => src}/Http/Controllers/ToolsController.php | 0 {app => src}/Providers/AppServiceProvider.php | 0 {app => src}/Repository/PostRepository.php | 0 {app => src}/Repository/ToolRepository.php | 0 {app => src}/Socials/PostTweetGenerator.php | 0 {app => src}/ValueObject/PostTweet.php | 0 {app => src}/ValueObject/Tool.php | 0 {app => src}/functions.php | 0 26 files changed, 4 insertions(+), 4 deletions(-) rename {app => src}/Console/Commands/TweetPostCommand.php (100%) rename {app => src}/Console/ConsoleKernel.php (100%) rename {app => src}/DependencyInjection/ContainerFactory.php (100%) rename {app => src}/Entity/Post.php (100%) rename {app => src}/EntityFactory/PostFactory.php (100%) rename {app => src}/Enum/Design.php (100%) rename {app => src}/Enum/FontFile.php (100%) rename {app => src}/Enum/GptModel.php (100%) rename {app => src}/Exception/ShouldNotHappenException.php (100%) rename {app => src}/FileSystem/PathAnalyzer.php (100%) rename {app => src}/Http/Controllers/HomepageController.php (100%) rename {app => src}/Http/Controllers/PostController.php (100%) rename {app => src}/Http/Controllers/RssController.php (100%) rename {app => src}/Http/Controllers/ShareBoardController.php (100%) rename {app => src}/Http/Controllers/ThumbnailController.php (100%) rename {app => src}/Http/Controllers/ToolsController.php (100%) rename {app => src}/Providers/AppServiceProvider.php (100%) rename {app => src}/Repository/PostRepository.php (100%) rename {app => src}/Repository/ToolRepository.php (100%) rename {app => src}/Socials/PostTweetGenerator.php (100%) rename {app => src}/ValueObject/PostTweet.php (100%) rename {app => src}/ValueObject/Tool.php (100%) rename {app => src}/functions.php (100%) 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