File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed
Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ Valid tool names:
3333 cs-fixer => copies dist/php-cs-fixer.php.dist
3434 code-sniffer => copies dist/phpcs.xml.dist
3535 rector => copies dist/rector.php.dist
36+ arch-sniffer => copies dist/architecture.yaml.dist
3637 editorconfig => copies dist/.editorconfig.dist
3738EOF
3839}
@@ -85,6 +86,9 @@ case "$tool_name" in
8586 editorconfig)
8687 copy_config_file " dist/.editorconfig.dist"
8788 ;;
89+ arch-sniffer)
90+ copy_config_file " dist/architecture.yaml.dist"
91+ ;;
8892 * )
8993 echo " ❌ Invalid tool name: '$tool_name '"
9094 show_help
Original file line number Diff line number Diff line change 1+ architecture:
2+ $controller:
3+ includes:
4+ - "*Controller"
5+ dependsOn:
6+ - "$cqrs"
7+ - "Psr\\"
8+ - "Symfony\\Component\\"
9+
10+ $cqrs:
11+ includes:
12+ - "\\League\\Tactician\\CommandBus"
13+ - "\\Kununu\\CQRS\\Bundle\\Bus\\CommandBusInterface"
14+ - "$application_query"
15+ - "$application_command"
16+
17+ $cqrs_command:
18+ includes:
19+ - "App\\UseCase\\Command\\*\\*Handler"
20+ dependsOn:
21+ - ""
22+ - "App\\Application\\*"
23+ - "App\\Domain\\*"
24+ implements:
25+ - "Kununu\\CQRS\\Command\\CommandHandler"
26+ mustOnlyHaveOnePublicMethodName: "handle"
27+
28+ $cqrs_query:
29+ includes:
30+ - "App\\UseCase\\Query\\*\\*Handler"
31+ dependsOn:
32+ - "$repository"
33+ - "App\\Application\\*"
34+ - "App\\Domain\\*"
35+ implements:
36+ - "Kununu\\CQRS\\Query\\QueryHandler"
37+ mustOnlyHaveOnePublicMethodName: "handle"
38+
39+ $repository:
40+ includes:
41+ - "*RepositoryInterface"
42+ dependsOn:
43+ - "App\\Domain\\*"
44+ - "Doctrine\\"
45+ - "OpenSearch\\"
46+ - "Elasticsearch\\"
You can’t perform that action at this time.
0 commit comments