mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
fixes after merge of master into upgrade-sf4
This commit is contained in:
@@ -15,9 +15,7 @@ use Chill\MainBundle\Pagination\PaginatorInterface;
|
||||
|
||||
class Collection
|
||||
{
|
||||
public function __construct(private $items, private readonly PaginatorInterface $paginator)
|
||||
{
|
||||
}
|
||||
public function __construct(private $items, private readonly PaginatorInterface $paginator) {}
|
||||
|
||||
public function getItems()
|
||||
{
|
||||
|
@@ -13,9 +13,7 @@ namespace Chill\MainBundle\Serializer\Model;
|
||||
|
||||
class Counter implements \JsonSerializable
|
||||
{
|
||||
public function __construct(private ?int $counter)
|
||||
{
|
||||
}
|
||||
public function __construct(private ?int $counter) {}
|
||||
|
||||
public function getCounter(): ?int
|
||||
{
|
||||
|
@@ -47,9 +47,7 @@ class AddressNormalizer implements ContextAwareNormalizerInterface, NormalizerAw
|
||||
'confidential',
|
||||
];
|
||||
|
||||
public function __construct(private readonly AddressRender $addressRender)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly AddressRender $addressRender) {}
|
||||
|
||||
/**
|
||||
* @param Address $address
|
||||
|
@@ -20,9 +20,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
||||
|
||||
class CenterNormalizer implements DenormalizerInterface, NormalizerInterface
|
||||
{
|
||||
public function __construct(private readonly CenterRepository $repository)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly CenterRepository $repository) {}
|
||||
|
||||
public function denormalize($data, $type, $format = null, array $context = [])
|
||||
{
|
||||
|
@@ -23,9 +23,7 @@ class CommentEmbeddableDocGenNormalizer implements ContextAwareNormalizerInterfa
|
||||
{
|
||||
use NormalizerAwareTrait;
|
||||
|
||||
public function __construct(private readonly UserRepository $userRepository)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly UserRepository $userRepository) {}
|
||||
|
||||
/**
|
||||
* @param CommentEmbeddable $object
|
||||
|
@@ -20,9 +20,7 @@ use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
|
||||
|
||||
class DateNormalizer implements ContextAwareNormalizerInterface, DenormalizerInterface
|
||||
{
|
||||
public function __construct(private readonly RequestStack $requestStack, private readonly ParameterBagInterface $parameterBag)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly RequestStack $requestStack, private readonly ParameterBagInterface $parameterBag) {}
|
||||
|
||||
public function denormalize($data, $type, $format = null, array $context = [])
|
||||
{
|
||||
|
@@ -19,9 +19,7 @@ use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
|
||||
|
||||
class DoctrineExistingEntityNormalizer implements DenormalizerInterface
|
||||
{
|
||||
public function __construct(private readonly EntityManagerInterface $em, private readonly ClassMetadataFactoryInterface $serializerMetadataFactory)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly EntityManagerInterface $em, private readonly ClassMetadataFactoryInterface $serializerMetadataFactory) {}
|
||||
|
||||
public function denormalize($data, $type, $format = null, array $context = [])
|
||||
{
|
||||
|
@@ -23,9 +23,7 @@ class EntityWorkflowNormalizer implements NormalizerInterface, NormalizerAwareIn
|
||||
{
|
||||
use NormalizerAwareTrait;
|
||||
|
||||
public function __construct(private readonly EntityWorkflowManager $entityWorkflowManager, private readonly MetadataExtractor $metadataExtractor, private readonly Registry $registry)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly EntityWorkflowManager $entityWorkflowManager, private readonly MetadataExtractor $metadataExtractor, private readonly Registry $registry) {}
|
||||
|
||||
/**
|
||||
* @param EntityWorkflow $object
|
||||
|
@@ -21,9 +21,7 @@ class EntityWorkflowStepNormalizer implements NormalizerAwareInterface, Normaliz
|
||||
{
|
||||
use NormalizerAwareTrait;
|
||||
|
||||
public function __construct(private readonly MetadataExtractor $metadataExtractor)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly MetadataExtractor $metadataExtractor) {}
|
||||
|
||||
/**
|
||||
* @param EntityWorkflowStep $object
|
||||
|
@@ -23,9 +23,7 @@ class NotificationNormalizer implements NormalizerAwareInterface, NormalizerInte
|
||||
{
|
||||
use NormalizerAwareTrait;
|
||||
|
||||
public function __construct(private readonly NotificationHandlerManager $notificationHandlerManager, private readonly EntityManagerInterface $entityManager, private readonly Security $security)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly NotificationHandlerManager $notificationHandlerManager, private readonly EntityManagerInterface $entityManager, private readonly Security $security) {}
|
||||
|
||||
/**
|
||||
* @param Notification $object
|
||||
|
@@ -18,9 +18,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
||||
|
||||
class PrivateCommentEmbeddableNormalizer implements NormalizerInterface, DenormalizerInterface
|
||||
{
|
||||
public function __construct(private readonly Security $security)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly Security $security) {}
|
||||
|
||||
public function denormalize($data, string $type, ?string $format = null, array $context = []): PrivateCommentEmbeddable
|
||||
{
|
||||
|
@@ -38,9 +38,7 @@ class UserNormalizer implements ContextAwareNormalizerInterface, NormalizerAware
|
||||
'isAbsent' => false,
|
||||
];
|
||||
|
||||
public function __construct(private readonly UserRender $userRender)
|
||||
{
|
||||
}
|
||||
public function __construct(private readonly UserRender $userRender) {}
|
||||
|
||||
public function normalize($object, $format = null, array $context = [])
|
||||
{
|
||||
|
Reference in New Issue
Block a user