From 8b4719a028ee3349950e39843e4f4b5e7b986591 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Thu, 6 Feb 2025 16:03:31 +0100 Subject: [PATCH] Relied on autowiring and autoconfiguration for Controllers --- src/bundle/Resources/config/services.yaml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/src/bundle/Resources/config/services.yaml b/src/bundle/Resources/config/services.yaml index 2d9f0621..fb856e63 100644 --- a/src/bundle/Resources/config/services.yaml +++ b/src/bundle/Resources/config/services.yaml @@ -88,29 +88,17 @@ services: # Controllers Ibexa\Bundle\ContentForms\Controller\ContentEditController: public: true - class: Ibexa\Bundle\ContentForms\Controller\ContentEditController + autowire: true + autoconfigure: true arguments: - - '@ibexa.api.service.content_type' - - '@ibexa.api.service.content' - - '@Ibexa\ContentForms\Form\ActionDispatcher\ContentDispatcher' - parent: Ibexa\Core\MVC\Symfony\Controller\Controller - tags: - - { name: controller.service_arguments } + $contentActionDispatcher: '@Ibexa\ContentForms\Form\ActionDispatcher\ContentDispatcher' Ibexa\Bundle\ContentForms\Controller\UserController: + autowire: true + autoconfigure: true arguments: - $contentTypeService: '@ibexa.api.service.content_type' - $userService: '@ibexa.api.service.user' - $locationService: '@ibexa.api.service.location' - $languageService: '@ibexa.api.service.language' $userActionDispatcher: '@Ibexa\ContentForms\Form\ActionDispatcher\UserDispatcher' - $permissionResolver: '@Ibexa\Contracts\Core\Repository\PermissionResolver' - $userLanguagePreferenceProvider: '@Ibexa\Core\MVC\Symfony\Locale\UserLanguagePreferenceProvider' $groupedContentFormFieldsProvider: '@Ibexa\ContentForms\Content\Form\Provider\GroupedContentFormFieldsProvider' - $contentService: '@ibexa.api.service.content' - parent: Ibexa\Core\MVC\Symfony\Controller\Controller - tags: - - { name: controller.service_arguments } ibexa_content_edit: alias: Ibexa\Bundle\ContentForms\Controller\ContentEditController