Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions en/appendices/6-0-migration-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ Some methods have also been renamed to better reflect their purpose. These are:
* ``Cake\View\Helper\PaginatorHelper``
- ``_numbers()`` has been renamed to ``buildNumbers()``

Event
-----

- The signature of ``EventManagerInterface::on()`` has changed. The 2nd and 3rd
parameters have been swapped. Calls which pass an options array as the 2nd
argument will need to be updated to pass it as the 3rd argument instead or
use named parameters.

Datasource
----------

Expand Down
2 changes: 1 addition & 1 deletion en/core-libraries/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ for event listeners::
$callback = [$this, 'doSomething'];
$this->getEventManager()->on(
'Order.afterPlace',
$callback,
['priority' => 2],
$callback
);

// Setting priority for a listener
Expand Down
Loading