Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 53638a6

Browse filesBrowse files
committed
Remove horizontal scrollbar
1 parent a535c9f commit 53638a6
Copy full SHA for 53638a6

File tree

Expand file treeCollapse file tree

1 file changed

+10
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-4
lines changed

‎components/event_dispatcher/introduction.rst

Copy file name to clipboardExpand all lines: components/event_dispatcher/introduction.rst
+10-4Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,11 @@ Lazy loading listeners::
509509
{
510510
private $started = false;
511511

512-
public function myLazyListener(Event $event, $eventName, EventDispatcherInterface $dispatcher)
513-
{
512+
public function myLazyListener(
513+
Event $event,
514+
$eventName,
515+
EventDispatcherInterface $dispatcher
516+
) {
514517
if (false === $this->started) {
515518
$subscriber = new StoreSubscriber();
516519
$dispatcher->addSubscriber($subscriber);
@@ -529,8 +532,11 @@ Dispatching another event from within a listener::
529532

530533
class Foo
531534
{
532-
public function myFooListener(Event $event, $eventName, EventDispatcherInterface $dispatcher)
533-
{
535+
public function myFooListener(
536+
Event $event,
537+
$eventName,
538+
EventDispatcherInterface $dispatcher
539+
) {
534540
$dispatcher->dispatch('log', $event);
535541

536542
// ... more code

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.