Skip to content

Commit

Permalink
Merge pull request #2522 from jlamim/user_guide
Browse files Browse the repository at this point in the history
Adding Events information in the 'Upgrading from 3.x to 4.x' section
  • Loading branch information
MGatner authored Jan 30, 2020
2 parents 02565d1 + 85f8951 commit 6d4e847
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions user_guide_src/source/installation/upgrade_4xx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ subforum for an up-to-date list!

- Helpers are pretty much the same as before, though some have been simplified

**Events**

- Hooks have been replaced by Events
- Instead of CI3's ``$hook['post_controller_constructor']`` you now use
``Events::on('post_controller_constructor', ['MyClass', 'MyFunction']);``,
with the namespace ``CodeIgniter\Events\Events;``
- Events are always enabled, and are available globally

**Extending the framework**

- You don't need a ``core`` folder to hold ``MY_...`` framework
Expand Down

0 comments on commit 6d4e847

Please sign in to comment.