Skip to content

Commit daa1b78

Browse files
authored
Merge pull request #2804 from nextcloud/fix/drop-deprecated-getserver
fix: stop using deprecated IAppContainer::getServer()
2 parents 702c3b1 + 2523313 commit daa1b78

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/AppInfo/Application.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,14 @@ public function boot(IBootContext $context): void {
155155
*/
156156
private function registerActivityConsumer(): void {
157157
$c = $this->getContainer();
158-
$server = $c->getServer();
159158

160-
$server->get(IManager::class)->registerConsumer(function () use ($c) {
159+
$c->get(IManager::class)->registerConsumer(function () use ($c) {
161160
return $c->get(Consumer::class);
162161
});
163162
}
164163

165164
public function registerNotifier(): void {
166-
$server = $this->getContainer()->getServer();
167-
$server->get(INotificationManager::class)->registerNotifierService(NotificationGenerator::class);
165+
$this->getContainer()->get(INotificationManager::class)->registerNotifierService(NotificationGenerator::class);
168166
}
169167

170168
/**

0 commit comments

Comments
 (0)