Save the container with the app's namespace so we can resolve it

This commit is contained in:
Joas Schilling 2016-08-22 14:25:43 +02:00
parent 056c1ab035
commit 94432c089f
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 2 additions and 1 deletions

View 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;
}
/**