Skip to content

Commit 503e6be

Browse files
authored
Merge pull request #5824 from kenjis/revert-3423
config: remove App\ and Config\ in autoload.psr-4 in app starter composer.json
2 parents 1eeb5ec + 135222d commit 503e6be

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

admin/starter/composer.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
"ext-fileinfo": "Improves mime type detection for files"
1818
},
1919
"autoload": {
20-
"psr-4": {
21-
"App\\": "app",
22-
"Config\\": "app/Config"
23-
},
2420
"exclude-from-classmap": [
2521
"**/Database/Migrations/**"
2622
]

system/CLI/Commands.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ public function getCommands()
7676
/**
7777
* Discovers all commands in the framework and within user code,
7878
* and collects instances of them to work with.
79+
*
80+
* @TODO this approach (find qualified classname from path) causes error,
81+
* when using Composer autoloader.
82+
* See https://github.com/codeigniter4/CodeIgniter4/issues/5818
7983
*/
8084
public function discoverCommands()
8185
{

0 commit comments

Comments
 (0)