]> Raphaël G. Git Repositories - packbundle/commitdiff
Import packages configuration
authorRaphaël Gertz <git@rapsys.eu>
Tue, 26 Nov 2019 20:54:12 +0000 (21:54 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 26 Nov 2019 20:54:12 +0000 (21:54 +0100)
Resources/config/packages/rapsys_pack.yaml [new file with mode: 0644]

diff --git a/Resources/config/packages/rapsys_pack.yaml b/Resources/config/packages/rapsys_pack.yaml
new file mode 100644 (file)
index 0000000..da45381
--- /dev/null
@@ -0,0 +1,11 @@
+#Services configuration
+services:
+    #Register assets pack package
+    assets.pack_package:
+        class: Rapsys\PackBundle\Asset\PathPackage
+        arguments: [ '/', '@assets.empty_version_strategy', '@assets.context' ]
+    #Register twig pack extension
+    rapsys_pack.twig.pack_extension:
+        class: Rapsys\PackBundle\Twig\PackExtension
+        arguments: [ '@file_locator', '@service_container', '@assets.pack_package' ]
+        tags: [ twig.extension ]