8p / EightPointsGuzzleBundle

⛽️ Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony
MIT License
440 stars 71 forks source link

Deprecation in EventDispatcher #268

Closed cigraphics closed 5 years ago

cigraphics commented 5 years ago

User Deprecated: Calling the "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" method with the event name as first argument is deprecated since Symfony 4.3, pass it second and provide the event object first instead.

The issue relies in Middleware/EventDispatchMiddleware.php

There are 3 usages of

$this->eventDispatcher->dispatch(GuzzleEvents::PRE_TRANSACTION, $preTransactionEvent); $this->eventDispatcher->dispatch(GuzzleEvents::POST_TRANSACTION, $postTransactionEvent);

Cheers

gregurco commented 5 years ago

Hello @cigraphics Thank you for reporting. This deprecation message was fixed in PR #265 . This changes will be released next days. You have two options: move to dev-master version or wait few days for new release. Also you can sudscribe for new releases by "watch" button at the top of the page.