Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions img/app-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 14 additions & 3 deletions lib/Settings/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@
namespace OCA\LogReader\Settings;

use OCP\IL10N;
use OCP\Settings\ISection;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;

class Section implements ISection {
class Section implements IIconSection {
/** @var IL10N */
private $l;
/** @var IURLGenerator */
private $url;

public function __construct(IL10N $l) {
public function __construct(IL10N $l, IURLGenerator $url) {
$this->l = $l;
$this->url = $url;
}

/**
Expand Down Expand Up @@ -62,4 +66,11 @@ public function getName() {
public function getPriority() {
return 90;
}

/**
* {@inheritdoc}
*/
public function getIcon() {
return $this->url->imagePath('logreader', 'app-dark.svg');
}
}