]> Raphaël G. Git Repositories - packbundle/commitdiff
Add SluggerUtil class alias
authorRaphaël Gertz <git@rapsys.eu>
Sun, 8 Aug 2021 13:42:34 +0000 (15:42 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Sun, 8 Aug 2021 13:42:34 +0000 (15:42 +0200)
Resources/config/packages/rapsys_pack.yaml

index 3f93ff4316f047e897e07f508dc9fe5eeea1f745..b9a1645cf0a323ac8bc34b15f124fa8a158c0084 100644 (file)
@@ -18,8 +18,11 @@ services:
         class: 'Rapsys\PackBundle\Extension\PackExtension'
         arguments: [ '@file_locator', '@service_container', '@rapsys_pack.path_package', '@rapsys_pack.slugger_util' ]
         tags: [ 'twig.extension' ]
-    #Register slugger utils service
+    #Register slugger util service
     rapsys_pack.slugger_util:
         class: 'Rapsys\PackBundle\Util\SluggerUtil'
         arguments: [ '%env(APP_SECRET)%' ]
         public: true
+    #Register slugger util class alias
+    Rapsys\PackBundle\Util\SluggerUtil:
+        alias: 'rapsys_pack.slugger_util'