Showing with 7 additions and 7 deletions.
  1. +4 −4 doc/book/api.md
  2. +1 −1 doc/book/migration/changed.md
  3. +2 −2 doc/book/tutorial.md
@@ -122,7 +122,7 @@ Triggered second
### triggerEvent()

```php
triggerEvent(EventInterfce $event) : ResponseCollection
triggerEvent(EventInterface $event) : ResponseCollection
```

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?

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

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

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

```php
setParams($parms) : void
setParams($params) : void
```

Set the event parameters; `$params` should be an array or object implementing
@@ -111,7 +111,7 @@ $event->setTarget($this);
$events->triggerEvent($event);
```

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

```php
@@ -293,7 +293,7 @@ class LogEvents implements ListenerAggregateInterface
$this->listeners[] = $events->attach('doSomethingElse', [$this, 'log']);
}
public function detach(EventCollection $events)
public function detach(EventManagerInterface $events)
{
foreach ($this->listeners as $index => $listener) {
$events->detach($listener);
@@ -358,7 +358,7 @@ execution if interesting results are obtained.

## Short-circuiting listener execution

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