Skip to content

Commit

Permalink
separate Game module
Browse files Browse the repository at this point in the history
  • Loading branch information
roman.dykyi committed May 30, 2021
1 parent 35eebda commit 7b8a1ae
Show file tree
Hide file tree
Showing 164 changed files with 2,849 additions and 1,983 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -39,6 +39,7 @@ cache:

deptrac:
docker/scripts/php "vendor/bin/deptrac analyze depfile.yaml --no-cache"
docker/scripts/php "vendor/bin/deptrac analyze src/Game/config/depfile.yaml --no-cache"
docker/scripts/php "vendor/bin/deptrac analyze src/Crossword/config/depfile.yaml --no-cache"
docker/scripts/php "vendor/bin/deptrac analyze src/Dictionary/config/depfile.yaml --no-cache"
@echo "deptrac done"
Expand Down
11 changes: 8 additions & 3 deletions code/config/packages/doctrine.yaml
Expand Up @@ -15,8 +15,13 @@ doctrine:
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
auto_mapping: true
mappings:
App\Game:
App\Game\Features\Player:
is_bundle: false
type: xml
dir: '%kernel.project_dir%/src/Game/config/doctrine/mappings'
prefix: 'App\Game\Domain\Model'
dir: '%kernel.project_dir%/src/Game/config/doctrine/player'
prefix: 'App\Game\Features\Player\Player'
App\Game\Features\History:
is_bundle: false
type: xml
dir: '%kernel.project_dir%/src/Game/config/doctrine/history'
prefix: 'App\Game\Features\History'
2 changes: 1 addition & 1 deletion code/config/packages/messenger.yaml
Expand Up @@ -14,4 +14,4 @@ framework:
'App\Dictionary\Features\PopulateStorage\Populate\Message\SearchWordDefinitionMessage': messages
'App\Dictionary\Features\PopulateStorage\SaveStorage\Message\SaveToStorageMessage': messages
'App\Crossword\Features\Constructor\Message\GenerateCrosswordMessage': messages
'App\Game\Domain\Events\Event\LevelUpEvent': events
'App\Game\Features\Player\Level\LevelUpEvent': events
2 changes: 1 addition & 1 deletion code/config/packages/security.yaml
Expand Up @@ -3,7 +3,7 @@ security:
providers:
users:
entity:
class: App\Game\Domain\Model\Player
class: App\Game\Features\Player\Player\Player
property: nickname
firewalls:
dev:
Expand Down
2 changes: 1 addition & 1 deletion code/config/packages/twig.yaml
@@ -1,3 +1,3 @@
twig:
paths:
'%kernel.project_dir%/src/Game/UI/Web/Templates': game
'%kernel.project_dir%/src/Game/templates': game
4 changes: 0 additions & 4 deletions code/config/routes/annotations.yaml
@@ -1,7 +1,3 @@
controllers_game:
resource: ../../src/Game/UI
type: annotation

kernel:
resource: ../../src/Kernel.php
type: annotation
12 changes: 8 additions & 4 deletions code/config/services.yaml
Expand Up @@ -31,10 +31,14 @@ services:
- '../src/Swagger/tests/'
- '../src/Game/config/'
- '../src/Game/tests/'
- '../src/Game/Domain/Model/'
- '../src/Game/Domain/Dto/'
- '../src/Game/UI/'
- '../src/Game/Domain/Events/DomainEventsSubscriber.php'
- '../src/Game/Features/Player/DomainEventsSubscriber.php'
- '../src/Game/Features/Authorization/PlayerAuthAction.php'
- '../src/Game/Features/Authorization/ViewLoginPageAction.php'
- '../src/Game/Features/Answers/CheckAnswerAction.php'
- '../src/Game/Features/GamePlay/NewGameAction.php'
- '../src/Game/Features/History/PlayerRatingAction.php'
- '../src/Game/Features/Player/Player/Player.php'
- '../src/Game/Features/History/History.php'
- '../src/Game/Infrastructure/Repository/DoctrineMigrations/'
- '../src/Crossword/config/'
- '../src/Crossword/tests/'
Expand Down
2,389 changes: 1,329 additions & 1,060 deletions code/coverage.clover

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions code/ecs.php
Expand Up @@ -54,6 +54,7 @@
$parameters->set(
Option::SKIP,
array_merge(
[__DIR__ . '/src/Kernel.php'],
array_map(static fn (string $path) => __DIR__ . $path, CROSSWORD_SKIP_PATH),
array_map(static fn (string $path) => __DIR__ . $path, DICTIONARY_SKIP_PATH),
array_map(static fn (string $path) => __DIR__ . $path, GAME_SKIP_PATH),
Expand Down
17 changes: 0 additions & 17 deletions code/src/Game/Application/Enum/ResponseFormat.php

This file was deleted.

21 changes: 0 additions & 21 deletions code/src/Game/Application/Enum/WordCount.php

This file was deleted.

24 changes: 0 additions & 24 deletions code/src/Game/Application/Response/Console/ConsoleResponse.php

This file was deleted.

10 changes: 0 additions & 10 deletions code/src/Game/Application/Response/Console/ResponseInterface.php

This file was deleted.

37 changes: 0 additions & 37 deletions code/src/Game/Application/Service/Answers/Answers.php

This file was deleted.

28 changes: 0 additions & 28 deletions code/src/Game/Application/Service/Auth/PlayerRegister.php

This file was deleted.

15 changes: 0 additions & 15 deletions code/src/Game/Application/Service/ErrorFactory.php

This file was deleted.

16 changes: 0 additions & 16 deletions code/src/Game/Domain/Assembler/PlayerAssembler.php

This file was deleted.

35 changes: 0 additions & 35 deletions code/src/Game/Domain/Dto/LanguagesDto.php

This file was deleted.

49 changes: 0 additions & 49 deletions code/src/Game/Domain/Dto/RegisteredPlayerDto.php

This file was deleted.

31 changes: 0 additions & 31 deletions code/src/Game/Domain/Enum/Level.php

This file was deleted.

This file was deleted.

0 comments on commit 7b8a1ae

Please sign in to comment.