2020-01-23 03:05:45 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-27 11:39:07 -04:00
|
|
|
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2020-01-23 03:05:45 -05:00
|
|
|
*/
|
|
|
|
|
namespace OCA\ContactsInteraction\AppInfo;
|
|
|
|
|
|
|
|
|
|
use OCA\ContactsInteraction\Listeners\ContactInteractionListener;
|
|
|
|
|
use OCP\AppFramework\App;
|
2020-07-08 06:23:59 -04:00
|
|
|
use OCP\AppFramework\Bootstrap\IBootContext;
|
|
|
|
|
use OCP\AppFramework\Bootstrap\IBootstrap;
|
|
|
|
|
use OCP\AppFramework\Bootstrap\IRegistrationContext;
|
2020-01-23 03:05:45 -05:00
|
|
|
use OCP\Contacts\Events\ContactInteractedWithEvent;
|
|
|
|
|
|
2020-07-08 06:23:59 -04:00
|
|
|
class Application extends App implements IBootstrap {
|
2020-01-23 03:05:45 -05:00
|
|
|
public const APP_ID = 'contactsinteraction';
|
|
|
|
|
|
|
|
|
|
public function __construct() {
|
|
|
|
|
parent::__construct(self::APP_ID);
|
2020-07-08 06:23:59 -04:00
|
|
|
}
|
2020-01-23 03:05:45 -05:00
|
|
|
|
2020-07-08 06:23:59 -04:00
|
|
|
public function register(IRegistrationContext $context): void {
|
|
|
|
|
$context->registerEventListener(ContactInteractedWithEvent::class, ContactInteractionListener::class);
|
2020-01-23 03:05:45 -05:00
|
|
|
}
|
|
|
|
|
|
2020-07-08 06:23:59 -04:00
|
|
|
public function boot(IBootContext $context): void {
|
2020-01-23 03:05:45 -05:00
|
|
|
}
|
|
|
|
|
}
|