Merge pull request #11427 from michielbdejong/patch-1

correct variable name
This commit is contained in:
Ferdinand Thiessen 2024-01-18 14:17:31 +01:00 committed by GitHub
commit 68a67ff4f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,7 +99,7 @@ You can use simple callback to react on events. They will receive the event obje
class Application extends App {
public function __construct() {
parent::__construct('myapp');
/* @var IEventDispatcher $eventDispatcher */
/* @var IEventDispatcher $dispatcher */
$dispatcher = $this->getContainer()->query(IEventDispatcher::class);
$dispatcher->addListener(AddEvent::class, function(AddEvent $event) {
// ...