Skip to content

Commit a1158a6

Browse files
committed
Replace app.php
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent b600c9a commit a1158a6

File tree

2 files changed

+46
-22
lines changed

2 files changed

+46
-22
lines changed

tests/Integration/app/appinfo/app.php

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
/**
5+
* @author Joas Schilling <coding@schilljs.com>
6+
*
7+
* @copyright Copyright (c) 2021 Joas Schilling <coding@schilljs.com>
8+
*
9+
* @license AGPL-3.0
10+
*
11+
* This code is free software: you can redistribute it and/or modify
12+
* it under the terms of the GNU Affero General Public License, version 3,
13+
* as published by the Free Software Foundation.
14+
*
15+
* This program is distributed in the hope that it will be useful,
16+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+
* GNU Affero General Public License for more details.
19+
*
20+
* You should have received a copy of the GNU Affero General Public License, version 3,
21+
* along with this program. If not, see <http://www.gnu.org/licenses/>
22+
*
23+
*/
24+
25+
namespace OCA\NotificationsIntegrationTesting\AppInfo;
26+
27+
use OCA\NotificationsIntegrationTesting\Notifier;
28+
use OCP\AppFramework\App;
29+
use OCP\AppFramework\Bootstrap\IBootContext;
30+
use OCP\AppFramework\Bootstrap\IBootstrap;
31+
use OCP\AppFramework\Bootstrap\IRegistrationContext;
32+
33+
class Application extends App implements IBootstrap {
34+
public const APP_ID = 'notificationsintegrationtesting';
35+
36+
public function __construct() {
37+
parent::__construct(self::APP_ID);
38+
}
39+
40+
public function register(IRegistrationContext $context): void {
41+
$context->registerNotifierService(Notifier::class);
42+
}
43+
44+
public function boot(IBootContext $context): void {
45+
}
46+
}

0 commit comments

Comments
 (0)