Skip to content

Commit b7a62ee

Browse files
committed
docs: change paragraph structure
1 parent 40f994e commit b7a62ee

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

user_guide_src/source/incoming/filters.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,20 @@ URI's you can use an array of URI patterns:
134134
$methods
135135
========
136136

137+
.. Warning:: If you use ``$methods`` filters, you should :ref:`disable Auto Routing (Legacy) <use-defined-routes-only>`
138+
because :ref:`auto-routing-legacy` permits any HTTP method to access a controller.
139+
Accessing the controller with a method you don't expect could bypass the filter.
140+
137141
You can apply filters to all requests of a certain HTTP method, like POST, GET, PUT, etc. In this array, you would
138-
specify the method name in lowercase. It's value would be an array of filters to run. Unlike the ``$globals`` or the
139-
``$filters`` properties, these will only run as before filters:
142+
specify the method name in **lowercase**. It's value would be an array of filters to run:
140143

141144
.. literalinclude:: filters/008.php
142145

143-
In addition to the standard HTTP methods, this also supports one special case: 'cli'. The 'cli' method would apply to
144-
all requests that were run from the command line.
146+
.. note:: Unlike the ``$globals`` or the
147+
``$filters`` properties, these will only run as before filters.
145148

146-
.. Warning:: If you use ``$methods`` filters, you should :ref:`disable Auto Routing (Legacy) <use-defined-routes-only>`
147-
because :ref:`auto-routing-legacy` permits any HTTP method to access a controller.
148-
Accessing the controller with a method you don't expect could bypass the filter.
149+
In addition to the standard HTTP methods, this also supports one special case: ``cli``. The ``cli`` method would apply to
150+
all requests that were run from the command line.
149151

150152
$filters
151153
========

0 commit comments

Comments
 (0)