|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* Nextcloud - Tasks |
|
4
|
|
|
* |
|
5
|
|
|
* @author Raimund Schlüßler |
|
6
|
|
|
* @copyright 2019 Raimund Schlüßler <[email protected]> |
|
7
|
|
|
* |
|
8
|
|
|
* This library is free software; you can redistribute it and/or |
|
9
|
|
|
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
|
10
|
|
|
* License as published by the Free Software Foundation; either |
|
11
|
|
|
* version 3 of the License, or any later version. |
|
12
|
|
|
* |
|
13
|
|
|
* This library is distributed in the hope that it will be useful, |
|
14
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16
|
|
|
* GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
|
17
|
|
|
* |
|
18
|
|
|
* You should have received a copy of the GNU Affero General Public |
|
19
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>. |
|
20
|
|
|
* |
|
21
|
|
|
*/ |
|
22
|
|
|
|
|
23
|
|
|
namespace OCA\Tasks\AppInfo; |
|
24
|
|
|
|
|
25
|
|
|
use OCA\Taks\Dashboard\TasksWidget; |
|
26
|
|
|
use OCP\AppFramework\App; |
|
27
|
|
|
use OCP\AppFramework\Bootstrap\IBootContext; |
|
28
|
|
|
use OCP\AppFramework\Bootstrap\IBootstrap; |
|
29
|
|
|
use OCP\AppFramework\Bootstrap\IRegistrationContext; |
|
30
|
|
|
|
|
31
|
|
|
class Application extends App implements IBootstrap { |
|
32
|
|
|
|
|
33
|
|
|
/** @var string */ |
|
34
|
|
|
public const APP_ID = 'tasks'; |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* @param array $params |
|
38
|
|
|
*/ |
|
39
|
|
|
public function __construct(array $params=[]) { |
|
40
|
|
|
parent::__construct(self::APP_ID, $params); |
|
41
|
|
|
} |
|
42
|
|
|
|
|
43
|
|
|
public function register(IRegistrationContext $context): void { |
|
44
|
|
|
$context->registerDashboardWidget(TasksWidget::class); |
|
45
|
|
|
} |
|
46
|
|
|
|
|
47
|
|
|
public function boot(IBootContext $context): void { |
|
48
|
|
|
} |
|
49
|
|
|
|
|
50
|
|
|
} |
|
51
|
|
|
|