mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com> Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OCA\ContactsInteraction\AppInfo;
|
|
|
|
use OCA\ContactsInteraction\Listeners\ContactInteractionListener;
|
|
use OCA\ContactsInteraction\Listeners\UserDeletedListener;
|
|
use OCP\AppFramework\App;
|
|
use OCP\AppFramework\Bootstrap\IBootContext;
|
|
use OCP\AppFramework\Bootstrap\IBootstrap;
|
|
use OCP\AppFramework\Bootstrap\IRegistrationContext;
|
|
use OCP\Contacts\Events\ContactInteractedWithEvent;
|
|
use OCP\User\Events\UserDeletedEvent;
|
|
|
|
class Application extends App implements IBootstrap {
|
|
public const APP_ID = 'contactsinteraction';
|
|
|
|
public function __construct() {
|
|
parent::__construct(self::APP_ID);
|
|
}
|
|
|
|
public function register(IRegistrationContext $context): void {
|
|
$context->registerEventListener(ContactInteractedWithEvent::class, ContactInteractionListener::class);
|
|
$context->registerEventListener(UserDeletedEvent::class, UserDeletedListener::class);
|
|
}
|
|
|
|
public function boot(IBootContext $context): void {
|
|
}
|
|
}
|