You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/Dependency-Constraints-Rule.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Dependency Constraints Rule
2
2
3
+
> **⚠️ DEPRECATED:** This rule has been renamed to `ForbiddenDependenciesRule`. The `DependencyConstraintsRule` class is kept for backward compatibility but will be removed in a future major version. Please update your configuration to use `ForbiddenDependenciesRule` instead.
4
+
3
5
Enforces dependency constraints between namespaces by checking `use` statements and optionally fully qualified class names (FQCNs).
4
6
5
7
The constructor takes an array of namespace dependencies. The key is the namespace that should not depend on the namespaces in the array of values.
@@ -10,6 +12,21 @@ In the example below nothing from `App\Domain` can depend on anything from `App\
0 commit comments