Passed
Push — master ( 6ef029...631872 )
by Morris
11:55 queued 19s
created

Application::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * @copyright Copyright (c) 2019 Robin Appelman <[email protected]>
4
 *
5
 * @author Morris Jobke <[email protected]>
6
 * @author Robin Appelman <[email protected]>
7
 * @author Roeland Jago Douma <[email protected]>
8
 *
9
 * @license GNU AGPL version 3 or any later version
10
 *
11
 * This program is free software: you can redistribute it and/or modify
12
 * it under the terms of the GNU Affero General Public License as
13
 * published by the Free Software Foundation, either version 3 of the
14
 * License, or (at your option) any later version.
15
 *
16
 * This program is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 * GNU Affero General Public License for more details.
20
 *
21
 * You should have received a copy of the GNU Affero General Public License
22
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
 *
24
 */
25
26
namespace OCA\Theming\AppInfo;
27
28
use OCA\Theming\Capabilities;
29
use OCA\Theming\Listener\BeforeTemplateRenderedListener;
30
use OCP\AppFramework\App;
31
use OCP\AppFramework\Bootstrap\IBootContext;
32
use OCP\AppFramework\Bootstrap\IBootstrap;
33
use OCP\AppFramework\Bootstrap\IRegistrationContext;
34
use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent;
35
36
class Application extends App implements IBootstrap {
37
	public const APP_ID = 'theming';
38
39
	public function __construct() {
40
		parent::__construct(self::APP_ID);
41
	}
42
43
	public function register(IRegistrationContext $context): void {
44
		$context->registerCapability(Capabilities::class);
45
		$context->registerEventListener(BeforeTemplateRenderedEvent::class, BeforeTemplateRenderedListener::class);
46
	}
47
48
	public function boot(IBootContext $context): void {
49
	}
50
}
51