-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSolidClientFactory.php
More file actions
29 lines (23 loc) · 684 Bytes
/
SolidClientFactory.php
File metadata and controls
29 lines (23 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/*
* This file is part of the Solid Client PHP project.
* (c) Kévin Dunglas <kevin@dunglas.fr>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Dunglas\PhpSolidClient;
use Symfony\Contracts\HttpClient\HttpClientInterface;
/**
* @author Kévin Dunglas <kevin@dunglas.fr>
*/
final class SolidClientFactory
{
public function __construct(private readonly HttpClientInterface $httpClient)
{
}
public function create(?OidcClient $oidcClient = null): SolidClient
{
return new SolidClient($this->httpClient, $oidcClient);
}
}