Skip to content
Merged
Changes from 2 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
5 changes: 2 additions & 3 deletions src/bundle/Resources/config/services/controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ 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: ~

Expand Down Expand Up @@ -226,8 +227,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