aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-01-11 10:14:36 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-01-11 14:02:15 +0100
commit37a6e15f8730f4de0b5b2233c150e2c905872a0f (patch)
tree0838a74d4c236a9a96e0de1626b6826806725319
parent8fc39aeb1ccc36f6f95d7b7968bdaf434af413ca (diff)
downloadnextcloud-server-37a6e15f8730f4de0b5b2233c150e2c905872a0f.tar.gz
nextcloud-server-37a6e15f8730f4de0b5b2233c150e2c905872a0f.zip
Use OCP version of IToken in AppPasswordCreatedEvent
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--lib/private/Authentication/Events/AppPasswordCreatedEvent.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/private/Authentication/Events/AppPasswordCreatedEvent.php b/lib/private/Authentication/Events/AppPasswordCreatedEvent.php
index a90abd25026..068c0a73277 100644
--- a/lib/private/Authentication/Events/AppPasswordCreatedEvent.php
+++ b/lib/private/Authentication/Events/AppPasswordCreatedEvent.php
@@ -25,16 +25,14 @@ declare(strict_types=1);
*/
namespace OC\Authentication\Events;
-use OC\Authentication\Token\IToken;
+use OCP\Authentication\Token\IToken;
use OCP\EventDispatcher\Event;
class AppPasswordCreatedEvent extends Event {
- /** @var IToken */
- private $token;
-
- public function __construct(IToken $token) {
+ public function __construct(
+ private IToken $token,
+ ) {
parent::__construct();
- $this->token = $token;
}
public function getToken(): IToken {