summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-22 21:28:45 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-22 21:28:45 +0100
commit640e6351f17c7307d467bfa9e1665a30fabbdc4b (patch)
tree07ea8e4a8dedc340e3749d585da16925177ef78a
parentd5be21fe8159f7dc567ae9c1264b1f9087f16e8e (diff)
parent5b78c604b5479bf88cf2972a7970158f4ea35fe3 (diff)
downloadnextcloud-server-640e6351f17c7307d467bfa9e1665a30fabbdc4b.tar.gz
nextcloud-server-640e6351f17c7307d467bfa9e1665a30fabbdc4b.zip
Merge pull request #23485 from owncloud/composer_allow_ocp
Allow OCP classes to be PSR-4 as well
-rw-r--r--composer.json5
-rw-r--r--lib/composer/composer/autoload_psr4.php1
-rw-r--r--lib/public/IServerContainer.php (renamed from lib/public/iservercontainer.php)0
3 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'),
);
diff --git a/lib/public/iservercontainer.php b/lib/public/IServerContainer.php
index de48daeef88..de48daeef88 100644
--- a/lib/public/iservercontainer.php
+++ b/lib/public/IServerContainer.php