File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 19
19
use Symfony \Component \DependencyInjection \Loader \PhpFileLoader ;
20
20
use Symfony \Component \HttpKernel \DependencyInjection \ConfigurableExtension ;
21
21
use Symfony \Contracts \HttpClient \HttpClientInterface ;
22
+ use Symfony \UX \Icons \Iconify ;
22
23
23
24
/**
24
25
* @author Kevin Bond <[email protected] >
@@ -52,7 +53,7 @@ public function getConfigTreeBuilder(): TreeBuilder
52
53
->end ()
53
54
->scalarNode ('endpoint ' )
54
55
->info ('The endpoint for the Iconify API. ' )
55
- ->defaultValue (' https://api.iconify.design ' )
56
+ ->defaultValue (Iconify:: API_ENDPOINT )
56
57
->cannotBeEmpty ()
57
58
->end ()
58
59
->end ()
Original file line number Diff line number Diff line change 26
26
*/
27
27
final class Iconify
28
28
{
29
- private const API_BASE_URI = 'https://api.iconify.design ' ;
29
+ public const API_ENDPOINT = 'https://api.iconify.design ' ;
30
30
31
31
private HttpClientInterface $ http ;
32
32
private \ArrayObject $ sets ;
33
33
34
34
public function __construct (
35
35
private CacheInterface $ cache ,
36
- string $ endpoint = self ::API_BASE_URI ,
36
+ string $ endpoint = self ::API_ENDPOINT ,
37
37
?HttpClientInterface $ http = null ,
38
38
) {
39
39
if (!class_exists (HttpClient::class)) {
You can’t perform that action at this time.
0 commit comments