Skip to content

use backwardsCompatibleDispatch to support both old and new versions of the Symfony EventDispatcher#3

Open
kuraobi wants to merge 1 commit intothruway:masterfrom
kuraobi:symfony5
Open

use backwardsCompatibleDispatch to support both old and new versions of the Symfony EventDispatcher#3
kuraobi wants to merge 1 commit intothruway:masterfrom
kuraobi:symfony5

Conversation

@kuraobi
Copy link

@kuraobi kuraobi commented Nov 30, 2019

Blocked by voryx/Thruway#331

This uses the new backwardsCompatibleDispatch method added to https://github.com/voryx/Thruway to allow for consistent calls to the event dispatcher across all supported Symfony versions.
Users can still call dispatch if they want, but the parameters order will depend on their version of Symfony, i.e. using eventName first will only work for Symfony < 5.0 and using eventName last will only work for Symfony >= 4.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant