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

Commit 98eddfd

Browse files
committed
Merge branch 'hotfix/doc-fixes'
Close #60 Close #65
2 parents b4c6ffb + e69c480 commit 98eddfd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

doc/book/api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Triggered second
122122
### triggerEvent()
123123

124124
```php
125-
triggerEvent(EventInterfce $event) : ResponseCollection
125+
triggerEvent(EventInterface $event) : ResponseCollection
126126
```
127127

128128
This method is a sibling to `trigger()`, but unlike `trigger()`, it accepts an
@@ -216,10 +216,10 @@ $foo = $e->getParam('foo'); // How should the event know how to get this?
216216

217217
As such, we recommend passing either an array or an `ArrayObject` instance for
218218
event arguments. If you pass the latter, you get the benefit of being able to
219-
mainpulate by reference.
219+
manipulate by reference.
220220

221221
`prepareArgs()` can thus be used to return an `ArrayObject` representation of
222-
your aguments to pass to `trigger()` or `triggerUntil()`:
222+
your arguments to pass to `trigger()` or `triggerUntil()`:
223223

224224
```php
225225
$events->attach('foo', $this, $events->prepareArgs(compact('bar', 'baz')));
@@ -347,7 +347,7 @@ Sets the event target. `$target` may be a string or object.
347347
### setParams()
348348

349349
```php
350-
setParams($parms) : void
350+
setParams($params) : void
351351
```
352352

353353
Set the event parameters; `$params` should be an array or object implementing

doc/book/migration/changed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ $event->setTarget($this);
111111
$events->triggerEvent($event);
112112
```
113113

114-
If you are using a callback to shortcircuit, use one of the `*Until()` methods,
114+
If you are using a callback to short-circuit, use one of the `*Until()` methods,
115115
passing the callback as the first argument:
116116

117117
```php

doc/book/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class LogEvents implements ListenerAggregateInterface
293293
$this->listeners[] = $events->attach('doSomethingElse', [$this, 'log']);
294294
}
295295

296-
public function detach(EventCollection $events)
296+
public function detach(EventManagerInterface $events)
297297
{
298298
foreach ($this->listeners as $index => $listener) {
299299
$events->detach($listener);
@@ -358,7 +358,7 @@ execution if interesting results are obtained.
358358

359359
## Short-circuiting listener execution
360360

361-
You may want to short-ciruit execution if a particular result is obtained, or if
361+
You may want to short-circuit execution if a particular result is obtained, or if
362362
a listener determines that something is wrong, or that it can return something
363363
quicker than the target.
364364

0 commit comments

Comments
 (0)