Fix injection of defaults

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2017-02-24 13:09:09 -06:00
parent 50f3efad6f
commit 552921d429
No known key found for this signature in database
GPG key ID: 9CE5ED29E7FCD38A

View file

@ -344,6 +344,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return Util::getDefaultEmailAddress('no-reply');
});
$this->registerService('OC_Defaults', function ($c) {
return $c->getServer()->getThemingDefaults();
});
$this->registerService('OCP\Encryption\IManager', function ($c) {
return $this->getServer()->getEncryptionManager();
});