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

Commit

Permalink
Slight updates to code sample
Browse files Browse the repository at this point in the history
- Whitespace around comments
- Do not comment out either example
  • Loading branch information
weierophinney committed Dec 19, 2016
1 parent 7617f93 commit c2f5e42
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions doc/book/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,14 @@ instance must instead be injected via the constructor.) We can then execute the

```php
$example = new Example();
// prior to version 3:
// $example->getEventManager()->setSharedManager($sharedEvents);
// as of version 3:

// Prior to version 3:
$example->getEventManager()->setSharedManager($sharedEvents);

// As of version 3:
$example->setEventManager(new EventManager($sharedEvents));

// Both versions:
$example->doIt('bar', 'bat');
```

Expand Down

0 comments on commit c2f5e42

Please sign in to comment.