ProviderRepository
class ProviderRepository implements ProviderRepositoryInterface (View source)
Retrieves and caches information about oEmbed providers.
Traits
Provides a standard way to announce deprecated properties.
Properties
| protected int | $maxAge | How long the provider data should be cached, in seconds. |
|
| protected Client | $httpClient | The HTTP client. |
|
| protected string | $providersUrl | URL of a JSON document which contains a database of oEmbed providers. |
|
| protected TimeInterface | $time | The time service. |
|
| protected KeyValueStoreInterface | $keyValue | The key-value store. |
|
| protected LoggerChannelInterface | $logger | The logger channel. |
Methods
__construct(ClientInterface $http_client, ConfigFactoryInterface $config_factory, TimeInterface $time, KeyValueFactoryInterface $key_value_factory = NULL, LoggerChannelFactoryInterface $logger_factory = NULL, int $max_age = 604800)
Constructs a ProviderRepository instance.
Details
__get($name)
Allows to access deprecated/removed properties.
This method must be public.
__construct(ClientInterface $http_client, ConfigFactoryInterface $config_factory, TimeInterface $time, KeyValueFactoryInterface $key_value_factory = NULL, LoggerChannelFactoryInterface $logger_factory = NULL, int $max_age = 604800)
Constructs a ProviderRepository instance.
Provider[]
getAll()
Returns information on all available oEmbed providers.
Provider
get(string $provider_name)
Returns information for a specific oEmbed provider.