diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-02-16 22:12:47 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-02-16 22:13:03 +0100 |
commit | cebf9f6a5a2d75ea682f109486ada3d5558fb6a2 (patch) | |
tree | 84b807b98f01238e153c75fd576475208a5724ef /lib/private/server.php | |
parent | 992164446cf7da39078d879300475b6353e1d40f (diff) | |
download | nextcloud-server-cebf9f6a5a2d75ea682f109486ada3d5558fb6a2.tar.gz nextcloud-server-cebf9f6a5a2d75ea682f109486ada3d5558fb6a2.zip |
Incorporate review changes
Diffstat (limited to 'lib/private/server.php')
-rw-r--r-- | lib/private/server.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/private/server.php b/lib/private/server.php index 9422f332eb1..7c7f3c25cc8 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -17,6 +17,7 @@ use OC\Security\Crypto; use OC\Security\Hasher; use OC\Security\SecureRandom; use OC\Diagnostics\NullEventLogger; +use OC\Security\TrustedDomainHelper; use OCP\IServerContainer; use OCP\ISession; use OC\Tagging\TagMapper; @@ -260,6 +261,9 @@ class Server extends SimpleContainer implements IServerContainer { $this->registerService('IniWrapper', function ($c) { return new IniGetWrapper(); }); + $this->registerService('TrustedDomainHelper', function ($c) { + return new TrustedDomainHelper($this->getConfig()); + }); } /** @@ -324,7 +328,6 @@ class Server extends SimpleContainer implements IServerContainer { ); } - /** * Returns the preview manager which can create preview images for a given file * @@ -743,4 +746,13 @@ class Server extends SimpleContainer implements IServerContainer { public function getIniWrapper() { return $this->query('IniWrapper'); } + + /** + * Get the trusted domain helper + * + * @return TrustedDomainHelper + */ + public function getTrustedDomainHelper() { + return $this->query('TrustedDomainHelper'); + } } |