We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7c032e commit 83a76f4Copy full SHA for 83a76f4
README.md
@@ -149,9 +149,9 @@ class ExampleListener implements IEventListener {
149
}
150
151
public function hello($controller, $name) {
152
- $controller->set([
153
- "hello.message" => "Why hello $name! How you doin'? :)"
154
- ]);
+ $controller->set([
+ "hello.message" => "Why hello $name! How you doin'? :)"
+ ]);
155
156
157
```
@@ -165,7 +165,8 @@ use Planck\Core\Event\Event;
165
166
public function hello($name) {
167
echo "Hello, $name";
168
- Event::emit('app.welcomed');
+ // emit an event and pass the current object plus some more stuff. you can pass anything you want here
169
+ Event::emit('app.welcomed', [$this, $moreData]);
170
171
172
// more goodness
0 commit comments