diff options
Diffstat (limited to 'core/Middleware/TwoFactorMiddleware.php')
-rw-r--r-- | core/Middleware/TwoFactorMiddleware.php | 40 |
1 files changed, 8 insertions, 32 deletions
diff --git a/core/Middleware/TwoFactorMiddleware.php b/core/Middleware/TwoFactorMiddleware.php index 0ea21ce78de..f421528dff7 100644 --- a/core/Middleware/TwoFactorMiddleware.php +++ b/core/Middleware/TwoFactorMiddleware.php @@ -46,38 +46,14 @@ use OCP\IURLGenerator; use OCP\IUser; class TwoFactorMiddleware extends Middleware { - /** @var Manager */ - private $twoFactorManager; - - /** @var Session */ - private $userSession; - - /** @var ISession */ - private $session; - - /** @var IURLGenerator */ - private $urlGenerator; - - /** @var IControllerMethodReflector */ - private $reflector; - - /** @var IRequest */ - private $request; - - /** - * @param Manager $twoFactorManager - * @param Session $userSession - * @param ISession $session - * @param IURLGenerator $urlGenerator - */ - public function __construct(Manager $twoFactorManager, Session $userSession, ISession $session, - IURLGenerator $urlGenerator, IControllerMethodReflector $reflector, IRequest $request) { - $this->twoFactorManager = $twoFactorManager; - $this->userSession = $userSession; - $this->session = $session; - $this->urlGenerator = $urlGenerator; - $this->reflector = $reflector; - $this->request = $request; + public function __construct( + private Manager $twoFactorManager, + private Session $userSession, + private ISession $session, + private IURLGenerator $urlGenerator, + private IControllerMethodReflector $reflector, + private IRequest $request, + ) { } /** |