diff --git a/Resources/config/symfony_profiler.yaml b/Resources/config/symfony_profiler.yaml index dcdb646..7c32ada 100644 --- a/Resources/config/symfony_profiler.yaml +++ b/Resources/config/symfony_profiler.yaml @@ -1,17 +1,15 @@ services: + _defaults: + autowire: true + bind: + $isToolbarAllowEdit: '%php_translation.toolbar.allow_edit%' + php_translation.data_collector: class: Symfony\Component\Translation\DataCollector\TranslationDataCollector - arguments: [ '@translator.data_collector' ] tags: - { name: 'data_collector', template: "@Translation/SymfonyProfiler/translation.html.twig", id: "translation", priority: 200 } Translation\Bundle\Controller\SymfonyProfilerController: - autowire: true public: true - arguments: - - '@Translation\Bundle\Service\StorageService' - - '@twig' - - '@router' - - '%php_translation.toolbar.allow_edit%' calls: - setProfiler: ['@?profiler']