Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
/public/build/fonts/glyphicons-*
/public/build/images/glyphicons-*

Expand All @@ -22,3 +23,7 @@
/public/assets/
/assets/vendor
###< symfony/asset-mapper ###

###> qossmic/deptrac-shim ###
/.deptrac.cache
###< qossmic/deptrac-shim ###
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"phpstan/phpstan": "^1.2",
"phpstan/phpstan-doctrine": "^1.3",
"phpstan/phpstan-symfony": "^1.2",
"qossmic/deptrac-shim": "^1.0",
"symfony/browser-kit": "^7.0",
"symfony/css-selector": "^7.0",
"symfony/debug-bundle": "^7.0",
Expand Down
57 changes: 56 additions & 1 deletion composer.lock

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

25 changes: 25 additions & 0 deletions deptrac.baseline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
deptrac:
skip_violations:
App\Command\AddUserCommand:
- App\Entity\User
- App\Repository\UserRepository
App\Command\DeleteUserCommand:
- App\Entity\User
- App\Repository\UserRepository
App\Command\ListUsersCommand:
- App\Entity\User
- App\Repository\UserRepository
App\Controller\Admin\BlogController:
- App\Entity\Post
- App\Entity\User
- App\Repository\PostRepository
App\Controller\BlogController:
- App\Entity\Comment
- App\Entity\Post
- App\Entity\User
- App\Repository\PostRepository
- App\Repository\TagRepository
App\Controller\SecurityController:
- App\Entity\User
App\Controller\UserController:
- App\Entity\User
37 changes: 37 additions & 0 deletions deptrac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
imports:
- deptrac.baseline.yaml
parameters:
paths:
- ./src
exclude_files:
- '#.*test.*#'
layers:
- name: Controller
collectors:
- type: className
regex: App\\Controller.*
- name: Command
collectors:
- type: className
regex: App\\Command.*
- name: Persistence
collectors:
- type: className
regex: App\\(Entity|Repository|Pagination).*
- name: Service
collectors:
- type: className
regex: App\\(Event|EventSubscriber|Form|Security|Utils).*
ruleset:
Controller:
- Service
Command:
- Service
Service:
- Persistence
Persistence:
formatters:
graphviz:
hidden_layers: []
groups: []
point_to_groups: false
3 changes: 3 additions & 0 deletions importmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,7 @@
'bootstrap-tagsinput' => [
'version' => '0.7.1',
],
'@symfony/ux-live-component' => [
'path' => './vendor/symfony/ux-live-component/assets/dist/live_controller.js',
],
];
12 changes: 12 additions & 0 deletions symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@
"psr/log": {
"version": "1.1.4"
},
"qossmic/deptrac-shim": {
"version": "1.0",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "main",
"version": "0.19",
"ref": "3c3daab46226c37fc14e10faf81df737a3039d96"
},
"files": [
"deptrac.yaml"
]
},
"symfony/apache-pack": {
"version": "1.0",
"recipe": {
Expand Down