Skip to content

Commit 20c7f42

Browse files
committed
♻️ Use proper DI
1 parent 3786fd1 commit 20c7f42

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

packages/auth/src/OAuth/OAuthManager.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,11 @@
1616

1717
final readonly class OAuthManager
1818
{
19-
private HttpClient $httpClient;
20-
21-
private Session $session;
22-
2319
public function __construct(
2420
private OAuth2Provider $provider,
25-
) {
26-
$this->httpClient = get(HttpClient::class);
27-
$this->session = get(Session::class);
28-
}
21+
private HttpClient $httpClient,
22+
private Session $session,
23+
) {}
2924

3025
public function generateAuthorizationUrl(
3126
?array $parameters = null,

0 commit comments

Comments
 (0)