function ResourceFetcher::__construct
Constructs a ResourceFetcher object.
Parameters
\GuzzleHttp\ClientInterface $httpClient: The HTTP client.
\Drupal\media\OEmbed\ProviderRepositoryInterface $providers: The oEmbed provider repository service.
\Drupal\Core\Cache\CacheBackendInterface $cacheBackend: The cache backend.
int $timeout: The length of time to wait for the request before the request should time out.
File
-
core/
modules/ media/ src/ OEmbed/ ResourceFetcher.php, line 31
Class
- ResourceFetcher
- Fetches and caches oEmbed resources.
Namespace
Drupal\media\OEmbedCode
public function __construct(ClientInterface $httpClient, ProviderRepositoryInterface $providers, CacheBackendInterface $cacheBackend, int $timeout = 5) {
}