Files
nextcloud-registration/lib/RegistrationLoginOption.php
Thomas Citharel 6db1e91d6c style(cs): run php-cs-fixer after nc/coding-standard update
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2024-10-21 09:16:35 +02:00

39 lines
758 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Registration;
use OCP\Authentication\IAlternativeLogin;
use OCP\IL10N;
use OCP\IURLGenerator;
class RegistrationLoginOption implements IAlternativeLogin {
public function __construct(
protected IURLGenerator $url,
protected IL10N $l,
protected \OC_Defaults $theming,
) {
}
public function getLabel(): string {
return $this->l->t('Register');
}
public function getLink(): string {
return $this->url->linkToRoute('registration.register.showEmailForm');
}
public function getClass(): string {
return 'register-button';
}
public function load(): void {
}
}