mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-30 14:49:55 +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
|
@ -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