Skip to content

Commit b06c057

Browse files
Splitting & adding versionadded directive
1 parent 036cb66 commit b06c057

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

security.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2117,8 +2117,13 @@ Prepending the path with ``^`` means that only URLs *beginning* with the
21172117
pattern are matched. For example, a path of ``/admin`` (without the ``^``)
21182118
would match ``/admin/foo`` but would also match URLs like ``/foo/admin``.
21192119

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.
21212121
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.
2126+
21222127
See :doc:`/security/access_control`.
21232128

21242129
.. _security-securing-controller:

0 commit comments

Comments
 (0)