8000 Use a better name than "class Foo" · symfony/symfony-docs@1b8d52d · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b8d52d

Browse files
BafSjaviereguiluz
authored andcommitted
Use a better name than "class Foo"
It took me a while to figure out what represent `class Foo`
1 parent d96fcfe commit 1b8d52d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/event_dispatcher.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,9 @@ is dispatched, are passed as arguments to the listener::
499499
use Symfony\Contracts\EventDispatcher\Event;
500500
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
501501

502-
class Foo
502+
class MySubscriber
503503
{
504-
public function myEventListener(Event $event, $eventName, EventDispatcherInterface $dispatcher)
504+
public function myEventListener(Event $event, string $eventName, EventDispatcherInterface $dispatcher)
505505
{
506506
// ... do something with the event name
507507
}

0 commit comments

Comments
 (0)
0