Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit bdca1f4

Browse files
author
the-djmaze
committed
Nextcloud /appinfo/app.php is deprecated pierre-alain-b/rainloop-nextcloud#264
Also see #96
1 parent e7a54e6 commit bdca1f4

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

integrations/nextcloud/snappymail/appinfo/app.php

Lines changed: 0 additions & 13 deletions
This file was deleted.

integrations/nextcloud/snappymail/lib/AppInfo/Application.php

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,27 @@
77
use OCA\SnappyMail\Controller\PageController;
88

99
use OCP\AppFramework\App;
10+
use OCP\AppFramework\Bootstrap\IBootstrap;
11+
use OCP\AppFramework\Bootstrap\IRegistrationContext;
12+
use OCP\AppFramework\Bootstrap\IBootContext;
1013
use OCP\IL10N;
1114
use OCP\IUser;
1215

13-
class Application extends App {
16+
class Application extends App implements IBootstrap
17+
{
1418

15-
public function __construct(array $urlParams = []) {
19+
public function register(IRegistrationContext $context): void
20+
{
21+
}
22+
23+
public function boot(IBootContext $context): void
24+
{
25+
$this->registerNavigation();
26+
$this->getContainer()->query('SnappyMailHelper')->registerHooks();
27+
}
28+
29+
public function __construct(array $urlParams = [])
30+
{
1631
parent::__construct('snappymail', $urlParams);
1732

1833
$container = $this->getContainer();
@@ -56,7 +71,8 @@ public function __construct(array $urlParams = []) {
5671
\OCP\Util::addScript('snappymail', 'snappymail');
5772
}
5873

59-
public function registerNavigation() {
74+
public function registerNavigation()
75+
{
6076
$container = $this->getContainer();
6177

6278
$container->query('OCP\INavigationManager')->add(function () use ($container) {

0 commit comments

Comments
 (0)