mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-17 00:19:31 +00: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
|
|
@ -34,7 +34,7 @@ class AttachmentTypeAdminForm extends BaseEntityAdminForm
|
|||
{
|
||||
protected FileTypeFilterTools $filterTools;
|
||||
|
||||
public function __construct(Security $security, FileTypeFilterTools $filterTools, EventCommentNeededHelper $eventCommentNeededHelper)
|
||||
public function __construct(\Symfony\Bundle\SecurityBundle\Security $security, FileTypeFilterTools $filterTools, EventCommentNeededHelper $eventCommentNeededHelper)
|
||||
{
|
||||
$this->filterTools = $filterTools;
|
||||
parent::__construct($security, $eventCommentNeededHelper);
|
||||
|
|
|
|||
|
|
@ -44,10 +44,10 @@ use Symfony\Component\Security\Core\Security;
|
|||
|
||||
class BaseEntityAdminForm extends AbstractType
|
||||
{
|
||||
protected Security $security;
|
||||
protected \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
protected EventCommentNeededHelper $eventCommentNeededHelper;
|
||||
|
||||
public function __construct(Security $security, EventCommentNeededHelper $eventCommentNeededHelper)
|
||||
public function __construct(\Symfony\Bundle\SecurityBundle\Security $security, EventCommentNeededHelper $eventCommentNeededHelper)
|
||||
{
|
||||
$this->security = $security;
|
||||
$this->eventCommentNeededHelper = $eventCommentNeededHelper;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class CurrencyAdminForm extends BaseEntityAdminForm
|
|||
{
|
||||
private string $default_currency;
|
||||
|
||||
public function __construct(Security $security, EventCommentNeededHelper $eventCommentNeededHelper, string $default_currency)
|
||||
public function __construct(\Symfony\Bundle\SecurityBundle\Security $security, EventCommentNeededHelper $eventCommentNeededHelper, string $default_currency)
|
||||
{
|
||||
parent::__construct($security, $eventCommentNeededHelper);
|
||||
$this->default_currency = $default_currency;
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@ use Symfony\Component\Security\Core\Security;
|
|||
|
||||
class ImportType extends AbstractType
|
||||
{
|
||||
protected Security $security;
|
||||
protected \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
|
||||
public function __construct(Security $security)
|
||||
public function __construct(\Symfony\Bundle\SecurityBundle\Security $security)
|
||||
{
|
||||
$this->security = $security;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,9 +32,9 @@ use Symfony\Component\Security\Core\Security;
|
|||
|
||||
class MassCreationForm extends AbstractType
|
||||
{
|
||||
protected Security $security;
|
||||
protected \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
|
||||
public function __construct(Security $security)
|
||||
public function __construct(\Symfony\Bundle\SecurityBundle\Security $security)
|
||||
{
|
||||
$this->security = $security;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class SupplierForm extends CompanyForm
|
|||
{
|
||||
protected string $default_currency;
|
||||
|
||||
public function __construct(Security $security, EventCommentNeededHelper $eventCommentNeededHelper, string $default_currency)
|
||||
public function __construct(\Symfony\Bundle\SecurityBundle\Security $security, EventCommentNeededHelper $eventCommentNeededHelper, string $default_currency)
|
||||
{
|
||||
parent::__construct($security, $eventCommentNeededHelper);
|
||||
$this->default_currency = $default_currency;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue