|
@@ -119,7 +119,7 @@ discard block |
|
|
block discarded – undo |
|
119
|
119
|
|
|
120
|
120
|
public function register(IRegistrationContext $context): void { |
|
121
|
121
|
$context->registerServiceAlias('CardDAVSyncService', SyncService::class); |
|
122
|
|
- $context->registerService(AppCalendarPlugin::class, function (ContainerInterface $c) { |
|
|
122
|
+ $context->registerService(AppCalendarPlugin::class, function(ContainerInterface $c) { |
|
123
|
123
|
return new AppCalendarPlugin( |
|
124
|
124
|
$c->get(ICalendarManager::class), |
|
125
|
125
|
$c->get(LoggerInterface::class) |
|
@@ -244,7 +244,7 @@ discard block |
|
|
block discarded – undo |
|
244
|
244
|
} |
|
245
|
245
|
|
|
246
|
246
|
public function registerContactsManager(IContactsManager $cm, ContainerInterface $container): void { |
|
247
|
|
- $cm->register(function () use ($container, $cm): void { |
|
|
247
|
+ $cm->register(function() use ($container, $cm): void { |
|
248
|
248
|
$user = Server::get(IUserSession::class)->getUser(); |
|
249
|
249
|
if (!is_null($user)) { |
|
250
|
250
|
$this->setupContactsProvider($cm, $container, $user->getUID()); |
|
@@ -270,7 +270,7 @@ discard block |
|
|
block discarded – undo |
|
270
|
270
|
|
|
271
|
271
|
public function registerCalendarManager(ICalendarManager $calendarManager, |
|
272
|
272
|
ContainerInterface $container): void { |
|
273
|
|
- $calendarManager->register(function () use ($container, $calendarManager): void { |
|
|
273
|
+ $calendarManager->register(function() use ($container, $calendarManager): void { |
|
274
|
274
|
$user = Server::get(IUserSession::class)->getUser(); |
|
275
|
275
|
if ($user !== null) { |
|
276
|
276
|
$this->setupCalendarProvider($calendarManager, $container, $user->getUID()); |