diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-22 18:31:18 +0300 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-22 18:31:18 +0300 |
commit | f838d24c5dcecbf79aaddbce2c4f87db6416b7e0 (patch) | |
tree | 787e67f8b520507a216a835add9908b80c904219 | |
parent | ffe57a55d973e244fc84573323e3da8512e1ac95 (diff) |
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.
-rw-r--r-- | composer.json | 5 | ||||
-rw-r--r-- | lib/composer/composer/autoload_psr4.php | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/composer.json b/composer.json index 495a9896ae2..21575b5fa60 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/lib/composer/composer/autoload_psr4.php b/lib/composer/composer/autoload_psr4.php index a4b49f0f55f..4610a912c6d 100644 --- a/lib/composer/composer/autoload_psr4.php +++ b/lib/composer/composer/autoload_psr4.php @@ -7,4 +7,5 @@ $baseDir = dirname(dirname($vendorDir)); return array( 'OC\\' => array($baseDir . '/lib/private'), + 'OCP\\' => array($baseDir . '/lib/public'), ); |