for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\TwoFactorGateway\Settings\Admin;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
class AdminSectionSettings implements IIconSection {
public function __construct(
private IL10N $l,
private IURLGenerator $urlGenerator,
) {
}
public function getID(): string {
return 'twofactor_gateway';
public function getName(): string {
return $this->l->t('Two-Factor Gateway');
public function getPriority(): int {
return 50;
public function getIcon(): string {
return $this->urlGenerator->imagePath('twofactor_gateway', 'app.svg');