- Upgrade from 1.0 to 1.1
- Upgrade from 1.1 to 1.2
- Upgrade from 1.2 to 1.3
- Upgrade from 1.x to 2.0
ClientFactoryis removed.- Event subscribers have been replaced by middleware.
- Support for
guzzlehttp/guzzle-servicesandguzzlehttp/guzzle-commandhas been dropped. - The bundle now needs at least version
6.0ofguzzlehttp/guzzle. - Client and cache configuration have been simplified.
- PHP version requirement has been bumped to at least
5.5.0.
ClientFactorywas deprecated in favor of directly tagging Guzzle clients, and will be removed in 2.0.
Before:
<service
id="acme.client"
class="%acme.client.class%"
factory-service="csa_guzzle.client_factory"
factory-method="create">
<!-- An array of configuration values -->
</service>After:
<service id="acme.client" class="%acme.client.class%">
<tag name="csa_guzzle.client" />
</service>- None yet.
-
If you use the
Csa\Bundle\GuzzleBundle\Factory\Client, the class was removed as it is no longer needed.You should now use the base
GuzzleHttp\Clientclass, or your own class, extending Guzzle's class. -
If you registered event subscribers using the compiler pass, you now need to give it an alias.
Before:
<container>
<services>
<service id="acme_demo.subscriber.custom" class="Acme\DemoBundle\Guzzle\Subscriber\CustomSubscriber">
<tag name="csa_guzzle.subscriber" />
</service>
</services>
</container>After:
<container>
<services>
<service id="acme_demo.subscriber.custom" class="Acme\DemoBundle\Guzzle\Subscriber\CustomSubscriber">
<tag name="csa_guzzle.subscriber" alias="acme_custom" />
</service>
</services>
</container>