mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix cs
This commit is contained in:
parent
409a571010
commit
92800f5dd0
@ -30,8 +30,7 @@ class UsersJobFilter implements FilterInterface
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private readonly TranslatableStringHelperInterface $translatableStringHelper,
|
private readonly TranslatableStringHelperInterface $translatableStringHelper,
|
||||||
private readonly UserJobRepositoryInterface $userJobRepository
|
private readonly UserJobRepositoryInterface $userJobRepository
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function addRole(): ?string
|
public function addRole(): ?string
|
||||||
{
|
{
|
||||||
|
@ -29,8 +29,7 @@ final readonly class JobFilter implements FilterInterface
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private TranslatableStringHelper $translatableStringHelper,
|
private TranslatableStringHelper $translatableStringHelper,
|
||||||
private UserJobRepositoryInterface $userJobRepository
|
private UserJobRepositoryInterface $userJobRepository
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function addRole(): ?string
|
public function addRole(): ?string
|
||||||
{
|
{
|
||||||
|
@ -31,8 +31,7 @@ class ScopeFilter implements FilterInterface
|
|||||||
protected TranslatorInterface $translator,
|
protected TranslatorInterface $translator,
|
||||||
private readonly TranslatableStringHelper $translatableStringHelper,
|
private readonly TranslatableStringHelper $translatableStringHelper,
|
||||||
private readonly ScopeRepositoryInterface $scopeRepository
|
private readonly ScopeRepositoryInterface $scopeRepository
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function addRole(): ?string
|
public function addRole(): ?string
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,6 @@ use Chill\DocGeneratorBundle\Entity\DocGeneratorTemplate;
|
|||||||
use Chill\DocGeneratorBundle\Repository\DocGeneratorTemplateRepository;
|
use Chill\DocGeneratorBundle\Repository\DocGeneratorTemplateRepository;
|
||||||
use Chill\DocGeneratorBundle\Service\Messenger\RequestGenerationMessage;
|
use Chill\DocGeneratorBundle\Service\Messenger\RequestGenerationMessage;
|
||||||
use Chill\DocStoreBundle\Entity\StoredObject;
|
use Chill\DocStoreBundle\Entity\StoredObject;
|
||||||
use Chill\MainBundle\Entity\User;
|
|
||||||
use Chill\MainBundle\Form\Type\PickUserDynamicType;
|
use Chill\MainBundle\Form\Type\PickUserDynamicType;
|
||||||
use Chill\MainBundle\Pagination\PaginatorFactory;
|
use Chill\MainBundle\Pagination\PaginatorFactory;
|
||||||
use Chill\MainBundle\Security\ChillSecurity;
|
use Chill\MainBundle\Security\ChillSecurity;
|
||||||
@ -36,7 +35,6 @@ use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
|
|||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
use Symfony\Component\Messenger\MessageBusInterface;
|
use Symfony\Component\Messenger\MessageBusInterface;
|
||||||
use Symfony\Component\Routing\Annotation\Route;
|
use Symfony\Component\Routing\Annotation\Route;
|
||||||
use Symfony\Component\Security\Core\Security;
|
|
||||||
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
|
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
|
||||||
use Symfony\Component\Validator\Constraints\NotBlank;
|
use Symfony\Component\Validator\Constraints\NotBlank;
|
||||||
use Symfony\Component\Validator\Constraints\NotNull;
|
use Symfony\Component\Validator\Constraints\NotNull;
|
||||||
|
@ -34,8 +34,7 @@ class Generator implements GeneratorInterface
|
|||||||
private readonly ManagerRegistry $objectManagerRegistry,
|
private readonly ManagerRegistry $objectManagerRegistry,
|
||||||
private readonly LoggerInterface $logger,
|
private readonly LoggerInterface $logger,
|
||||||
private readonly StoredObjectManagerInterface $storedObjectManager
|
private readonly StoredObjectManagerInterface $storedObjectManager
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function generateDataDump(
|
public function generateDataDump(
|
||||||
DocGeneratorTemplate $template,
|
DocGeneratorTemplate $template,
|
||||||
|
@ -26,8 +26,7 @@ final readonly class OnAfterMessageHandledClearStoredObjectCache implements Even
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private StoredObjectManagerInterface $storedObjectManager,
|
private StoredObjectManagerInterface $storedObjectManager,
|
||||||
private LoggerInterface $logger,
|
private LoggerInterface $logger,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public static function getSubscribedEvents()
|
public static function getSubscribedEvents()
|
||||||
{
|
{
|
||||||
|
@ -40,8 +40,7 @@ final readonly class OnGenerationFails implements EventSubscriberInterface
|
|||||||
private StoredObjectRepositoryInterface $storedObjectRepository,
|
private StoredObjectRepositoryInterface $storedObjectRepository,
|
||||||
private TranslatorInterface $translator,
|
private TranslatorInterface $translator,
|
||||||
private UserRepositoryInterface $userRepository
|
private UserRepositoryInterface $userRepository
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public static function getSubscribedEvents()
|
public static function getSubscribedEvents()
|
||||||
{
|
{
|
||||||
|
@ -46,8 +46,7 @@ class RequestGenerationHandler implements MessageHandlerInterface
|
|||||||
private readonly MailerInterface $mailer,
|
private readonly MailerInterface $mailer,
|
||||||
private readonly TempUrlGeneratorInterface $tempUrlGenerator,
|
private readonly TempUrlGeneratorInterface $tempUrlGenerator,
|
||||||
private readonly TranslatorInterface $translator,
|
private readonly TranslatorInterface $translator,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function __invoke(RequestGenerationMessage $message)
|
public function __invoke(RequestGenerationMessage $message)
|
||||||
{
|
{
|
||||||
|
@ -17,6 +17,4 @@ use Doctrine\Persistence\ObjectRepository;
|
|||||||
/**
|
/**
|
||||||
* @extends ObjectRepository<StoredObject>
|
* @extends ObjectRepository<StoredObject>
|
||||||
*/
|
*/
|
||||||
interface StoredObjectRepositoryInterface extends ObjectRepository
|
interface StoredObjectRepositoryInterface extends ObjectRepository {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -22,7 +22,6 @@ use Chill\MainBundle\DependencyInjection\CompilerPass\ShortMessageCompilerPass;
|
|||||||
use Chill\MainBundle\DependencyInjection\CompilerPass\TimelineCompilerClass;
|
use Chill\MainBundle\DependencyInjection\CompilerPass\TimelineCompilerClass;
|
||||||
use Chill\MainBundle\DependencyInjection\CompilerPass\WidgetsCompilerPass;
|
use Chill\MainBundle\DependencyInjection\CompilerPass\WidgetsCompilerPass;
|
||||||
use Chill\MainBundle\DependencyInjection\ConfigConsistencyCompilerPass;
|
use Chill\MainBundle\DependencyInjection\ConfigConsistencyCompilerPass;
|
||||||
use Chill\MainBundle\DependencyInjection\RoleProvidersCompilerPass;
|
|
||||||
use Chill\MainBundle\Notification\NotificationHandlerInterface;
|
use Chill\MainBundle\Notification\NotificationHandlerInterface;
|
||||||
use Chill\MainBundle\Routing\LocalMenuBuilderInterface;
|
use Chill\MainBundle\Routing\LocalMenuBuilderInterface;
|
||||||
use Chill\MainBundle\Search\SearchApiInterface;
|
use Chill\MainBundle\Search\SearchApiInterface;
|
||||||
|
@ -20,8 +20,7 @@ final readonly class DashboardApiController
|
|||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private NewsItemRepository $newsItemRepository,
|
private NewsItemRepository $newsItemRepository,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get user dashboard config (not yet based on user id and still hardcoded for now).
|
* Get user dashboard config (not yet based on user id and still hardcoded for now).
|
||||||
|
@ -25,8 +25,7 @@ class NewsItemApiController
|
|||||||
private readonly NewsItemRepository $newsItemRepository,
|
private readonly NewsItemRepository $newsItemRepository,
|
||||||
private readonly SerializerInterface $serializer,
|
private readonly SerializerInterface $serializer,
|
||||||
private readonly PaginatorFactory $paginatorFactory
|
private readonly PaginatorFactory $paginatorFactory
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get list of news items filtered on start and end date.
|
* Get list of news items filtered on start and end date.
|
||||||
|
@ -28,8 +28,7 @@ final readonly class NewsItemHistoryController
|
|||||||
private readonly PaginatorFactory $paginatorFactory,
|
private readonly PaginatorFactory $paginatorFactory,
|
||||||
private readonly FilterOrderHelperFactoryInterface $filterOrderHelperFactory,
|
private readonly FilterOrderHelperFactoryInterface $filterOrderHelperFactory,
|
||||||
private readonly Environment $environment,
|
private readonly Environment $environment,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Route("/{_locale}/news-items/history", name="chill_main_news_items_history")
|
* @Route("/{_locale}/news-items/history", name="chill_main_news_items_history")
|
||||||
|
@ -17,9 +17,7 @@ use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
|
|||||||
|
|
||||||
class AdminNewsMenuBuilder implements LocalMenuBuilderInterface
|
class AdminNewsMenuBuilder implements LocalMenuBuilderInterface
|
||||||
{
|
{
|
||||||
public function __construct(private readonly AuthorizationCheckerInterface $authorizationChecker)
|
public function __construct(private readonly AuthorizationCheckerInterface $authorizationChecker) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function buildMenu($menuId, MenuItem $menu, array $parameters)
|
public function buildMenu($menuId, MenuItem $menu, array $parameters)
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,6 @@ namespace Chill\MainBundle\Security;
|
|||||||
|
|
||||||
class RoleProvider
|
class RoleProvider
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* an array where keys are the role, and value is the title
|
* an array where keys are the role, and value is the title
|
||||||
* for the given role.
|
* for the given role.
|
||||||
@ -27,9 +26,7 @@ class RoleProvider
|
|||||||
* @var iterable<ProvideRoleInterface>
|
* @var iterable<ProvideRoleInterface>
|
||||||
*/
|
*/
|
||||||
private iterable $providers
|
private iterable $providers
|
||||||
)
|
) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getRoles(): array
|
public function getRoles(): array
|
||||||
{
|
{
|
||||||
|
@ -24,8 +24,7 @@ final readonly class AccompanyingPeriodWorkWithEvaluationBetweenDatesFilter impl
|
|||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private RollingDateConverterInterface $rollingDateConverter,
|
private RollingDateConverterInterface $rollingDateConverter,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function buildForm(FormBuilderInterface $builder): void
|
public function buildForm(FormBuilderInterface $builder): void
|
||||||
{
|
{
|
||||||
|
@ -31,8 +31,7 @@ class JobFilter implements FilterInterface
|
|||||||
protected TranslatorInterface $translator,
|
protected TranslatorInterface $translator,
|
||||||
private readonly TranslatableStringHelper $translatableStringHelper,
|
private readonly TranslatableStringHelper $translatableStringHelper,
|
||||||
private readonly UserJobRepositoryInterface $userJobRepository,
|
private readonly UserJobRepositoryInterface $userJobRepository,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function addRole(): ?string
|
public function addRole(): ?string
|
||||||
{
|
{
|
||||||
|
@ -31,8 +31,7 @@ class ScopeFilter implements FilterInterface
|
|||||||
protected TranslatorInterface $translator,
|
protected TranslatorInterface $translator,
|
||||||
private readonly TranslatableStringHelper $translatableStringHelper,
|
private readonly TranslatableStringHelper $translatableStringHelper,
|
||||||
private readonly ScopeRepositoryInterface $scopeRepository
|
private readonly ScopeRepositoryInterface $scopeRepository
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function addRole(): ?string
|
public function addRole(): ?string
|
||||||
{
|
{
|
||||||
|
@ -88,8 +88,7 @@ final readonly class ListAccompanyingPeriodHelper
|
|||||||
private UserHelper $userHelper,
|
private UserHelper $userHelper,
|
||||||
private LabelPersonHelper $labelPersonHelper,
|
private LabelPersonHelper $labelPersonHelper,
|
||||||
private CenterRepository $centerRepository
|
private CenterRepository $centerRepository
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
public function getQueryKeys($data)
|
public function getQueryKeys($data)
|
||||||
{
|
{
|
||||||
|
@ -84,8 +84,7 @@ final readonly class ListPersonHelper
|
|||||||
* @var iterable<CustomizeListPersonHelperInterface>
|
* @var iterable<CustomizeListPersonHelperInterface>
|
||||||
*/
|
*/
|
||||||
private iterable $customPersonHelpers,
|
private iterable $customPersonHelpers,
|
||||||
) {
|
) {}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Those keys are the "direct" keys, which are created when we decide to use to list all the keys.
|
* Those keys are the "direct" keys, which are created when we decide to use to list all the keys.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user