mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 20:24:44 +02:00
Call parent constructor in custom oauth provider classes (#1039)
This commit is contained in:
parent
40c138f086
commit
5e2d106bb9
@ -9,7 +9,10 @@ use SocialiteProviders\Authentik\Provider;
|
|||||||
|
|
||||||
final class AuthentikProvider extends OAuthProvider
|
final class AuthentikProvider extends OAuthProvider
|
||||||
{
|
{
|
||||||
public function __construct(protected Application $app) {}
|
public function __construct(protected Application $app)
|
||||||
|
{
|
||||||
|
parent::__construct($app);
|
||||||
|
}
|
||||||
|
|
||||||
public function getId(): string
|
public function getId(): string
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,10 @@ use Webbingbrasil\FilamentCopyActions\Forms\Actions\CopyAction;
|
|||||||
|
|
||||||
final class DiscordProvider extends OAuthProvider
|
final class DiscordProvider extends OAuthProvider
|
||||||
{
|
{
|
||||||
public function __construct(protected Application $app) {}
|
public function __construct(protected Application $app)
|
||||||
|
{
|
||||||
|
parent::__construct($app);
|
||||||
|
}
|
||||||
|
|
||||||
public function getId(): string
|
public function getId(): string
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,10 @@ use Webbingbrasil\FilamentCopyActions\Forms\Actions\CopyAction;
|
|||||||
|
|
||||||
final class GithubProvider extends OAuthProvider
|
final class GithubProvider extends OAuthProvider
|
||||||
{
|
{
|
||||||
public function __construct(protected Application $app) {}
|
public function __construct(protected Application $app)
|
||||||
|
{
|
||||||
|
parent::__construct($app);
|
||||||
|
}
|
||||||
|
|
||||||
public function getId(): string
|
public function getId(): string
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,10 @@ use SocialiteProviders\Steam\Provider;
|
|||||||
|
|
||||||
final class SteamProvider extends OAuthProvider
|
final class SteamProvider extends OAuthProvider
|
||||||
{
|
{
|
||||||
public function __construct(protected Application $app) {}
|
public function __construct(protected Application $app)
|
||||||
|
{
|
||||||
|
parent::__construct($app);
|
||||||
|
}
|
||||||
|
|
||||||
public function getId(): string
|
public function getId(): string
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user