diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-05-24 09:07:58 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-05-29 18:19:28 +0200 |
commit | 7c2d473d7686f4824d3b7f05238d262e26d5efa2 (patch) | |
tree | f4aae21880e293a2ded78e63ee3300b61b5f487f /lib/private/AppFramework/DependencyInjection | |
parent | 4be17dff0f9846d32f9740e7d7766bdbc1e98b51 (diff) | |
download | nextcloud-server-7c2d473d7686f4824d3b7f05238d262e26d5efa2.tar.gz nextcloud-server-7c2d473d7686f4824d3b7f05238d262e26d5efa2.zip |
add new config switched for the global scale architecture
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib/private/AppFramework/DependencyInjection')
-rw-r--r-- | lib/private/AppFramework/DependencyInjection/DIContainer.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index d24836228cc..86d14a2f330 100644 --- a/lib/private/AppFramework/DependencyInjection/DIContainer.php +++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php @@ -53,6 +53,7 @@ use OCP\AppFramework\IAppContainer; use OCP\AppFramework\QueryException; use OCP\Files\Folder; use OCP\Files\IAppData; +use OCP\GlobalScale\IConfig; use OCP\IL10N; use OCP\IRequest; use OCP\IServerContainer; @@ -159,6 +160,10 @@ class DIContainer extends SimpleContainer implements IAppContainer { return $this->getServer()->getEncryptionManager(); }); + $this->registerService(IConfig::class, function ($c) { + return $c->query(OC\GlobalScale\Config::class); + }); + $this->registerService(IValidator::class, function($c) { return $c->query(Validator::class); }); |