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
122
122
### triggerEvent()
123
123
124
124
``` php
125
- triggerEvent(EventInterfce $event) : ResponseCollection
125
+ triggerEvent(EventInterface $event) : ResponseCollection
126
126
```
127
127
128
128
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?
216
216
217
217
As such, we recommend passing either an array or an ` ArrayObject ` instance for
218
218
event arguments. If you pass the latter, you get the benefit of being able to
219
- mainpulate by reference.
219
+ manipulate by reference.
220
220
221
221
` 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() ` :
223
223
224
224
``` php
225
225
$events->attach('foo', $this, $events->prepareArgs(compact('bar', 'baz')));
@@ -347,7 +347,7 @@ Sets the event target. `$target` may be a string or object.
347
347
### setParams()
348
348
349
349
``` php
350
- setParams($parms ) : void
350
+ setParams($params ) : void
351
351
```
352
352
353
353
Set 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);
111
111
$events->triggerEvent($event);
112
112
```
113
113
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,
115
115
passing the callback as the first argument:
116
116
117
117
``` php
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ class LogEvents implements ListenerAggregateInterface
293
293
$this->listeners[] = $events->attach('doSomethingElse', [$this, 'log']);
294
294
}
295
295
296
- public function detach(EventCollection $events)
296
+ public function detach(EventManagerInterface $events)
297
297
{
298
298
foreach ($this->listeners as $index => $listener) {
299
299
$events->detach($listener);
@@ -358,7 +358,7 @@ execution if interesting results are obtained.
358
358
359
359
## Short-circuiting listener execution
360
360
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
362
362
a listener determines that something is wrong, or that it can return something
363
363
quicker than the target.
364
364
You can’t perform that action at this time.
0 commit comments