Commit 7736a044 by Larry Ullman

Deleted second reference to event configuration

Already mentioned earlier in the text
parent 434a2269
...@@ -99,18 +99,6 @@ $foo->on(Foo::EVENT_HELLO, function ($event) { ...@@ -99,18 +99,6 @@ $foo->on(Foo::EVENT_HELLO, function ($event) {
}, $data, false); }, $data, false);
``` ```
Besides calling the `on()` method, you may also attach event handlers in [configurations](concept-configurations.md)
like the following. For more details, please refer to the [Configurations](concept-configurations.md#configuration-format)
section.
```php
[
'on hello' => function ($event) {
echo 'hello event is triggered';
}
]
```
Triggering Events <a name="triggering-events"></a> Triggering Events <a name="triggering-events"></a>
----------------- -----------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment