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.
2 parents 702c3b1 + 2523313 commit daa1b78Copy full SHA for daa1b78
1 file changed
lib/AppInfo/Application.php
@@ -155,16 +155,14 @@ public function boot(IBootContext $context): void {
155
*/
156
private function registerActivityConsumer(): void {
157
$c = $this->getContainer();
158
- $server = $c->getServer();
159
160
- $server->get(IManager::class)->registerConsumer(function () use ($c) {
+ $c->get(IManager::class)->registerConsumer(function () use ($c) {
161
return $c->get(Consumer::class);
162
});
163
}
164
165
public function registerNotifier(): void {
166
- $server = $this->getContainer()->getServer();
167
- $server->get(INotificationManager::class)->registerNotifierService(NotificationGenerator::class);
+ $this->getContainer()->get(INotificationManager::class)->registerNotifierService(NotificationGenerator::class);
168
169
170
/**
0 commit comments