Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-08-22 15:25:43 +0300
committerJoas Schilling <coding@schilljs.com>2016-08-22 15:25:43 +0300
commit94432c089f0a598ed2e96d086731b44dc2897918 (patch)
tree572d76cfd515af90982723166e4387a6e71e3a5f /lib
parent056c1ab03516b406b29912e9b7975e9ef6342526 (diff)
Save the container with the app's namespace so we can resolve it
Diffstat (limited to 'lib')
-rw-r--r--lib/private/ServerContainer.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/ServerContainer.php b/lib/private/ServerContainer.php
index 1bab2587e8d..df0293addf7 100644
--- a/lib/private/ServerContainer.php
+++ b/lib/private/ServerContainer.php
@@ -23,6 +23,7 @@
namespace OC;
+use OC\AppFramework\App;
use OC\AppFramework\DependencyInjection\DIContainer;
use OC\AppFramework\Utility\SimpleContainer;
use OCP\AppFramework\QueryException;
@@ -49,7 +50,7 @@ class ServerContainer extends SimpleContainer {
* @param DIContainer $container
*/
public function registerAppContainer($appName, DIContainer $container) {
- $this->appContainers[$appName] = $container;
+ $this->appContainers[strtolower(App::buildAppNamespace($appName, ''))] = $container;
}
/**