summaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-10-12 12:08:42 +0200
committerJoas Schilling <coding@schilljs.com>2016-10-20 12:14:51 +0200
commit20986488505616654177da1f861238f0232656fa (patch)
tree9019b92a582b25b5dd1dbbef73c16116692ff686 /lib/private/AppFramework
parentf7f271154702883367f418c4f9e35418ab4219ef (diff)
downloadnextcloud-server-20986488505616654177da1f861238f0232656fa.tar.gz
nextcloud-server-20986488505616654177da1f861238f0232656fa.zip
Add Rich Object Definitions and a validator
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r--lib/private/AppFramework/DependencyInjection/DIContainer.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php
index 21d5eaa9503..b2fdf86d9c2 100644
--- a/lib/private/AppFramework/DependencyInjection/DIContainer.php
+++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php
@@ -44,10 +44,12 @@ use OC\AppFramework\Middleware\Security\SecurityMiddleware;
use OC\AppFramework\Middleware\SessionMiddleware;
use OC\AppFramework\Utility\SimpleContainer;
use OC\Core\Middleware\TwoFactorMiddleware;
+use OC\RichObjectStrings\Validator;
use OCP\AppFramework\IApi;
use OCP\AppFramework\IAppContainer;
use OCP\Files\IAppData;
use OCP\Files\Mount\IMountManager;
+use OCP\RichObjectStrings\IValidator;
class DIContainer extends SimpleContainer implements IAppContainer {
@@ -330,6 +332,10 @@ class DIContainer extends SimpleContainer implements IAppContainer {
return $this->getServer()->getEncryptionManager();
});
+ $this->registerService(IValidator::class, function($c) {
+ return $c->query(Validator::class);
+ });
+
/**
* App Framework APIs