diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-08-01 18:27:07 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-16 15:24:23 +0100 |
commit | b56f2c9ed01332bbeaee73599a0ea166c62d01e8 (patch) | |
tree | 0dee1604c0890f25f87dcdb3d9d1a17f5b95460e /lib/private/Server.php | |
parent | d03446a0ae25a88b68df2bc2bf8d0c49e5473ea0 (diff) | |
download | nextcloud-server-b56f2c9ed01332bbeaee73599a0ea166c62d01e8.tar.gz nextcloud-server-b56f2c9ed01332bbeaee73599a0ea166c62d01e8.zip |
basic lockdown logic
Signed-off-by: Robin Appelman <icewind@owncloud.com>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index abedf8230ed..c6755357a1d 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -69,6 +69,7 @@ use OC\IntegrityCheck\Helpers\FileAccessHelper; use OC\Lock\DBLockingProvider; use OC\Lock\MemcacheLockingProvider; use OC\Lock\NoopLockingProvider; +use OC\Lockdown\LockdownManager; use OC\Mail\Mailer; use OC\Memcache\ArrayCache; use OC\Notification\Manager; @@ -795,6 +796,9 @@ class Server extends ServerContainer implements IServerContainer { $c->getSystemConfig() ); }); + $this->registerService('LockdownManager', function (Server $c) { + return new LockdownManager(); + }); } /** @@ -1534,4 +1538,11 @@ class Server extends ServerContainer implements IServerContainer { $factory = $this->query(\OC\Files\AppData\Factory::class); return $factory->get($app); } + + /** + * @return \OCP\Lockdown\ILockdownManager + */ + public function getLockdownManager() { + return $this->query('LockdownManager'); + } } |