Skip to content

Commit

Permalink
NC 18 Workflow integration #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Jan 9, 2020
1 parent 958712e commit dd544ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions appinfo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

use OCP\Util;

$app = \OC::$server->query(\OCA\Analytics\AppInfo\Application::class);
$app->register();

$navigationEntry = function () {
return [
'id' => 'analytics',
Expand Down
4 changes: 1 addition & 3 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,20 @@ class Application extends App

public function __construct(array $urlParams = array())
{

parent::__construct('analytics', $urlParams);
$this->register();
}

public function register()
{
$this->registerNotificationNotifier();
//$this->registerCommentsEntity();

$server = $this->getContainer()->getServer();
/** @var IEventDispatcher $dispatcher */
try {
$dispatcher = $server->query(IEventDispatcher::class);
} catch (QueryException $e) {
}

Operation::register($dispatcher);
}

Expand Down

0 comments on commit dd544ed

Please sign in to comment.