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:
parent
ffe57a55d9
commit
f838d24c5d
2 changed files with 5 additions and 1 deletions
|
@ -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",
|
||||
|
|
|
@ -7,4 +7,5 @@ $baseDir = dirname(dirname($vendorDir));
|
|||
|
||||
return array(
|
||||
'OC\\' => array($baseDir . '/lib/private'),
|
||||
'OCP\\' => array($baseDir . '/lib/public'),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue