We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e82897d + 722e94c commit 4907585Copy full SHA for 4907585
3 files changed
img/app-dark.svg
img/app.svg
lib/Settings/Section.php
@@ -24,17 +24,18 @@
24
namespace OCA\User_SAML\Settings;
25
26
use OCP\IL10N;
27
-use OCP\Settings\ISection;
+use OCP\IURLGenerator;
28
+use OCP\Settings\IIconSection;
29
-class Section implements ISection {
30
+class Section implements IIconSection {
31
/** @var IL10N */
32
private $l;
33
+ /** @var IURLGenerator */
34
+ private $url;
35
- /**
- * @param IL10N $l
- */
36
- public function __construct(IL10N $l) {
+ public function __construct(IL10N $l, IURLGenerator $url) {
37
$this->l = $l;
38
+ $this->url = $url;
39
}
40
41
/**
@@ -57,4 +58,11 @@ public function getName() {
57
58
public function getPriority() {
59
return 75;
60
61
+
62
+ /**
63
+ * {@inheritdoc}
64
+ */
65
+ public function getIcon() {
66
+ return $this->url->imagePath('user_saml', 'app-dark.svg');
67
+ }
68
0 commit comments