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

Commit c2f5e42

Browse files
committed
Slight updates to code sample
- Whitespace around comments - Do not comment out either example
1 parent 7617f93 commit c2f5e42

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

doc/book/tutorial.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,14 @@ instance must instead be injected via the constructor.) We can then execute the
171171

172172
```php
173173
$example = new Example();
174-
// prior to version 3:
175-
// $example->getEventManager()->setSharedManager($sharedEvents);
176-
// as of version 3:
174+
175+
// Prior to version 3:
176+
$example->getEventManager()->setSharedManager($sharedEvents);
177+
178+
// As of version 3:
177179
$example->setEventManager(new EventManager($sharedEvents));
180+
181+
// Both versions:
178182
$example->doIt('bar', 'bat');
179183
```
180184

0 commit comments

Comments
 (0)