This repository was archived by the owner on Nov 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-16
lines changed
integrations/nextcloud/snappymail Expand file tree Collapse file tree 2 files changed +19
-16
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 77use OCA \SnappyMail \Controller \PageController ;
88
99use OCP \AppFramework \App ;
10+ use OCP \AppFramework \Bootstrap \IBootstrap ;
11+ use OCP \AppFramework \Bootstrap \IRegistrationContext ;
12+ use OCP \AppFramework \Bootstrap \IBootContext ;
1013use OCP \IL10N ;
1114use 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 ) {
You can’t perform that action at this time.
0 commit comments