From: Raphaƫl Gertz Date: Mon, 30 Nov 2026 23:49:38 +0000 (+0100) Subject: Remove pack prefix X-Git-Tag: 0.6.2~1 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/packbundle/commitdiff_plain/3774cd5e71095892d4ce173bee4f93b2afb9c37b?ds=sidebyside Remove pack prefix Fix image path --- diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index a87c115..1de5f87 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -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' ], diff --git a/Parser/TokenParser.php b/Parser/TokenParser.php index a1fe4c5..3113850 100644 --- a/Parser/TokenParser.php +++ b/Parser/TokenParser.php @@ -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]; diff --git a/config/routes/rapsyspack.yaml b/config/routes/rapsyspack.yaml index e471166..f72f915 100644 --- a/config/routes/rapsyspack.yaml +++ b/config/routes/rapsyspack.yaml @@ -5,7 +5,7 @@ rapsyspack_captcha: methods: GET rapsyspack_css: - path: '/bundles/rapsyspack/pack/css/{file<[a-zA-Z0-9]+>}.{!_format?css}' + path: '/bundles/rapsyspack/css/{file<[a-zA-Z0-9]+>}.{!_format?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}' + path: '/bundles/rapsyspack/js/{file<[a-zA-Z0-9]+>}.{!_format?js}' methods: GET rapsyspack_map: