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
@@ -94,20 +90,10 @@ Take the following ``access_control`` entries as an example:
94
90
'path' => '^/admin',
95
91
'roles' => 'ROLE_USER_METHOD',
96
92
'methods' => 'POST, PUT',
97
-
],
98
-
[
99
-
'path' => '^/admin',
100
-
// when defining multiple roles, users must have at least one of them (it's like an OR condition)
101
-
'roles' => ['ROLE_MANAGER', 'ROLE_ADMIN'],
102
-
],
93
+
]
103
94
],
104
95
]);
105
96
106
-
.. deprecated:: 4.4
107
-
108
-
Using more than one role in a single ``access_control`` rule is deprecated
109
-
and will stop working in Symfony 5.0.
110
-
111
97
For each incoming request, Symfony will decide which ``access_control``
112
98
to use based on the URI, the client's IP address, the incoming host name,
113
99
and the request method. Remember, the first rule that matches is used, and
@@ -135,11 +121,6 @@ if ``ip``, ``port``, ``host`` or ``method`` are not specified for an entry, that
135
121
| ``/admin/user`` | 168.0.0.1 | 80 | example.com | POST | rule #4 (``ROLE_USER_METHOD``) | The ``ip`` and ``host`` don't match the first two entries, |
136
122
||||||| but the third - ``ROLE_USER_METHOD`` - matches and is used. |
0 commit comments