This document describes the changes needed when upgrading from one version to another.
Minimum required PHP version was raised to 7.1 and Symfony to 4.0.
Rector can help you with migration.
The interface GuzzleEventListenerInterface
was removed.
Please read the documentation in case you want to listen pre/post translation events for specific client.
If your classes are overriding some classes from bundle, then check that all methods are following arguments and return types.
before:
use EightPoints\Bundle\GuzzleBundle\EightPointsGuzzleBundlePlugin;
class Foo implements EightPointsGuzzleBundlePlugin
{
}
after:
use EightPoints\Bundle\GuzzleBundle\PluginInterface;
class Foo implements PluginInterface
{
}
before:
public function registerBundles()
{
$bundles = [
...
new EightPoints\Bundle\GuzzleBundle\GuzzleBundle(),
...
];
}
after:
public function registerBundles()
{
$bundles = [
...
new EightPoints\Bundle\GuzzleBundle\EightPointsGuzzleBundle(),
...
];
}
before:
guzzle:
clients:
api_payment:
base_url: "http://api.domain.tld"
after:
eight_points_guzzle:
clients:
api_payment:
base_url: "http://api.domain.tld"
before:
guzzle:
clients:
api_payment:
base_url: "http://api.domain.tld"
headers:
Accept: "application/json"
after:
eight_points_guzzle:
clients:
api_payment:
base_url: "http://api.domain.tld"
options:
headers:
Accept: "application/json"
before:
$this->get('guzzle.client.api_crm');
after:
$this->get('eight_points_guzzle.client.api_crm');
before:
<service id="listenerID" class="Your\ListenerClass\That\Implements\GuzzleEventListenerInterface">
<tag name="kernel.event_listener" event="guzzle_bundle.pre_transaction" method="onPreTransaction" service="servicename"/>
</service>
after:
<service id="listenerID" class="Your\ListenerClass\That\Implements\GuzzleEventListenerInterface">
<tag name="kernel.event_listener" event="eight_points_guzzle.pre_transaction" method="onPreTransaction" service="servicename"/>
</service>
before:
<argument type="service" id="guzzle.client.xyz" />
after:
<argument type="service" id="eight_points_guzzle.client.xyz" />
WSSE plugin was moved to separate repository. If you are using WSSE then follow install guide from gregurco/guzzle-bundle-wsse-plugin.