]> Raphaël G. Git Repositories - airbundle/commitdiff
Set the pack package in packages listing class
authorRaphaël Gertz <git@rapsys.eu>
Thu, 28 Nov 2019 20:24:14 +0000 (21:24 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 28 Nov 2019 20:24:14 +0000 (21:24 +0100)
Fix framework.asset.packages naming to match package name

Resources/config/packages/rapsys_air.yaml

index 45ce51271c4d989540cc35779c72b499522ddcb5..92abe3f081ff050f09dde9c49018e2f971f09212 100644 (file)
@@ -186,7 +186,7 @@ security:
 #        version_format: '%%s?v=%%s'
 #
 #        packages:
-#            pack_package:
+#            pack:
 #                base_path: '/bundles/%%s'
 
 #Service configuration
@@ -218,12 +218,10 @@ services:
     #Register air fixtures
     Rapsys\AirBundle\DataFixtures\AirFixtures:
         tags: [ 'doctrine.fixture.orm' ]
-    #Replace default package
-    #XXX: set base path to /bundles/<bundlealias> and disable versioning
-    assets._default_package:
-        class: 'Rapsys\PackBundle\Asset\PackPackage'
-        arguments: [ '/bundles/%%s', '@assets.empty_version_strategy', '@assets.context' ]
-#       arguments: [ '/', '@assets.static_version_strategy', '@assets.context' ]
+    #Replace assets packages
+    assets.packages:
+        class: Symfony\Component\Asset\Packages
+        arguments: [ '@assets.pack_package' ]
 #   #Set version strategy
 #   assets.static_version_strategy:
 #       class: Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy