]> Raphaël G. Git Repositories - packbundle/commitdiff
Move package and route configurations in Resources/config/ to config/
authorRaphaël Gertz <git@rapsys.eu>
Thu, 21 Nov 2024 18:09:28 +0000 (19:09 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 21 Nov 2024 18:09:28 +0000 (19:09 +0100)
config/packages/rapsyspack.yaml [moved from Resources/config/packages/rapsyspack.yaml with 92% similarity]
config/routes/rapsyspack.yaml [moved from Resources/config/routes/rapsyspack.yaml with 100% similarity]

similarity index 92%
rename from Resources/config/packages/rapsyspack.yaml
rename to config/packages/rapsyspack.yaml
index f57cf7445cbfdbec9510ba9fce7e3abdd2b97ca6..fb847585067871a9f076cc00aa4b264d27fdf73b 100644 (file)
@@ -26,6 +26,11 @@ services:
         class: 'Rapsys\PackBundle\Util\FacebookUtil'
         arguments: [ '@router', '%kernel.project_dir%/var/cache', '%rapsyspack.path%' ]
         public: true
+    # Register file util service
+    rapsyspack.file_util:
+        class: 'Rapsys\PackBundle\Util\FileUtil'
+        arguments: [ '@rapsyspack.image_util', '@rapsyspack.intl_util', '@translator' ]
+        public: true
     # Register image util service
     rapsyspack.image_util:
         class: 'Rapsys\PackBundle\Util\ImageUtil'
@@ -78,6 +83,9 @@ services:
     # Register facebook util class alias
     Rapsys\PackBundle\Util\FacebookUtil:
         alias: 'rapsyspack.facebook_util'
+    # Register file util class alias
+    Rapsys\PackBundle\Util\FileUtil:
+        alias: 'rapsyspack.file_util'
     # Register image util class alias
     Rapsys\PackBundle\Util\ImageUtil:
         alias: 'rapsyspack.image_util'