Commit ea0598a
committed
minor #10390 [Security] Add constants for access decision strategies (c960657)
This PR was merged into the 2.5-dev branch.
Discussion
----------
[Security] Add constants for access decision strategies
I suggest adding constants for the three access decision strategies (affirmative, consensus, unanimous).
They are difficult to spell, and without constants they are difficult to identify when reading the code.
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | N/A
| License | MIT
| Doc PR | N/A
Commits
-------
5d6ef00 Add class constants for access decision strategies.File tree
Expand file treeCollapse file tree
2 files changed
+24
-20
lines changedOpen diff view settings
Filter options
- src/Symfony/Component/Security/Core
- Authorization
- Tests/Authorization
Expand file treeCollapse file tree
2 files changed
+24
-20
lines changedOpen diff view settings
Collapse file
src/Symfony/Component/Security/Core/Authorization/AccessDecisionManager.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Authorization/AccessDecisionManager.php+5-1Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
25 | 29 | |
26 | 30 | |
27 | 31 | |
| ||
37 | 41 | |
38 | 42 | |
39 | 43 | |
40 | | - |
| 44 | + |
41 | 45 | |
42 | 46 | |
43 | 47 | |
|
Collapse file
src/Symfony/Component/Security/Core/Tests/Authorization/AccessDecisionManagerTest.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Tests/Authorization/AccessDecisionManagerTest.php+19-19Lines changed: 19 additions & 19 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
77 | 77 | |
78 | 78 | |
79 | 79 | |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
84 | | - |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
85 | 85 | |
86 | 86 | |
87 | | - |
88 | | - |
89 | | - |
| 87 | + |
| 88 | + |
| 89 | + |
90 | 90 | |
91 | | - |
| 91 | + |
92 | 92 | |
93 | | - |
| 93 | + |
94 | 94 | |
95 | | - |
96 | | - |
| 95 | + |
| 96 | + |
97 | 97 | |
98 | | - |
99 | | - |
| 98 | + |
| 99 | + |
100 | 100 | |
101 | 101 | |
102 | | - |
103 | | - |
104 | | - |
| 102 | + |
| 103 | + |
| 104 | + |
105 | 105 | |
106 | | - |
107 | | - |
| 106 | + |
| 107 | + |
108 | 108 | |
109 | 109 | |
110 | 110 | |
|
0 commit comments