diff --git a/src/Bundle/ChillEventBundle/Controller/EventController.php b/src/Bundle/ChillEventBundle/Controller/EventController.php index 0cc207d7b..7ea9b605a 100644 --- a/src/Bundle/ChillEventBundle/Controller/EventController.php +++ b/src/Bundle/ChillEventBundle/Controller/EventController.php @@ -42,6 +42,7 @@ use Symfony\Component\HttpFoundation\StreamedResponse; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; use Symfony\Component\Security\Core\Security; use Symfony\Component\Serializer\Exception\ExceptionInterface; +use Symfony\Component\Serializer\Serializer; use Symfony\Component\Serializer\SerializerInterface; use Symfony\Contracts\Translation\TranslatorInterface; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; @@ -62,7 +63,7 @@ final class EventController extends AbstractController private readonly PaginatorFactory $paginator, private readonly Security $security, private readonly ManagerRegistry $managerRegistry, - private readonly SerializerInterface $serializer, + private readonly Serializer $serializer, ) {} #[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/{event_id}/delete', name: 'chill_event__event_delete', requirements: ['event_id' => '\d+'], methods: ['GET', 'POST', 'DELETE'])] @@ -217,9 +218,6 @@ final class EventController extends AbstractController ]); } - /** - * First step of new Event form. - */ #[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/new/pick-center', name: 'chill_event__event_new_pickcenter', options: [null])] public function newPickCenterAction(): Response { diff --git a/src/Bundle/ChillEventBundle/Entity/Event.php b/src/Bundle/ChillEventBundle/Entity/Event.php index f01f21cd8..a7e366eac 100644 --- a/src/Bundle/ChillEventBundle/Entity/Event.php +++ b/src/Bundle/ChillEventBundle/Entity/Event.php @@ -276,7 +276,7 @@ class Event implements HasCenterInterface, HasScopeInterface, TrackCreationInter /** * @deprecated */ - public function getScope(): ?Scope + public function getScope(): Scope { return $this->getCircle(); } @@ -390,14 +390,19 @@ class Event implements HasCenterInterface, HasScopeInterface, TrackCreationInter $this->documents = $documents; } + /** + * @deprecated + */ public function getOrganizationCost(): string { return $this->organizationCost; } + /** + * @deprecated + */ public function setOrganizationCost(string $organizationCost): void { $this->organizationCost = $organizationCost; } - } diff --git a/src/Bundle/ChillEventBundle/Form/Type/PickEventTypeType.php b/src/Bundle/ChillEventBundle/Form/Type/PickEventTypeType.php index 1365e9e1b..7166893cc 100644 --- a/src/Bundle/ChillEventBundle/Form/Type/PickEventTypeType.php +++ b/src/Bundle/ChillEventBundle/Form/Type/PickEventTypeType.php @@ -23,9 +23,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver; */ class PickEventTypeType extends AbstractType { - public function __construct(protected TranslatableStringHelper $translatableStringHelper) - { - } + public function __construct(protected TranslatableStringHelper $translatableStringHelper) {} public function configureOptions(OptionsResolver $resolver) { diff --git a/src/Bundle/ChillEventBundle/Menu/AdminMenuBuilder.php b/src/Bundle/ChillEventBundle/Menu/AdminMenuBuilder.php index 8b7535ffe..b7930fbba 100644 --- a/src/Bundle/ChillEventBundle/Menu/AdminMenuBuilder.php +++ b/src/Bundle/ChillEventBundle/Menu/AdminMenuBuilder.php @@ -17,9 +17,7 @@ use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; class AdminMenuBuilder implements LocalMenuBuilderInterface { - public function __construct(protected AuthorizationCheckerInterface $authorizationChecker) - { - } + public function __construct(protected AuthorizationCheckerInterface $authorizationChecker) {} public function buildMenu($menuId, MenuItem $menu, array $parameters): void {