From: Coleman Watts Date: Sun, 19 Apr 2020 01:08:38 +0000 (-0400) Subject: dev/core#1684 Use psr-4 autoloader instead of psr-0 for Civi directory X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d845fb8b4c8802c96e204b39b29ff69212b7caba;p=civicrm-core.git dev/core#1684 Use psr-4 autoloader instead of psr-0 for Civi directory This change is to allow underscores in class names, which were being misinterpreted as directory separators. --- diff --git a/composer.json b/composer.json index 4ac9ffb0e3..6e414e4c66 100644 --- a/composer.json +++ b/composer.json @@ -29,10 +29,10 @@ "psr-0": { "PHPUnit_": ["packages/"], "Civi": "", - "Civi\\": [".", "tests/phpunit/"] + "Civi\\": ["tests/phpunit/"] }, "psr-4": { - "Civi\\": ["setup/src/"] + "Civi\\": [".", "setup/src/"] } }, "include-path": ["vendor/tecnickcom"],