Skip to content

Commit d47279e

Browse files
authored
Use autowiring for SymfonyProfilerController (#461)
* Use autowiring for SymfonyProfilerController * Move autowire to the _defaults and remove another arg
1 parent 874cf43 commit d47279e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
services:
2+
_defaults:
3+
autowire: true
4+
bind:
5+
$isToolbarAllowEdit: '%php_translation.toolbar.allow_edit%'
6+
27
php_translation.data_collector:
38
class: Symfony\Component\Translation\DataCollector\TranslationDataCollector
4-
arguments: [ '@translator.data_collector' ]
59
tags:
610
- { name: 'data_collector', template: "@Translation/SymfonyProfiler/translation.html.twig", id: "translation", priority: 200 }
711

812
Translation\Bundle\Controller\SymfonyProfilerController:
9-
autowire: true
1013
public: true
11-
arguments:
12-
- '@Translation\Bundle\Service\StorageService'
13-
- '@twig'
14-
- '@router'
15-
- '%php_translation.toolbar.allow_edit%'
1614
calls:
1715
- setProfiler: ['@?profiler']

0 commit comments

Comments
 (0)