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

Commit d3ff705

Browse files
committed
Update the code example
1 parent 2c6119e commit d3ff705

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/LazyListenerAggregate.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
* Usage is:
2222
*
2323
* <code>
24-
* $events->attachAggregate(new LazyListenerAggregate(
24+
* $aggregate = new LazyListenerAggregate(
2525
* $lazyEventListenersOrDefinitions,
2626
* $container
27-
* ));
27+
* );
28+
* $aggregate->attach($events);
2829
* </code>
2930
*/
3031
class LazyListenerAggregate implements ListenerAggregateInterface

0 commit comments

Comments
 (0)