]> source.dussan.org Git - nextcloud-server.git/commitdiff
Save the container with the app's namespace so we can resolve it 995/head
authorJoas Schilling <coding@schilljs.com>
Mon, 22 Aug 2016 12:25:43 +0000 (14:25 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 22 Aug 2016 12:25:43 +0000 (14:25 +0200)
lib/private/ServerContainer.php

index 1bab2587e8d747f358b1f0cf23cc9a882f8f1a2c..df0293addf75969e001a9da4b6f47d7e23e69cb9 100644 (file)
@@ -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;
        }
 
        /**