Skip to content

Commit 15b2ea4

Browse files
authored
Merge pull request #8075 from codeigniter4/revert-8055-docs-fix-event-points
Revert "docs: fix event points descriptions"
2 parents 0ab6fb9 + 5d5487c commit 15b2ea4

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

user_guide_src/source/changelogs/v4.4.2.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ Bugs Fixed
4444
- **Forge:** Fixed a bug where adding a Primary Key to an existing table was
4545
ignored if there were no other Keys added too.
4646
- **Routing:** Fixed a bug that ``spark routes`` may show incorrect route names.
47-
- **UserGuide:** Fixed the descriptions for ``pre_system`` and ``post_system``
48-
in :ref:`event-points`.
4947

5048
See the repo's
5149
`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_

user_guide_src/source/extending/events.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,14 @@ You can stop simulation by passing false:
8282

8383
.. literalinclude:: events/008.php
8484

85-
.. _event-points:
86-
8785
Event Points
8886
============
8987

9088
The following is a list of available event points within the CodeIgniter core code:
9189

92-
* **pre_system** Called early during system execution. The URI, Request, and
93-
Response have been instantiated, but page cache checking, routing, and execution
94-
of "before" controller filters have not yet occurred.
90+
* **pre_system** Called very early during system execution. Only the benchmark and events class have been loaded at this point. No routing or other processes have happened.
9591
* **post_controller_constructor** Called immediately after your controller is instantiated, but prior to any method calls happening.
96-
* **post_system** Called right before the final rendered page is sent to the browser,
97-
at the end of system execution, after the execution of "after" controller filters.
92+
* **post_system** Called after the final rendered page is sent to the browser, at the end of system execution after the finalized data is sent to the browser.
9893
* **email** Called after an email sent successfully from ``CodeIgniter\Email\Email``. Receives an array of the ``Email`` class's properties as a parameter.
9994
* **DBQuery** Called after a database query whether successful or not. Receives the ``Query`` object.
10095
* **migrate** Called after a successful migration call to ``latest()`` or ``regress()``. Receives the current properties of ``MigrationRunner`` as well as the name of the method.

user_guide_src/source/installation/upgrade_4xx.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,6 @@ Hooks
153153
- Instead of CI3's ``$hook['post_controller_constructor']`` you now use
154154
``Events::on('post_controller_constructor', ['MyClass', 'MyFunction']);``, with the namespace ``CodeIgniter\Events\Events;``.
155155
- Events are always enabled, and are available globally.
156-
- The hook point ``pre_controller`` and ``post_controller`` have been removed.
157-
Use :doc:`../incoming/filters` instead.
158-
- The hook point ``display_override`` and ``cache_override`` have been removed.
159-
Because the base methods have been removed.
160-
- The hook point ``post_system`` has moved just before sending the final rendered
161-
page.
162156

163157
Extending the Framework
164158
=======================

0 commit comments

Comments
 (0)