mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 10:24:31 +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
|
@ -58,10 +58,10 @@ final class LabelHTMLGenerator
|
|||
private BarcodeGenerator $barcodeGenerator;
|
||||
private SandboxedTwigProvider $sandboxedTwigProvider;
|
||||
private string $partdb_title;
|
||||
private Security $security;
|
||||
private \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
|
||||
public function __construct(ElementTypeNameGenerator $elementTypeNameGenerator, LabelTextReplacer $replacer, Environment $twig,
|
||||
BarcodeGenerator $barcodeGenerator, SandboxedTwigProvider $sandboxedTwigProvider, Security $security, string $partdb_title)
|
||||
BarcodeGenerator $barcodeGenerator, SandboxedTwigProvider $sandboxedTwigProvider, \Symfony\Bundle\SecurityBundle\Security $security, string $partdb_title)
|
||||
{
|
||||
$this->twig = $twig;
|
||||
$this->elementTypeNameGenerator = $elementTypeNameGenerator;
|
||||
|
|
|
@ -54,10 +54,10 @@ use Symfony\Component\Security\Core\Security;
|
|||
final class GlobalProviders implements PlaceholderProviderInterface
|
||||
{
|
||||
private string $partdb_title;
|
||||
private Security $security;
|
||||
private \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
private UrlGeneratorInterface $url_generator;
|
||||
|
||||
public function __construct(string $partdb_title, Security $security, UrlGeneratorInterface $url_generator)
|
||||
public function __construct(string $partdb_title, \Symfony\Bundle\SecurityBundle\Security $security, UrlGeneratorInterface $url_generator)
|
||||
{
|
||||
$this->partdb_title = $partdb_title;
|
||||
$this->security = $security;
|
||||
|
|
|
@ -34,11 +34,11 @@ class EventLogger
|
|||
protected array $blacklist;
|
||||
protected array $whitelist;
|
||||
protected EntityManagerInterface $em;
|
||||
protected Security $security;
|
||||
protected \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
protected ConsoleInfoHelper $console_info_helper;
|
||||
|
||||
public function __construct(int $minimum_log_level, array $blacklist, array $whitelist, EntityManagerInterface $em,
|
||||
Security $security, ConsoleInfoHelper $console_info_helper)
|
||||
\Symfony\Bundle\SecurityBundle\Security $security, ConsoleInfoHelper $console_info_helper)
|
||||
{
|
||||
$this->minimum_log_level = $minimum_log_level;
|
||||
$this->blacklist = $blacklist;
|
||||
|
|
|
@ -38,10 +38,10 @@ use Symfony\Component\Security\Core\Security;
|
|||
final class PartsTableActionHandler
|
||||
{
|
||||
private EntityManagerInterface $entityManager;
|
||||
private Security $security;
|
||||
private \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
private UrlGeneratorInterface $urlGenerator;
|
||||
|
||||
public function __construct(EntityManagerInterface $entityManager, Security $security, UrlGeneratorInterface $urlGenerator)
|
||||
public function __construct(EntityManagerInterface $entityManager, \Symfony\Bundle\SecurityBundle\Security $security, UrlGeneratorInterface $urlGenerator)
|
||||
{
|
||||
$this->entityManager = $entityManager;
|
||||
$this->security = $security;
|
||||
|
|
|
@ -53,11 +53,11 @@ class ToolsTreeBuilder
|
|||
protected UrlGeneratorInterface $urlGenerator;
|
||||
protected UserCacheKeyGenerator $keyGenerator;
|
||||
protected TagAwareCacheInterface $cache;
|
||||
protected Security $security;
|
||||
protected \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
|
||||
public function __construct(TranslatorInterface $translator, UrlGeneratorInterface $urlGenerator,
|
||||
TagAwareCacheInterface $treeCache, UserCacheKeyGenerator $keyGenerator,
|
||||
Security $security)
|
||||
\Symfony\Bundle\SecurityBundle\Security $security)
|
||||
{
|
||||
$this->translator = $translator;
|
||||
$this->urlGenerator = $urlGenerator;
|
||||
|
|
|
@ -32,10 +32,10 @@ use Symfony\Component\Security\Core\Security;
|
|||
*/
|
||||
class UserCacheKeyGenerator
|
||||
{
|
||||
protected Security $security;
|
||||
protected \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
protected RequestStack $requestStack;
|
||||
|
||||
public function __construct(Security $security, RequestStack $requestStack)
|
||||
public function __construct(\Symfony\Bundle\SecurityBundle\Security $security, RequestStack $requestStack)
|
||||
{
|
||||
$this->security = $security;
|
||||
$this->requestStack = $requestStack;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue