Skip to content

Commit

Permalink
fixed container injection into controllers, as more services are mark…
Browse files Browse the repository at this point in the history
…ed as private
  • Loading branch information
ViniTou committed Jan 16, 2025
1 parent 758fd02 commit c142b19
Showing 1 changed file with 14 additions and 26 deletions.
40 changes: 14 additions & 26 deletions src/bundle/Resources/config/services/controllers.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +1,40 @@
services:
_defaults:
autowire: true
autoconfigure: true
tags:
- controller.service_arguments
- container.service_subscriber

Ibexa\Bundle\User\Controller\:
resource: "../../Controller/*"
exclude: "../../Controller/{Controller}"
parent: Ibexa\Bundle\User\Controller\Controller
tags:
- controller.service_arguments
- container.service_subscriber

Ibexa\Bundle\User\Controller\Controller:
calls:
- [setContainer, ["@service_container"]]
- [setContainer , ['@Psr\Container\ContainerInterface']]
- [performAccessCheck, []]
tags: [controller.service_arguments]

Ibexa\Bundle\User\Controller\PasswordResetController:
autowire: true
calls:
- [setContainer, ['@service_container']]
tags: [controller.service_arguments]
- [setContainer , ['@Psr\Container\ContainerInterface']]

Ibexa\Bundle\User\Controller\PasswordChangeController:
autowire: true
arguments:
$siteAccessGroups: '%ibexa.site_access.groups%'
calls:
- [setContainer, ['@service_container']]
- [performAccessCheck, []]
tags: [controller.service_arguments]

Ibexa\Bundle\User\Controller\UserRegisterController:
autowire: true
autoconfigure: true
arguments:
$userActionDispatcher: '@Ibexa\ContentForms\Form\ActionDispatcher\UserDispatcher'
tags: [controller.service_arguments]

Ibexa\Bundle\User\Controller\UserSettingsController:
autowire: true
calls:
- [ setContainer, [ '@service_container' ] ]
- [performAccessCheck, []]
tags: [controller.service_arguments]
Ibexa\Bundle\User\Controller\UserSettingsController: ~

Ibexa\Bundle\User\Controller\DefaultProfileImageController:
autowire: true
calls:
- [ setContainer, [ '@service_container' ] ]
tags: [controller.service_arguments]
- [setContainer , ['@Psr\Container\ContainerInterface']]

Ibexa\Bundle\User\Controller\UserInvitationController:
autowire: true
autoconfigure: true
tags: [ controller.service_arguments ]
Ibexa\Bundle\User\Controller\UserInvitationController: ~

0 comments on commit c142b19

Please sign in to comment.