]> Raphaël G. Git Repositories - userbundle/commitdiff
Define slugger class before the class requiring it
authorRaphaël Gertz <git@rapsys.eu>
Sun, 29 Nov 2020 07:33:23 +0000 (08:33 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Sun, 29 Nov 2020 07:33:23 +0000 (08:33 +0100)
Resources/config/packages/rapsys_user.yaml

index a89540896d5c23830e77cddd3628fffc096c7b0e..c4dc64d009cfacbc359cd96fba9791bf434cc21a 100644 (file)
@@ -1,11 +1,11 @@
 #Service configuration
 services:
+    #Register slugger utils service
+    rapsys.slugger:
+        class: 'Rapsys\UserBundle\Utils\Slugger'
+        arguments: [ '@service_container' ]
     #Register default controller
     Rapsys\UserBundle\Controller\DefaultController:
         arguments: [ '@service_container', '@translator', '@router' ]
         autowire: true
         tags: [ 'controller.service_arguments' ]
-    #Register slugger utils service
-    rapsys.slugger:
-        class: 'Rapsys\UserBundle\Utils\Slugger'
-        arguments: [ '@service_container' ]