8000 Use a better name than "class Foo" by BafS · Pull Request #16634 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Use a better name than "class Foo" #16634

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

Merged
merged 1 commit into from
Mar 24, 2022
Merged

Use a better name than "class Foo" #16634

merged 1 commit into from
Mar 24, 2022

Conversation

BafS
Copy link
Contributor
@BafS BafS commented Mar 22, 2022

It took me a while to figure out what represent class Foo

@carsonbot carsonbot added this to the 5.4 milestone Mar 22, 2022
@@ -491,9 +491,9 @@ is dispatched, are passed as arguments to the listener::
use Symfony\Contracts\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;

class Foo
class MySubscriber
Copy link
Contributor

Choose a reason for hiding this comment

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

why not MyListener ? in ref to the above are passed as arguments to the listener

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both work for me but maybe we should update this sentence too: are passed as arguments to the listener/subscriber

Copy link
Member

Choose a reason for hiding this comment

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

At the end I changed this for MyListener and didn't add "subscriber" to the text description because this section only mentions listeners (there are other sections in this article that talk about subscribers). Cheers!

It took me a while to figure out what represent `class Foo`
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.

5 participants
0