From abfd349fb62ea8378094115f750ef7bc69e681d7 Mon Sep 17 00:00:00 2001 From: Vlad Gregurco Date: Tue, 5 Jun 2018 12:12:29 +0300 Subject: [PATCH 1/3] Fix rendering of templates in v6 and SF >= 3.2 --- Resources/config/services.xml | 2 +- Resources/views/debug.html.twig | 6 +++--- composer.json | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Resources/config/services.xml b/Resources/config/services.xml index a0c2bd8..af43bce 100644 --- a/Resources/config/services.xml +++ b/Resources/config/services.xml @@ -28,7 +28,7 @@ - + diff --git a/Resources/views/debug.html.twig b/Resources/views/debug.html.twig index 6654fc6..9c9d6b6 100644 --- a/Resources/views/debug.html.twig +++ b/Resources/views/debug.html.twig @@ -1,4 +1,4 @@ -{% extends "WebProfilerBundle:Profiler:layout.html.twig" %} +{% extends "@WebProfiler/Profiler/layout.html.twig" %} {% block toolbar %} @@ -44,7 +44,7 @@ {% endset %} - {% include "WebProfilerBundle:Profiler:toolbar_item.html.twig" with { "link": profiler_url, status: status_color } %} + {% include "@WebProfiler/Profiler/toolbar_item.html.twig" with { "link": profiler_url, status: status_color } %} {% endif %} {% endblock %} @@ -75,5 +75,5 @@

Logs

- {% include 'GuzzleBundle::profiler.html.twig' with { 'collector': collector } %} + {% include '@Guzzle/profiler.html.twig' with { 'collector': collector } %} {% endblock %} diff --git a/composer.json b/composer.json index 9505f65..d099c9e 100644 --- a/composer.json +++ b/composer.json @@ -29,10 +29,10 @@ "php": ">=5.6", "guzzlehttp/guzzle": "~6.0", "eightpoints/guzzle-wsse-middleware": "~4.0", - "symfony/dependency-injection": "~2.3|~3.0", - "symfony/expression-language": "~2.3|~3.0", - "symfony/event-dispatcher": "~2.3|~3.0", - "symfony/http-kernel": "~2.3|~3.0", + "symfony/dependency-injection": "~3.2", + "symfony/expression-language": "~3.2", + "symfony/event-dispatcher": "~3.2", + "symfony/http-kernel": "~3.2", "psr/log": "~1.0" }, "require-dev": { From 6e1bdc5d5bf899801744cce9b4f6ddd68a9bb529 Mon Sep 17 00:00:00 2001 From: Vlad Gregurco Date: Wed, 6 Jun 2018 11:11:23 +0300 Subject: [PATCH 2/3] Fix travis for v6 --- .travis.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4983d7b..ca7542b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,11 +7,9 @@ php: - nightly env: - - SYMFONY_VERSION=2.7.* - - SYMFONY_VERSION=2.8.* - - SYMFONY_VERSION=3.0.* - - SYMFONY_VERSION=3.1.* - - SYMFONY_VERSION=dev-master + - SYMFONY_VERSION=3.2.* + - SYMFONY_VERSION=3.3.* + - SYMFONY_VERSION=3.4.* before_script: - composer self-update @@ -28,15 +26,12 @@ matrix: - env: SYMFONY_VERSION=dev-master - php: nightly include: - - env: SYMFONY_VERSION=2.7.* + - env: SYMFONY_VERSION=3.2.* php: hhvm dist: trusty - - env: SYMFONY_VERSION=2.8.* + - env: SYMFONY_VERSION=3.3.* php: hhvm dist: trusty - - env: SYMFONY_VERSION=3.0.* - php: hhvm - dist: trusty - - env: SYMFONY_VERSION=3.1.* + - env: SYMFONY_VERSION=3.4.* php: hhvm dist: trusty From 3d1d3e044a54f718d4a5790c308dbd2709da0b52 Mon Sep 17 00:00:00 2001 From: Vlad Gregurco Date: Wed, 6 Jun 2018 12:04:58 +0300 Subject: [PATCH 3/3] Readme fix --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index f4edd33..26df7e4 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,20 @@ GuzzleBundle follows semantic versioning. Read more on [semver.org][2]. ---- +## :exclamation: Important :exclamation: + +Use v7 of Guzzle Bundle! Just critical issues are fixed in v6. + +Compatibility table: + +| PHP | Symfony | Guzzle Bundle | +|----------|------------|---------------| +| 5.x, 7.x | ~ | v7 | +| 5.x | 3.2 - 3.4 | v6.2.1 | +| 5.x | 2.8 - 3.2 | v6.2.0 | + +---- + ## Requirements - PHP 5.6 or above - Symfony 2.7 or above