Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/bundle/Resources/config/services/controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ services:
tags:
- controller.service_arguments

Ibexa\Bundle\AdminUi\Controller\ContentViewController: ~
Ibexa\Bundle\AdminUi\Controller\ContentViewController:
parent: Ibexa\Contracts\AdminUi\Controller\Controller
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really immediately see how setting this as parent definition helps. Especially since this definition lies in a completely different file it seems.

Have you considered using _instanceof to prevent forgetting that this parent has to be added to each controller of this type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I haven't. Til this point we have followed adding parent controller to all of the admin-ui-related ones. I only aimed to fix the ones that slipped between cracks and which I tracked down while working on enabling new security layer.

I would say that if this approach needs revisiting we should work on that separately as it's a bit out of scope of security-related changes.

Unless you had something else in mind.


Ibexa\Bundle\AdminUi\Controller\DashboardController: ~
Ibexa\Bundle\AdminUi\Controller\DashboardController:
parent: Ibexa\Contracts\AdminUi\Controller\Controller

Ibexa\Bundle\AdminUi\Controller\LanguageController:
parent: Ibexa\Contracts\AdminUi\Controller\Controller
Expand Down Expand Up @@ -226,8 +228,6 @@ services:
arguments:
$translationHelper: '@Ibexa\Core\Helper\TranslationHelper'

Ibexa\Contracts\AdminUi\Controller\Controller: ~

Ibexa\Bundle\AdminUi\Controller\FieldDefinitionController:
parent: Ibexa\Rest\Server\Controller
tags: ['controller.service_arguments']
Expand Down