mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 14:04:30 +02:00
Applied rector rules up to symfony 6.2
This commit is contained in:
parent
88ea920dfb
commit
a43af180a7
145 changed files with 563 additions and 889 deletions
|
@ -30,7 +30,7 @@ use Symfony\Component\Security\Http\Event\LogoutEvent;
|
|||
/**
|
||||
* This handler logs to event log, if a user logs out.
|
||||
*/
|
||||
class LogoutLoggerListener
|
||||
class LogoutLoggerEventSubscriber implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
|
||||
{
|
||||
protected EventLogger $logger;
|
||||
protected bool $gpdr_compliance;
|
||||
|
@ -58,4 +58,11 @@ class LogoutLoggerListener
|
|||
|
||||
$this->logger->logAndFlush($log);
|
||||
}
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public static function getSubscribedEvents(): array
|
||||
{
|
||||
return [\Symfony\Component\Security\Http\Event\LogoutEvent::class => ''];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,10 +36,10 @@ use Symfony\Component\Security\Core\Security;
|
|||
*/
|
||||
final class LogoutDisabledUserSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
private Security $security;
|
||||
private \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
private UrlGeneratorInterface $urlGenerator;
|
||||
|
||||
public function __construct(Security $security, UrlGeneratorInterface $urlGenerator)
|
||||
public function __construct(\Symfony\Bundle\SecurityBundle\Security $security, UrlGeneratorInterface $urlGenerator)
|
||||
{
|
||||
$this->security = $security;
|
||||
|
||||
|
|
|
@ -55,10 +55,10 @@ final class PasswordChangeNeededSubscriber implements EventSubscriberInterface
|
|||
* @var string The route the user will redirected to, if he needs to change this password
|
||||
*/
|
||||
public const REDIRECT_TARGET = 'user_settings';
|
||||
private Security $security;
|
||||
private \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
private HttpUtils $httpUtils;
|
||||
|
||||
public function __construct(Security $security, HttpUtils $httpUtils)
|
||||
public function __construct(\Symfony\Bundle\SecurityBundle\Security $security, HttpUtils $httpUtils)
|
||||
{
|
||||
$this->security = $security;
|
||||
$this->httpUtils = $httpUtils;
|
||||
|
|
|
@ -34,9 +34,9 @@ use Symfony\Component\Security\Core\Security;
|
|||
final class SetUserTimezoneSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
private string $default_timezone;
|
||||
private Security $security;
|
||||
private \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
|
||||
public function __construct(string $timezone, Security $security)
|
||||
public function __construct(string $timezone, \Symfony\Bundle\SecurityBundle\Security $security)
|
||||
{
|
||||
$this->default_timezone = $timezone;
|
||||
$this->security = $security;
|
||||
|
|
|
@ -35,12 +35,12 @@ use Symfony\Component\Security\Core\Security;
|
|||
*/
|
||||
class UpgradePermissionsSchemaSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
private Security $security;
|
||||
private \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
private PermissionSchemaUpdater $permissionSchemaUpdater;
|
||||
private EntityManagerInterface $entityManager;
|
||||
private EventCommentHelper $eventCommentHelper;
|
||||
|
||||
public function __construct(Security $security, PermissionSchemaUpdater $permissionSchemaUpdater, EntityManagerInterface $entityManager, EventCommentHelper $eventCommentHelper)
|
||||
public function __construct(\Symfony\Bundle\SecurityBundle\Security $security, PermissionSchemaUpdater $permissionSchemaUpdater, EntityManagerInterface $entityManager, EventCommentHelper $eventCommentHelper)
|
||||
{
|
||||
$this->security = $security;
|
||||
$this->permissionSchemaUpdater = $permissionSchemaUpdater;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue