Browse Source

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

tags/v11.0RC2
Joas Schilling 7 years ago
parent
commit
94432c089f
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      lib/private/ServerContainer.php

+ 2
- 1
lib/private/ServerContainer.php 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;
}

/**

Loading…
Cancel
Save