diff --git a/core/Application.php b/core/Application.php index 0c4670beaade4..4037ad4c41578 100644 --- a/core/Application.php +++ b/core/Application.php @@ -79,7 +79,7 @@ public function __construct() { $server = $container->getServer(); /** @var IEventDispatcher $eventDispatcher */ - $eventDispatcher = $server->query(IEventDispatcher::class); + $eventDispatcher = $server->get(IEventDispatcher::class); $notificationManager = $server->getNotificationManager(); $notificationManager->registerNotifierService(CoreNotifier::class);