Skip to content

Commit 465422a

Browse files
committed
docs: add about composer.json autoload.psr-4
1 parent 924b3c4 commit 465422a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

user_guide_src/source/installation/upgrade_420.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,26 @@ Config/Constants.php
3838

3939
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``.
4040

41+
composer.json
42+
=============
43+
44+
If you use Composer, when you installed CodeIgniter v4.1.9 or before, and
45+
if there are ``App\\`` and ``Config\\`` namespaces in your ``/composer.json``'s ``autoload.psr-4``
46+
like the following, you need to remove these lines, and run ``composer dump-autoload``.
47+
48+
.. code-block:: text
49+
50+
{
51+
...
52+
"autoload": {
53+
"psr-4": {
54+
"App\\": "app", <-- Remove this line
55+
"Config\\": "app/Config" <-- Remove this line
56+
}
57+
},
58+
...
59+
}
60+
4161
Breaking Changes
4262
****************
4363

0 commit comments

Comments
 (0)