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