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

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) {
// ...