dev/core#1684 Use psr-4 autoloader instead of psr-0 for Civi directory
authorColeman Watts <coleman@civicrm.org>
Sun, 19 Apr 2020 01:08:38 +0000 (21:08 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 19 Apr 2020 19:53:54 +0000 (15:53 -0400)
This change is to allow underscores in class names, which were being misinterpreted as directory separators.

composer.json

index 4ac9ffb0e3403287d8b3e5fca76d1ad1e2e0dffa..6e414e4c6650460f441f4b5f84a5354cd0dcae2f 100644 (file)
     "psr-0": {
       "PHPUnit_": ["packages/"],
       "Civi": "",
-      "Civi\\": [".", "tests/phpunit/"]
+      "Civi\\": ["tests/phpunit/"]
     },
     "psr-4": {
-      "Civi\\": ["setup/src/"]
+      "Civi\\": [".", "setup/src/"]
     }
   },
   "include-path": ["vendor/tecnickcom"],