aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector/Sabre/Auth.php
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2024-10-22 12:47:45 +0200
committerGitHub <noreply@github.com>2024-10-22 12:47:45 +0200
commit070adc1131fcd5476e4a93ebf28be6f409c5a992 (patch)
tree1e8e2238a22d544c370f1ac804426ed675c5eacf /apps/dav/lib/Connector/Sabre/Auth.php
parent582af10e0be1b22ebde0429b756f62107d8e8083 (diff)
parente8426996f59ab6dbf0c94adee8f410cbd572b11a (diff)
downloadnextcloud-server-070adc1131fcd5476e4a93ebf28be6f409c5a992.tar.gz
nextcloud-server-070adc1131fcd5476e4a93ebf28be6f409c5a992.zip
Merge pull request #48790 from nextcloud/refactor/apps/constructor-property-promotion
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/Auth.php')
-rw-r--r--apps/dav/lib/Connector/Sabre/Auth.php17
1 files changed, 6 insertions, 11 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Auth.php b/apps/dav/lib/Connector/Sabre/Auth.php
index 4c6ce557980..fa1c2e95fad 100644
--- a/apps/dav/lib/Connector/Sabre/Auth.php
+++ b/apps/dav/lib/Connector/Sabre/Auth.php
@@ -27,25 +27,20 @@ use Sabre\HTTP\ResponseInterface;
class Auth extends AbstractBasic {
public const DAV_AUTHENTICATED = 'AUTHENTICATED_TO_DAV_BACKEND';
-
- private ISession $session;
private Session $userSession;
- private IRequest $request;
private ?string $currentUser = null;
private Manager $twoFactorManager;
- private IThrottler $throttler;
- public function __construct(ISession $session,
+ public function __construct(
+ private ISession $session,
Session $userSession,
- IRequest $request,
+ private IRequest $request,
Manager $twoFactorManager,
- IThrottler $throttler,
- string $principalPrefix = 'principals/users/') {
- $this->session = $session;
+ private IThrottler $throttler,
+ string $principalPrefix = 'principals/users/',
+ ) {
$this->userSession = $userSession;
$this->twoFactorManager = $twoFactorManager;
- $this->request = $request;
- $this->throttler = $throttler;
$this->principalPrefix = $principalPrefix;
// setup realm