Skip to content

Commit

Permalink
Merge pull request #6476 from kenjis/fix-docs-upgrade_420.rst
Browse files Browse the repository at this point in the history
docs: add composer.json in Mandatory File Changes in upgrade_420.rst
  • Loading branch information
kenjis authored Sep 3, 2022
2 parents 924b3c4 + 465422a commit 9cbe0a2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions user_guide_src/source/installation/upgrade_420.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,26 @@ Config/Constants.php

The constants ``EVENT_PRIORITY_LOW``, ``EVENT_PRIORITY_NORMAL`` and ``EVENT_PRIORITY_HIGH`` are deprecated, and the definitions are moved to ``app/Config/Constants.php``. If you use these constants, define them in ``app/Config/Constants.php``. Or use new class constants ``CodeIgniter\Events\Events::PRIORITY_LOW``, ``CodeIgniter\Events\Events::PRIORITY_NORMAL`` and ``CodeIgniter\Events\Events::PRIORITY_HIGH``.

composer.json
=============

If you use Composer, when you installed CodeIgniter v4.1.9 or before, and
if there are ``App\\`` and ``Config\\`` namespaces in your ``/composer.json``'s ``autoload.psr-4``
like the following, you need to remove these lines, and run ``composer dump-autoload``.

.. code-block:: text
{
...
"autoload": {
"psr-4": {
"App\\": "app", <-- Remove this line
"Config\\": "app/Config" <-- Remove this line
}
},
...
}
Breaking Changes
****************

Expand Down

0 comments on commit 9cbe0a2

Please sign in to comment.