function UrlResolver::__construct
Same name in other branches
- 9 core/modules/media/src/OEmbed/UrlResolver.php \Drupal\media\OEmbed\UrlResolver::__construct()
- 8.9.x core/modules/media/src/OEmbed/UrlResolver.php \Drupal\media\OEmbed\UrlResolver::__construct()
- 11.x core/modules/media/src/OEmbed/UrlResolver.php \Drupal\media\OEmbed\UrlResolver::__construct()
Constructs a UrlResolver object.
Parameters
\Drupal\media\OEmbed\ProviderRepositoryInterface $providers: The oEmbed provider repository service.
\Drupal\media\OEmbed\ResourceFetcherInterface $resource_fetcher: The OEmbed resource fetcher service.
\GuzzleHttp\ClientInterface $http_client: The HTTP client.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.
File
-
core/
modules/ media/ src/ OEmbed/ UrlResolver.php, line 78
Class
- UrlResolver
- Converts oEmbed media URLs into endpoint-specific resource URLs.
Namespace
Drupal\media\OEmbedCode
public function __construct(ProviderRepositoryInterface $providers, ResourceFetcherInterface $resource_fetcher, ClientInterface $http_client, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend) {
$this->providers = $providers;
$this->resourceFetcher = $resource_fetcher;
$this->httpClient = $http_client;
$this->moduleHandler = $module_handler;
$this->cacheBackend = $cache_backend;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.