aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Controller
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-09-19 16:06:40 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-09-21 11:57:21 +0200
commit0a9371f99f05786068d6f6a72b9a717ec24690a8 (patch)
tree90ae93c3e608e2bf90a1ed0a54defb053d3e86ef /apps/settings/lib/Controller
parentb6761fbc967bd165279ca20af8c05cae045267d4 (diff)
downloadnextcloud-server-0a9371f99f05786068d6f6a72b9a717ec24690a8.tar.gz
nextcloud-server-0a9371f99f05786068d6f6a72b9a717ec24690a8.zip
Migrate applications away from deprecated ILogger
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/settings/lib/Controller')
-rw-r--r--apps/settings/lib/Controller/WebAuthnController.php29
1 files changed, 8 insertions, 21 deletions
diff --git a/apps/settings/lib/Controller/WebAuthnController.php b/apps/settings/lib/Controller/WebAuthnController.php
index 468685816f5..59c4d2146b1 100644
--- a/apps/settings/lib/Controller/WebAuthnController.php
+++ b/apps/settings/lib/Controller/WebAuthnController.php
@@ -33,37 +33,24 @@ use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\IgnoreOpenAPI;
use OCP\AppFramework\Http\JSONResponse;
-use OCP\ILogger;
use OCP\IRequest;
use OCP\ISession;
use OCP\IUserSession;
+use Psr\Log\LoggerInterface;
use Webauthn\PublicKeyCredentialCreationOptions;
#[IgnoreOpenAPI]
class WebAuthnController extends Controller {
private const WEBAUTHN_REGISTRATION = 'webauthn_registration';
- /** @var Manager */
- private $manager;
-
- /** @var IUserSession */
- private $userSession;
- /**
- * @var ISession
- */
- private $session;
- /**
- * @var ILogger
- */
- private $logger;
-
- public function __construct(IRequest $request, ILogger $logger, Manager $webAuthnManager, IUserSession $userSession, ISession $session) {
+ public function __construct(
+ IRequest $request,
+ private LoggerInterface $logger,
+ private Manager $manager,
+ private IUserSession $userSession,
+ private ISession $session,
+ ) {
parent::__construct(Application::APP_ID, $request);
-
- $this->manager = $webAuthnManager;
- $this->userSession = $userSession;
- $this->session = $session;
- $this->logger = $logger;
}
/**