mirror of
https://github.com/nextcloud/registration.git
synced 2025-08-16 17:42:09 +00:00
39 lines
758 B
PHP
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 {
|
|
}
|
|
}
|