From b7f8fb5752a437c7e93720e483afa46bf9d4b0a8 Mon Sep 17 00:00:00 2001 From: Sztig Date: Tue, 2 Dec 2025 12:57:25 +0100 Subject: [PATCH] removed AllNotificationsController, moved the "forward" to routing --- .../Controller/AllNotificationsController.php | 28 ------------------- src/bundle/Resources/config/routing.yaml | 4 ++- .../config/services/controllers.yaml | 6 ---- 3 files changed, 3 insertions(+), 35 deletions(-) delete mode 100644 src/bundle/Controller/AllNotificationsController.php diff --git a/src/bundle/Controller/AllNotificationsController.php b/src/bundle/Controller/AllNotificationsController.php deleted file mode 100644 index 036312de44..0000000000 --- a/src/bundle/Controller/AllNotificationsController.php +++ /dev/null @@ -1,28 +0,0 @@ -forward( - NotificationController::class . '::renderNotificationsPageAction', - [ - 'page' => $page, - 'template' => '@ibexadesign/account/notifications/list_all.html.twig', - 'render_all' => true, - ] - ); - } -} diff --git a/src/bundle/Resources/config/routing.yaml b/src/bundle/Resources/config/routing.yaml index 26f9fb7759..696341d8ed 100644 --- a/src/bundle/Resources/config/routing.yaml +++ b/src/bundle/Resources/config/routing.yaml @@ -915,8 +915,10 @@ ibexa.notifications.render.page: ibexa.notifications.render.all: path: /notifications/render/all/{page} defaults: - _controller: 'Ibexa\Bundle\AdminUi\Controller\AllNotificationsController::renderAllNotificationsPageAction' + _controller: 'Ibexa\Bundle\AdminUi\Controller\NotificationController::renderNotificationsPageAction' page: 1 + template: '@ibexadesign/account/notifications/list_all.html.twig' + render_all: true methods: [ GET, POST ] requirements: page: '\d+' diff --git a/src/bundle/Resources/config/services/controllers.yaml b/src/bundle/Resources/config/services/controllers.yaml index ab509005ec..59685a4525 100644 --- a/src/bundle/Resources/config/services/controllers.yaml +++ b/src/bundle/Resources/config/services/controllers.yaml @@ -104,12 +104,6 @@ services: tags: - controller.service_arguments - Ibexa\Bundle\AdminUi\Controller\AllNotificationsController: - parent: Ibexa\Contracts\AdminUi\Controller\Controller - autowire: true - tags: - - controller.service_arguments - Ibexa\Bundle\AdminUi\Controller\ObjectStateController: parent: Ibexa\Contracts\AdminUi\Controller\Controller autowire: true