Skip to content
Snippets Groups Projects
Commit f838d24c authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

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.
parent ffe57a55
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,10 @@ ...@@ -3,7 +3,10 @@
"vendor-dir": "lib/composer" "vendor-dir": "lib/composer"
}, },
"autoload" : { "autoload" : {
"psr-4": {"OC\\": "lib/private"} "psr-4": {
"OC\\": "lib/private",
"OCP\\": "lib/public"
}
}, },
"require-dev": { "require-dev": {
"jakub-onderka/php-parallel-lint": "^0.9.2", "jakub-onderka/php-parallel-lint": "^0.9.2",
......
...@@ -7,4 +7,5 @@ $baseDir = dirname(dirname($vendorDir)); ...@@ -7,4 +7,5 @@ $baseDir = dirname(dirname($vendorDir));
return array( return array(
'OC\\' => array($baseDir . '/lib/private'), 'OC\\' => array($baseDir . '/lib/private'),
'OCP\\' => array($baseDir . '/lib/public'),
); );
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment