diff options
author | Joas Schilling <coding@schilljs.com> | 2016-08-22 14:25:43 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-08-22 14:25:43 +0200 |
commit | 94432c089f0a598ed2e96d086731b44dc2897918 (patch) | |
tree | 572d76cfd515af90982723166e4387a6e71e3a5f /lib/private/ServerContainer.php | |
parent | 056c1ab03516b406b29912e9b7975e9ef6342526 (diff) | |
download | nextcloud-server-94432c089f0a598ed2e96d086731b44dc2897918.tar.gz nextcloud-server-94432c089f0a598ed2e96d086731b44dc2897918.zip |
Save the container with the app's namespace so we can resolve it
Diffstat (limited to 'lib/private/ServerContainer.php')
-rw-r--r-- | lib/private/ServerContainer.php | 3 |
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; } /** |