mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
chore: Add descriptions for new events and fix copyright year
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
957ac81a56
commit
7d881b1bc3
3 changed files with 9 additions and 6 deletions
|
|
@ -3,7 +3,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
|
|
@ -12,6 +12,7 @@ namespace OCP\User\Events;
|
|||
use OCP\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
* Emitted before removing the mapping between an external user and an internal userid
|
||||
* @since 31.0.0
|
||||
*/
|
||||
class BeforeUserIdUnassignedEvent extends Event {
|
||||
|
|
@ -19,7 +20,7 @@ class BeforeUserIdUnassignedEvent extends Event {
|
|||
* @since 31.0.0
|
||||
*/
|
||||
public function __construct(
|
||||
private string $userId,
|
||||
private readonly string $userId,
|
||||
) {
|
||||
parent::__construct();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
|
|
@ -12,6 +12,7 @@ namespace OCP\User\Events;
|
|||
use OCP\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
* Emitted by backends (like user_ldap) when a user created externally is mapped for the first time and assigned a userid
|
||||
* @since 31.0.0
|
||||
*/
|
||||
class UserIdAssignedEvent extends Event {
|
||||
|
|
@ -19,7 +20,7 @@ class UserIdAssignedEvent extends Event {
|
|||
* @since 31.0.0
|
||||
*/
|
||||
public function __construct(
|
||||
private string $userId,
|
||||
private readonly string $userId,
|
||||
) {
|
||||
parent::__construct();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
|
|
@ -12,6 +12,7 @@ namespace OCP\User\Events;
|
|||
use OCP\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
* Emitted after removing the mapping between an external user and an internal userid
|
||||
* @since 31.0.0
|
||||
*/
|
||||
class UserIdUnassignedEvent extends Event {
|
||||
|
|
@ -19,7 +20,7 @@ class UserIdUnassignedEvent extends Event {
|
|||
* @since 31.0.0
|
||||
*/
|
||||
public function __construct(
|
||||
private string $userId,
|
||||
private readonly string $userId,
|
||||
) {
|
||||
parent::__construct();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue