mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 02:14:31 +02:00
Applied rector with PHP8.1 migration rules
This commit is contained in:
parent
dc6a67c2f0
commit
7ee01d9a05
303 changed files with 1228 additions and 3465 deletions
|
@ -50,11 +50,8 @@ use Symfony\Contracts\EventDispatcher\Event;
|
|||
*/
|
||||
class SecurityEvent extends Event
|
||||
{
|
||||
protected User $targetUser;
|
||||
|
||||
public function __construct(User $targetUser)
|
||||
public function __construct(protected User $targetUser)
|
||||
{
|
||||
$this->targetUser = $targetUser;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -43,13 +43,13 @@ namespace App\Events;
|
|||
|
||||
class SecurityEvents
|
||||
{
|
||||
public const PASSWORD_CHANGED = 'security.password_changed';
|
||||
public const PASSWORD_RESET = 'security.password_reset';
|
||||
public const BACKUP_KEYS_RESET = 'security.backup_keys_reset';
|
||||
public const U2F_ADDED = 'security.u2f_added';
|
||||
public const U2F_REMOVED = 'security.u2f_removed';
|
||||
public const GOOGLE_ENABLED = 'security.google_enabled';
|
||||
public const GOOGLE_DISABLED = 'security.google_disabled';
|
||||
public const TRUSTED_DEVICE_RESET = 'security.trusted_device_reset';
|
||||
public const TFA_ADMIN_RESET = 'security.2fa_admin_reset';
|
||||
final public const PASSWORD_CHANGED = 'security.password_changed';
|
||||
final public const PASSWORD_RESET = 'security.password_reset';
|
||||
final public const BACKUP_KEYS_RESET = 'security.backup_keys_reset';
|
||||
final public const U2F_ADDED = 'security.u2f_added';
|
||||
final public const U2F_REMOVED = 'security.u2f_removed';
|
||||
final public const GOOGLE_ENABLED = 'security.google_enabled';
|
||||
final public const GOOGLE_DISABLED = 'security.google_disabled';
|
||||
final public const TRUSTED_DEVICE_RESET = 'security.trusted_device_reset';
|
||||
final public const TFA_ADMIN_RESET = 'security.2fa_admin_reset';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue