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: security.rst
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2117,8 +2117,13 @@ Prepending the path with ``^`` means that only URLs *beginning* with the
2117
2117
pattern are matched. For example, a path of ``/admin`` (without the ``^``)
2118
2118
would match ``/admin/foo`` but would also match URLs like ``/foo/admin``.
2119
2119
2120
-
Each ``access_control`` can also match on IP address, hostname and HTTP methods or be directly configured by passing a service implementing `RequestMatcherInterface` through the `request_matcher` option.
2120
+
Each ``access_control`` can also match on IP address, hostname and HTTP methods.
2121
2121
It can also be used to redirect a user to the ``https`` version of a URL pattern.
2122
+
2123
+
.. versionadded:: 6.1
2124
+
Since Symfony 6.1, an access control rule can also be directly configured by passing a service
2125
+
implementing `RequestMatcherInterface` through the `request_matcher` option.
0 commit comments