This repository was archived by the owner on Jan 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff 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
128128This 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
217217As such, we recommend passing either an array or an ` ArrayObject ` instance for
218218event 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
353353Set the event parameters; ` $params ` should be an array or object implementing
Original file line number Diff line number Diff 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,
115115passing the callback as the first argument:
116116
117117``` php
Original file line number Diff line number Diff 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
362362a listener determines that something is wrong, or that it can return something
363363quicker than the target.
364364
You can’t perform that action at this time.
0 commit comments