Skip to content

Commit 5e2d106

Browse files
authored
Call parent constructor in custom oauth provider classes (pelican-dev#1039)
1 parent 40c138f commit 5e2d106

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

app/Extensions/OAuth/Providers/AuthentikProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99

1010
final class AuthentikProvider extends OAuthProvider
1111
{
12-
public function __construct(protected Application $app) {}
12+
public function __construct(protected Application $app)
13+
{
14+
parent::__construct($app);
15+
}
1316

1417
public function getId(): string
1518
{

app/Extensions/OAuth/Providers/DiscordProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313

1414
final class DiscordProvider extends OAuthProvider
1515
{
16-
public function __construct(protected Application $app) {}
16+
public function __construct(protected Application $app)
17+
{
18+
parent::__construct($app);
19+
}
1720

1821
public function getId(): string
1922
{

app/Extensions/OAuth/Providers/GithubProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212

1313
final class GithubProvider extends OAuthProvider
1414
{
15-
public function __construct(protected Application $app) {}
15+
public function __construct(protected Application $app)
16+
{
17+
parent::__construct($app);
18+
}
1619

1720
public function getId(): string
1821
{

app/Extensions/OAuth/Providers/SteamProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111

1212
final class SteamProvider extends OAuthProvider
1313
{
14-
public function __construct(protected Application $app) {}
14+
public function __construct(protected Application $app)
15+
{
16+
parent::__construct($app);
17+
}
1518

1619
public function getId(): string
1720
{

0 commit comments

Comments
 (0)