From 552921d4291e45bd587ff05bbd222b67ebfd02c0 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 24 Feb 2017 13:09:09 -0600 Subject: [PATCH] Fix injection of defaults Signed-off-by: Morris Jobke --- lib/private/AppFramework/DependencyInjection/DIContainer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index 5a7b9da929d..86fc568076c 100644 --- a/lib/private/AppFramework/DependencyInjection/DIContainer.php +++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php @@ -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(); }); -- 2.39.5