Use OCP version of IToken in AppPasswordCreatedEvent

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2024-01-11 10:14:36 +01:00 committed by backportbot-nextcloud[bot]
parent 9e75c75f86
commit 6893aa1f6b

View file

@ -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 {