]> Raphaël G. Git Repositories - packbundle/commitdiff
Remove pack prefix
authorRaphaël Gertz <git@rapsys.eu>
Mon, 30 Nov 2026 23:49:38 +0000 (00:49 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 30 Nov 2026 23:49:38 +0000 (00:49 +0100)
Fix image path

DependencyInjection/Configuration.php
Parser/TokenParser.php
config/routes/rapsyspack.yaml

index a87c11505091172be17c29149a4c90d93c38f849..1de5f87e9c2d85e4b160ed09a7c006e2b47597a6 100644 (file)
@@ -156,10 +156,9 @@ class Configuration implements ConfigurationInterface {
                                'captcha' => 'captcha',
                                'css' => 'css',
                                'facebook' => 'facebook',
-                               'img' => 'img',
+                               'img' => 'image',
                                'map' => 'map',
                                'multi' => 'multi',
-                               'pack' => 'pack',
                                'thumb' => 'thumb',
                                'js' => 'js'
                        ],
index a1fe4c5f5adcdb7d14c3d05ca321f3a896588e56..3113850f73e8ab438068ae715c24e8f17fd8bda5 100644 (file)
@@ -77,7 +77,7 @@ class TokenParser extends AbstractTokenParser {
                $this->filters = $config['filters'][$prefix];
 
                //Set output
-               $this->output = $config['public'].'/'.$config['prefixes']['pack'].'/'.$config['prefixes'][$prefix].'/*.'.$prefix;
+               $this->output = $config['public'].'/'.$config['prefixes'][$prefix].'/*.'.$prefix;
 
                //Set route
                $this->route = $config['routes'][$prefix];
index e471166da87a6de5f77f83cb9ea5c5d0e1c4d709..f72f9151c51d9d1eef30c9675b7a836718d53a92 100644 (file)
@@ -5,7 +5,7 @@ rapsyspack_captcha:
     methods: GET
 
 rapsyspack_css:
-    path: '/bundles/rapsyspack/pack/css/{file<[a-zA-Z0-9]+>}.{!_format<css>?css}'
+    path: '/bundles/rapsyspack/css/{file<[a-zA-Z0-9]+>}.{!_format<css>?css}'
     methods: GET
 
 rapsyspack_download:
@@ -19,11 +19,11 @@ rapsyspack_facebook:
     methods: GET
 
 rapsyspack_img:
-    path: '/bundles/rapsyspack/pack/img/{file<[a-zA-Z0-9]+>}.{!_format<(jpeg|png|webp)>}'
+    path: '/bundles/rapsyspack/image/{file<[a-zA-Z0-9]+>}.{!_format<(jpeg|png|webp)>}'
     methods: GET
 
 rapsyspack_js:
-    path: '/bundles/rapsyspack/pack/js/{file<[a-zA-Z0-9]+>}.{!_format<js>?js}'
+    path: '/bundles/rapsyspack/js/{file<[a-zA-Z0-9]+>}.{!_format<js>?js}'
     methods: GET
 
 rapsyspack_map: