From 5a22924ae3c530d619026352cb06ac568431ba00 Mon Sep 17 00:00:00 2001 From: Florent DESPIERRES Date: Sun, 11 Jun 2017 12:09:39 +0200 Subject: [PATCH 1/4] Add MobileDetectorBundle recipe --- .../1.0.5/etc/packages/mobile_detect.yaml | 31 +++++++++++++++++++ .../mobile-detect-bundle/1.0.5/manifest.json | 8 +++++ 2 files changed, 39 insertions(+) create mode 100644 suncat/mobile-detect-bundle/1.0.5/etc/packages/mobile_detect.yaml create mode 100644 suncat/mobile-detect-bundle/1.0.5/manifest.json diff --git a/suncat/mobile-detect-bundle/1.0.5/etc/packages/mobile_detect.yaml b/suncat/mobile-detect-bundle/1.0.5/etc/packages/mobile_detect.yaml new file mode 100644 index 00000000..6a54a15d --- /dev/null +++ b/suncat/mobile-detect-bundle/1.0.5/etc/packages/mobile_detect.yaml @@ -0,0 +1,31 @@ +# Read the documentation: https://github.com/suncat2000/MobileDetectBundle/blob/v1.0.5/Resources/doc/index.md +mobile_detect: ~ +# redirect: +# full: +# is_enabled: true # default false +# host: http://site.com # with scheme (http|https), default null, url validate +# status_code: 301 # default 302 +# action: redirect # redirect, no_redirect, redirect_without_path +# mobile: +# is_enabled: true # default false +# host: http://m.site.com # with scheme (http|https), default null, url validate +# status_code: 301 # default 302 +# action: redirect # redirect, no_redirect, redirect_without_path +# tablet: +# is_enabled: true # default false +# host: http://t.site.com # with scheme (http|https), default null, url validate +# status_code: 301 # default 302 +# action: redirect # redirect, no_redirect, redirect_without_path +# detect_tablet_as_mobile: true # default false +# switch_device_view: +# save_referer_path: false # default true + # true redirectUrl = http://site.com/current/path?currentQuery=string + # false redirectUrl = http://site.com +# service: +# mobile_detector: mobile_detect.mobile_detector.default +# cookie_key: "device_view" # default +# cookie_expire_datetime_modifier: "+1 month" # default +# switch_param: "device_view" # default +# device_view_class: "SunCat\MobileDetectBundle\Helper\DeviceView" +# request_response_listener_class: "SunCat\MobileDetectBundle\EventListener\RequestResponseListener" +# twig_extension_class: "SunCat\MobileDetectBundle\Twig\Extension\MobileDetectExtension" \ No newline at end of file diff --git a/suncat/mobile-detect-bundle/1.0.5/manifest.json b/suncat/mobile-detect-bundle/1.0.5/manifest.json new file mode 100644 index 00000000..49baf815 --- /dev/null +++ b/suncat/mobile-detect-bundle/1.0.5/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "SunCat\\MobileDetectBundle\\MobileDetectBundle": ["all"] + }, + "copy-from-recipe": { + "etc/": "%ETC_DIR%/" + } +} \ No newline at end of file From 5dac51170441c2c5b7d4a6a936ff9a7981ba0893 Mon Sep 17 00:00:00 2001 From: Florent DESPIERRES Date: Sun, 11 Jun 2017 12:25:28 +0200 Subject: [PATCH 2/4] Fix symfony-bot warnings --- .../mobile-detect-bundle/1.0.5/etc/packages/mobile_detect.yaml | 3 ++- suncat/mobile-detect-bundle/1.0.5/manifest.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/suncat/mobile-detect-bundle/1.0.5/etc/packages/mobile_detect.yaml b/suncat/mobile-detect-bundle/1.0.5/etc/packages/mobile_detect.yaml index 6a54a15d..b3e1ec04 100644 --- a/suncat/mobile-detect-bundle/1.0.5/etc/packages/mobile_detect.yaml +++ b/suncat/mobile-detect-bundle/1.0.5/etc/packages/mobile_detect.yaml @@ -28,4 +28,5 @@ mobile_detect: ~ # switch_param: "device_view" # default # device_view_class: "SunCat\MobileDetectBundle\Helper\DeviceView" # request_response_listener_class: "SunCat\MobileDetectBundle\EventListener\RequestResponseListener" -# twig_extension_class: "SunCat\MobileDetectBundle\Twig\Extension\MobileDetectExtension" \ No newline at end of file +# twig_extension_class: "SunCat\MobileDetectBundle\Twig\Extension\MobileDetectExtension" + diff --git a/suncat/mobile-detect-bundle/1.0.5/manifest.json b/suncat/mobile-detect-bundle/1.0.5/manifest.json index 49baf815..d8f46662 100644 --- a/suncat/mobile-detect-bundle/1.0.5/manifest.json +++ b/suncat/mobile-detect-bundle/1.0.5/manifest.json @@ -5,4 +5,5 @@ "copy-from-recipe": { "etc/": "%ETC_DIR%/" } -} \ No newline at end of file +} + From c35d9738c552bfb166f2c55dd158aa32271b093b Mon Sep 17 00:00:00 2001 From: Florent DESPIERRES Date: Sun, 11 Jun 2017 13:24:57 +0200 Subject: [PATCH 3/4] Fix version --- .../{1.0.5 => 1.0}/etc/packages/mobile_detect.yaml | 0 suncat/mobile-detect-bundle/{1.0.5 => 1.0}/manifest.json | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename suncat/mobile-detect-bundle/{1.0.5 => 1.0}/etc/packages/mobile_detect.yaml (100%) rename suncat/mobile-detect-bundle/{1.0.5 => 1.0}/manifest.json (100%) diff --git a/suncat/mobile-detect-bundle/1.0.5/etc/packages/mobile_detect.yaml b/suncat/mobile-detect-bundle/1.0/etc/packages/mobile_detect.yaml similarity index 100% rename from suncat/mobile-detect-bundle/1.0.5/etc/packages/mobile_detect.yaml rename to suncat/mobile-detect-bundle/1.0/etc/packages/mobile_detect.yaml diff --git a/suncat/mobile-detect-bundle/1.0.5/manifest.json b/suncat/mobile-detect-bundle/1.0/manifest.json similarity index 100% rename from suncat/mobile-detect-bundle/1.0.5/manifest.json rename to suncat/mobile-detect-bundle/1.0/manifest.json From b9ca3bedf7fa0cac145e64171bcb31d305657c6c Mon Sep 17 00:00:00 2001 From: Florent DESPIERRES Date: Tue, 13 Jun 2017 10:04:25 +0200 Subject: [PATCH 4/4] Remove unneeded configuration items --- .../1.0/etc/packages/mobile_detect.yaml | 33 ++++--------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/suncat/mobile-detect-bundle/1.0/etc/packages/mobile_detect.yaml b/suncat/mobile-detect-bundle/1.0/etc/packages/mobile_detect.yaml index b3e1ec04..28fbd395 100644 --- a/suncat/mobile-detect-bundle/1.0/etc/packages/mobile_detect.yaml +++ b/suncat/mobile-detect-bundle/1.0/etc/packages/mobile_detect.yaml @@ -2,31 +2,12 @@ mobile_detect: ~ # redirect: # full: -# is_enabled: true # default false -# host: http://site.com # with scheme (http|https), default null, url validate -# status_code: 301 # default 302 -# action: redirect # redirect, no_redirect, redirect_without_path +# is_enabled: true +# host: http://site.com +# action: redirect # mobile: -# is_enabled: true # default false -# host: http://m.site.com # with scheme (http|https), default null, url validate -# status_code: 301 # default 302 -# action: redirect # redirect, no_redirect, redirect_without_path -# tablet: -# is_enabled: true # default false -# host: http://t.site.com # with scheme (http|https), default null, url validate -# status_code: 301 # default 302 -# action: redirect # redirect, no_redirect, redirect_without_path -# detect_tablet_as_mobile: true # default false -# switch_device_view: -# save_referer_path: false # default true - # true redirectUrl = http://site.com/current/path?currentQuery=string - # false redirectUrl = http://site.com -# service: -# mobile_detector: mobile_detect.mobile_detector.default -# cookie_key: "device_view" # default -# cookie_expire_datetime_modifier: "+1 month" # default -# switch_param: "device_view" # default -# device_view_class: "SunCat\MobileDetectBundle\Helper\DeviceView" -# request_response_listener_class: "SunCat\MobileDetectBundle\EventListener\RequestResponseListener" -# twig_extension_class: "SunCat\MobileDetectBundle\Twig\Extension\MobileDetectExtension" +# is_enabled: true +# host: http://m.site.com +# action: redirect +# detect_tablet_as_mobile: true