Skip to content

Commit

Permalink
add doc for recommended event handler usage and new log scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
LordSimal committed Jul 15, 2023
1 parent 65e9883 commit 965aceb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions en/appendices/5-0-migration-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ Database
``QueryExpression::case()`` or ``CaseStatementExpression``
- ``Connection::connect()`` has been removed. Use
``$connection->getDriver()->connect()`` instead.
- ``cake.database.queries`` has been added as an alternative to the ``queriesLog`` scope

Datasource
----------
Expand All @@ -113,6 +114,7 @@ Event
-----

- Event payloads must be an array. Other object such as ``ArrayAccess`` are no longer cast to array and will raise a ``TypeError`` now.
- It is recommended to adjust event handlers to be void methods and use ``$event->setResult()`` instead of returning the result

Error
-----
Expand Down Expand Up @@ -157,6 +159,7 @@ Mailer
------

- ``Email`` has been removed. Use `Mailer <https://book.cakephp.org/5/en/core-libraries/email.html>`__ instead.
- ``cake.mailer`` has been added as an alternative to the ``email`` scope

ORM
---
Expand Down

0 comments on commit 965aceb

Please sign in to comment.