Skip to content

Commit

Permalink
dev/core#1684 Use psr-4 autoloader instead of psr-0 for Civi and test…
Browse files Browse the repository at this point in the history
…s directories

This change is to allow underscores in class names, which were being misinterpreted as directory separators.
  • Loading branch information
colemanw committed Apr 19, 2020
1 parent e3e2d18 commit 0ac6469
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@
"autoload": {
"psr-0": {
"PHPUnit_": ["packages/"],
"Civi": "",
"Civi\\": [".", "tests/phpunit/"]
"Civi": ""
},
"psr-4": {
"Civi\\": ["setup/src/"]
"Civi\\": [".", "tests/phpunit/", "setup/src/"]
}
},
"include-path": ["vendor/tecnickcom"],
Expand Down

0 comments on commit 0ac6469

Please sign in to comment.