Save the container with the app's namespace so we can resolve it
This commit is contained in:
parent
056c1ab035
commit
94432c089f
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue