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 8fa244e..c9de937 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" ]