Closed alanx15a2 closed 1 year ago
Ah, I see you want to inject another type of HttpClient?
Yeah, we use SymfonyHttpClient::create()
to create the core.
The create()
method will return many type of HttpClient, and all of them are implements of HttpClientInterface.
So I think we should inject HttpClientInterface here.
Yeah, sounds good. I'll merge it in.
When i run the sample code:
It return:
Environments
PHP: 8.1.13 PHPScraper: 1.0.1