Skip to content

Commit e25de14

Browse files
committed
add documentation about events hook change
1 parent 695cab0 commit e25de14

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/en/appendices/5-4-migration-guide.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ The CakePHP version header in help output is now only shown when the CakePHP
3434
version can be determined. When used outside a CakePHP application (where the
3535
version is reported as `unknown`), the header is omitted.
3636

37+
### Events
38+
39+
Events being registered in either `Application::events()` or `Plugin::events()`
40+
now work in both web and CLI contexts. It is therefore highly recommended to
41+
move your event listeners from the `config/bootstrap.php` file to the
42+
`events()` method in your `Application` or `Plugin` class.
43+
See [Application and Plugin Events](../core-libraries/events#registering-event-listeners) for more details.
44+
3745
### I18n
3846

3947
- `Number::parseFloat()` now returns `null` instead of `0.0` when parsing

0 commit comments

Comments
 (0)