mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 15:53:04 -04:00
Use OCP version of IToken in AppPasswordCreatedEvent
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
9e75c75f86
commit
6893aa1f6b
1 changed files with 4 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue