Skip to content

Deprecated call to EventDispatcherInterface::dispatch() #58

@Yoluk

Description

@Yoluk

Hello,
I'm currently maintaining a Symfony 4.3 project using this bundle, and I get a lot of deprecated logs saying this :

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

After a bit of research, it appears that in the following commit, the two parameters have been switched : symfony/event-dispatcher@1a30b07

Would it be possible to update this line in the bundle, to switch the parameters ?
https://github.com/M6Web/AmqpBundle/blob/master/src/AmqpBundle/Amqp/AbstractAmqp.php#L41
I can provide a pull request, if needed.
Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions