Skip to content

Commit

Permalink
Merge pull request #8582 from kenjis/docs-upgrade_450.rst
Browse files Browse the repository at this point in the history
docs: improve upgrade_450.rst
  • Loading branch information
kenjis authored Feb 26, 2024
2 parents 99a9148 + 6b5124b commit 254b133
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions user_guide_src/source/installation/upgrade_450.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ And you should use uppercase HTTP method names in your app code.
app/Config/Filters.php
----------------------

You should update the keys in ``$methods`` in **app/Config/Filters.php**::
You should update the keys to uppercase in ``$methods`` in **app/Config/Filters.php**::

public array $methods = [
'POST' => ['invalidchars', 'csrf'],
Expand All @@ -60,7 +60,7 @@ CURLRequest::request()
In previous versions, you could pass lowercase HTTP methods to the ``request()``
method. But this bug has been fixed.

Now you must pass the correct HTTP method names like "GET", "POST". Otherwise
Now you must pass the correct HTTP method names like ``GET``, ``POST``. Otherwise
you would get the error response::

$client = \Config\Services::curlrequest();
Expand Down Expand Up @@ -101,13 +101,6 @@ Now the ``csrf`` filter is executed for both the route ``admin`` and ``admin/use
In previous versions, it is executed only for the route ``admin``.
See also :ref:`routing-nesting-groups`.

Method Signature Changes
========================

Some method signature changes have been made. Classes that extend them should
update their APIs to reflect the changes. See :ref:`ChangeLog <v450-method-signature-changes>`
for details.

.. _upgrade-450-filter-execution-order:

Filter Execution Order
Expand Down Expand Up @@ -204,6 +197,13 @@ the filters will not be executed if the controller is not found.
If you have code that depends on this bug, for example if you expect global filters
to be executed even for non-existent pages, please add the necessary routes.

Method Signature Changes
========================

Some method signature changes have been made. Classes that extend them should
update their APIs to reflect the changes. See :ref:`ChangeLog <v450-method-signature-changes>`
for details.

Removed Deprecated Items
========================

Expand Down

0 comments on commit 254b133

Please sign in to comment.