Allos OCP classes to be PSR-4 as well

This adds the OCP namespace to the composer autoloader as well.
This means that now we can use proper PSR-4 filenames in OCP.
This commit is contained in:
Roeland Jago Douma 2016-03-22 16:31:18 +01:00
parent ffe57a55d9
commit f838d24c5d
2 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,10 @@
"vendor-dir": "lib/composer"
},
"autoload" : {
"psr-4": {"OC\\": "lib/private"}
"psr-4": {
"OC\\": "lib/private",
"OCP\\": "lib/public"
}
},
"require-dev": {
"jakub-onderka/php-parallel-lint": "^0.9.2",

View File

@ -7,4 +7,5 @@ $baseDir = dirname(dirname($vendorDir));
return array(
'OC\\' => array($baseDir . '/lib/private'),
'OCP\\' => array($baseDir . '/lib/public'),
);