From ee4fe519de2816924be588c380737ed0408a5889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Wed, 22 Nov 2023 15:32:51 +0100 Subject: [PATCH] Switched to new Ibexa namespace for new classes --- src/bundle/Resources/config/routing.yml | 4 ++-- src/bundle/Resources/config/services.yml | 2 +- src/lib/Server/Controller/Language.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bundle/Resources/config/routing.yml b/src/bundle/Resources/config/routing.yml index a0b255a..a83d3bc 100644 --- a/src/bundle/Resources/config/routing.yml +++ b/src/bundle/Resources/config/routing.yml @@ -387,12 +387,12 @@ ezpublish_rest_setObjectStatesForContent: ibexa.rest.languages.list: path: /languages methods: [GET] - controller: Ibexa\Bundle\Rest\Server\Controller\Language::listLanguages + controller: Ibexa\Rest\Server\Controller\Language::listLanguages ibexa.rest.languages.view: path: /languages/{languageCode} methods: [GET] - controller: Ibexa\Bundle\Rest\Server\Controller\Language::loadLanguage + controller: Ibexa\Rest\Server\Controller\Language::loadLanguage # Locations diff --git a/src/bundle/Resources/config/services.yml b/src/bundle/Resources/config/services.yml index c2d5d8f..fc814a1 100644 --- a/src/bundle/Resources/config/services.yml +++ b/src/bundle/Resources/config/services.yml @@ -177,7 +177,7 @@ services: - "@ezpublish.api.service.location" tags: [controller.service_arguments] - Ibexa\Bundle\Rest\Server\Controller\Language: + Ibexa\Rest\Server\Controller\Language: autowire: true tags: [ controller.service_arguments ] diff --git a/src/lib/Server/Controller/Language.php b/src/lib/Server/Controller/Language.php index cf170da..e7786bc 100644 --- a/src/lib/Server/Controller/Language.php +++ b/src/lib/Server/Controller/Language.php @@ -6,7 +6,7 @@ */ declare(strict_types=1); -namespace Ibexa\Bundle\Rest\Server\Controller; +namespace Ibexa\Rest\Server\Controller; use eZ\Publish\API\Repository\LanguageService; use eZ\Publish\API\Repository\Values\Content\Language as ApiLanguage;