-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Reverted] docs: fix event points descriptions #8055
Conversation
c8898f0
to
82ccf15
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple comments
@@ -153,6 +153,12 @@ Hooks | |||
- 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. | |||
- The hook point ``pre_controller`` and ``post_controller`` have been removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did this come from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The source code, and the current docs.
$ grep -R Events::trigger system/
system//Database/BaseConnection.php: Events::trigger('DBQuery', $query);
system//Database/BaseConnection.php: Events::trigger('DBQuery', $query);
system//Database/BaseConnection.php: Events::trigger('DBQuery', $query);
system//Database/MigrationRunner.php: Events::trigger('migrate', $data);
system//Database/MigrationRunner.php: Events::trigger('migrate', $data);
system//Database/BasePreparedQuery.php: Events::trigger('DBQuery', $query);
system//Database/BasePreparedQuery.php: Events::trigger('DBQuery', $query);
system//Database/BasePreparedQuery.php: Events::trigger('DBQuery', $query);
system//Test/Mock/MockEmail.php: Events::trigger('email', $this->archive);
system//CodeIgniter.php: Events::trigger('pre_system');
system//CodeIgniter.php: Events::trigger('post_controller_constructor');
system//CodeIgniter.php: Events::trigger('post_system');
system//Email/Email.php: Events::trigger('email', $this->archive);
system//Email/Email.php: Events::trigger('email', $this->archive);
Oh, v4.4.2 was already released! |
I created a new PR #8076 |
Sorry I missed that. New PR looks good. |
Description
Fixes #8049
Checklist: