]> Raphaël G. Git Repositories - recipe/commitdiff
Pass container and translator to default controller constructor
authorRaphaël Gertz <git@rapsys.eu>
Thu, 7 Nov 2019 03:48:06 +0000 (04:48 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 7 Nov 2019 03:48:06 +0000 (04:48 +0100)
rapsys/userbundle/master/config/packages/rapsys_user.yaml

index 8fa244ef546c0a13afd04421609331be5c9eaf64..c9de9378061bd36c2e740249cb549ff25d0ee98d 100644 (file)
@@ -1,5 +1,6 @@
 services:
     Rapsys\UserBundle\Controller\DefaultController:
+        arguments: [ '@service_container', '@translator' ]
         tags: [ controller.service_arguments ]
     Rapsys\UserBundle\Utils\Slugger:
         arguments: [ "@service_container" ]