Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DX: handle deprecations of symfony/event-dispatcher:4.3 #4426

Merged
merged 1 commit into from
May 31, 2019

Conversation

keradus
Copy link
Member

@keradus keradus commented May 31, 2019

No description provided.

@@ -105,6 +105,15 @@ private function dispatchEvent($name, Event $event)
return;
}

$this->eventDispatcher->dispatch($name, $event);
// BC compatibility < Sf 4.3
if (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we have the condition like this one?

Copy link
Member Author

@keradus keradus May 31, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really, you can have PsrEventDispatcherInterface installed anyway while having Sf component v3

you want to check instance you are using, not aside library that may or may not be installed

Copy link
Member Author

@keradus keradus May 31, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, you may have sf component v4.3 with deprecation warning and not have psr/event-dispatcher installed

@keradus keradus merged commit c569c7b into PHP-CS-Fixer:2.12 May 31, 2019
keradus added a commit that referenced this pull request May 31, 2019
…keradus)

This PR was squashed before being merged into the 2.12 branch (closes #4426).

Discussion
----------

DX: handle deprecations of symfony/event-dispatcher:4.3

Commits
-------

c569c7b DX: handle deprecations of symfony/event-dispatcher:4.3
@keradus keradus deleted the 2.12_bc branch May 31, 2019 21:16
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.

2 participants