diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-03-20 14:22:06 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-04-13 12:58:50 +0200 |
commit | 0c2dc3bc8cdca46afc2bc08da4a985610093f2af (patch) | |
tree | 869da8247531737796da5e29831e90c53cc232fc /lib/private/Server.php | |
parent | 4437e00f162f74b6a8aad4ac5c1376099af0c194 (diff) | |
download | nextcloud-server-0c2dc3bc8cdca46afc2bc08da4a985610093f2af.tar.gz nextcloud-server-0c2dc3bc8cdca46afc2bc08da4a985610093f2af.zip |
Fix comments
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index c38675934c3..068c89dd8e2 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -93,6 +93,7 @@ use OC\Security\CredentialsManager; use OC\Security\SecureRandom; use OC\Security\TrustedDomainHelper; use OC\Session\CryptoWrapper; +use OC\Share20\ShareHelper; use OC\Tagging\TagMapper; use OCA\Theming\ThemingDefaults; use OCP\App\IAppManager; @@ -106,6 +107,7 @@ use OCP\IServerContainer; use OCP\ITempManager; use OCP\RichObjectStrings\IValidator; use OCP\Security\IContentSecurityPolicyManager; +use OCP\Share\IShareHelper; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventDispatcherInterface; @@ -977,6 +979,12 @@ class Server extends ServerContainer implements IServerContainer { $this->registerService(\OCP\ISession::class, function(SimpleContainer $c) { return $c->query(\OCP\IUserSession::class)->getSession(); }); + + $this->registerService(IShareHelper::class, function(Server $c) { + return new ShareHelper( + $c->getLazyRootFolder() + ); + }); } /** |