Run symfonysetlist up to symfony_70

This commit is contained in:
2025-05-28 15:46:25 +02:00
parent abb786495a
commit 13a9e14450
128 changed files with 515 additions and 518 deletions

View File

@@ -36,12 +36,12 @@ use Symfony\Component\Routing\Annotation\Route;
use Symfony\Contracts\Translation\TranslatorInterface;
use function in_array;
#[Route(path: '/{_locale}/notification')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{_locale}/notification')]
class NotificationController extends AbstractController
{
public function __construct(private readonly EntityManagerInterface $em, private readonly LoggerInterface $chillLogger, private readonly LoggerInterface $logger, private readonly ChillSecurity $security, private readonly NotificationRepository $notificationRepository, private readonly NotificationHandlerManager $notificationHandlerManager, private readonly PaginatorFactory $paginatorFactory, private readonly TranslatorInterface $translator, private readonly UserRepository $userRepository, private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry) {}
#[Route(path: '/create', name: 'chill_main_notification_create')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/create', name: 'chill_main_notification_create')]
public function createAction(Request $request): Response
{
$this->denyAccessUnlessGranted('IS_AUTHENTICATED_REMEMBERED');
@@ -93,13 +93,13 @@ class NotificationController extends AbstractController
}
return $this->render('@ChillMain/Notification/create.html.twig', [
'form' => $form->createView(),
'form' => $form,
'handler' => $handler,
'notification' => $notification,
]);
}
#[Route(path: '/{id}/edit', name: 'chill_main_notification_edit')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{id}/edit', name: 'chill_main_notification_edit')]
public function editAction(#[MapEntity(id: 'id')] Notification $notification, Request $request): Response
{
$this->denyAccessUnlessGranted(NotificationVoter::NOTIFICATION_UPDATE, $notification);
@@ -121,13 +121,13 @@ class NotificationController extends AbstractController
}
return $this->render('@ChillMain/Notification/edit.html.twig', [
'form' => $form->createView(),
'form' => $form,
'handler' => $this->notificationHandlerManager->getHandler($notification),
'notification' => $notification,
]);
}
#[Route(path: '/{id}/access_key', name: 'chill_main_notification_grant_access_by_access_key')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{id}/access_key', name: 'chill_main_notification_grant_access_by_access_key')]
public function getAccessByAccessKey(#[MapEntity(id: 'id')] Notification $notification, Request $request): Response
{
$this->denyAccessUnlessGranted('IS_AUTHENTICATED_REMEMBERED');
@@ -167,7 +167,7 @@ class NotificationController extends AbstractController
return $this->redirectToRoute('chill_main_notification_show', ['id' => $notification->getId()]);
}
#[Route(path: '/inbox', name: 'chill_main_notification_my')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/inbox', name: 'chill_main_notification_my')]
public function inboxAction(): Response
{
$this->denyAccessUnlessGranted('ROLE_USER');
@@ -191,7 +191,7 @@ class NotificationController extends AbstractController
]);
}
#[Route(path: '/sent', name: 'chill_main_notification_sent')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/sent', name: 'chill_main_notification_sent')]
public function sentAction(): Response
{
$this->denyAccessUnlessGranted('IS_AUTHENTICATED_REMEMBERED');
@@ -215,7 +215,7 @@ class NotificationController extends AbstractController
]);
}
#[Route(path: '/{id}/show', name: 'chill_main_notification_show')]
#[\Symfony\Component\Routing\Attribute\Route(path: '/{id}/show', name: 'chill_main_notification_show')]
public function showAction(#[MapEntity(id: 'id')] Notification $notification, Request $request): Response
{
$this->denyAccessUnlessGranted(NotificationVoter::NOTIFICATION_SEE, $notification);