Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 69f0b30

Browse files
committed
Merge pull request #33 from akrabat/doc-quickstart-shared-em
[docs] Fix order of params in quick start
2 parents 7a73f7c + 97dba8a commit 69f0b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/book/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ $sharedEvents->attach('Foo', 'bar', function ($e) use ($log) {
142142

143143
// Later, instantiate Foo:
144144
$foo = new Foo();
145-
$foo->setEventManager(new EventManager([], $sharedEvents));
145+
$foo->setEventManager(new EventManager($sharedEvents, []));
146146

147147
// And we can still trigger the above event:
148148
$foo->bar('baz', 'bat');

0 commit comments

Comments
 (0)