summaryrefslogtreecommitdiffstats
path: root/lib/Controller/PageController.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-07-28 13:54:20 +0200
committerJoas Schilling <coding@schilljs.com>2022-08-03 15:10:57 +0200
commitb1b01f849a21d14799ee907dd03c34d5662ec545 (patch)
treef644266e301d158d93280996c9ee9fee8c44e09c /lib/Controller/PageController.php
parentf42a4899cf03d80b22cf25263e0cef481cdfe132 (diff)
Use public throttler
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/PageController.php')
-rw-r--r--lib/Controller/PageController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index aa1c18db7..e869eae95 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -25,7 +25,6 @@ declare(strict_types=1);
namespace OCA\Talk\Controller;
-use OC\Security\Bruteforce\Throttler;
use OCA\Talk\AppInfo\Application;
use OCA\Talk\Exceptions\ParticipantNotFoundException;
use OCA\Talk\Exceptions\RoomNotFoundException;
@@ -57,6 +56,7 @@ use OCP\IURLGenerator;
use OCP\IUser;
use OCP\IUserSession;
use OCP\Notification\IManager as INotificationManager;
+use OCP\Security\Bruteforce\IThrottler;
use Psr\Log\LoggerInterface;
class PageController extends Controller {
@@ -74,7 +74,7 @@ class PageController extends Controller {
private INotificationManager $notificationManager;
private IAppManager $appManager;
private IRootFolder $rootFolder;
- private Throttler $throttler;
+ private IThrottler $throttler;
public function __construct(string $appName,
IRequest $request,
@@ -92,7 +92,7 @@ class PageController extends Controller {
IInitialState $initialState,
ICacheFactory $memcacheFactory,
IRootFolder $rootFolder,
- Throttler $throttler,
+ IThrottler $throttler,
Config $talkConfig,
IConfig $serverConfig) {
parent::__construct($appName, $request);