Skip to content

[EventDispatcher] Document dispatch() with one argument as a FQCN #17035

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

Closed
wants to merge 2 commits into from

Conversation

94noni
Copy link
Contributor

@94noni 94noni commented Jul 22, 2022

This PR revisit this one
I reminded it due to working on this one


Original PR desc

Related to https://symfony.com/blog/new-in-symfony-4-3-simpler-event-dispatching
Feature introduced in symfony/symfony#28920

Maybe it is useful/helpful to document this here as well as the blog post

@carsonbot carsonbot added this to the 5.4 milestone Jul 22, 2022
@94noni 94noni changed the title Update event_dispatcher.rst [EventDispatcher] Document dispatch() with one argument as a FQCN Aug 2, 2022
javiereguiluz added a commit to symfony/demo that referenced this pull request Nov 2, 2023
This PR was merged into the main branch.

Discussion
----------

Add notice to messenger for async code

While reading this, I found that pointing messenger here can be valuable (logic of decoupling)
Also, reading the code itself of the dispatch, I remind my old PR symfony/symfony-docs#17035
there is no doc referencing the new `->dispatch(new ClassName())` as far as I see in https://symfony.com/doc/current/components/event_dispatcher.html#dispatch-the-event

Commits
-------

3b7a46d Add notice to messenger for async code
@94noni 94noni closed this Jan 3, 2024
@94noni 94noni deleted the patch-15 branch January 3, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants