mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 23:04:58 +00:00
autowire+autoconfigure service to avoid container error with parameter_bag + add dep injection + comment debug
This commit is contained in:
@@ -6,4 +6,14 @@ services:
|
||||
Chill\CustomFieldsBundle\Controller\CustomFieldsGroupController:
|
||||
arguments:
|
||||
$customFieldProvider: '@chill.custom_field.provider'
|
||||
$translator: '@Symfony\Contracts\Translation\TranslatorInterface'
|
||||
tags: ['controller.service_arguments']
|
||||
## TODO
|
||||
## cfr. https://github.com/symfony/symfony/issues/27436#issuecomment-393576416
|
||||
#
|
||||
# " An exception has been thrown during the rendering of a template
|
||||
# ("The "Chill\CustomFieldsBundle\Controller\CustomFieldsGroupController::getParameter()" method is missing a parameter bag
|
||||
# to work properly. Did you forget to register your controller as a service subscriber? This can be fixed
|
||||
# either by using autoconfiguration or by manually wiring a "parameter_bag" in the service locator passed to the controller.").
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
|
Reference in New Issue
Block a user