By larowlan on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.3.x
Introduced in version:
9.3.0
Issue links:
Description:
As of #3186184: Make oEmbed provider repository more fault-tolerant if provider database is unavailable, the Drupal\media\OEmbed\ProviderRepository class must be constructed with the key-value factory and logger factory services. It no longer accepts an instance of CacheBackendInterface, and passing one will raise a deprecation notice.
Previously, to construct a ProviderRepository with a custom cache expiration time of now +1000 seconds, you could do this:
new ProviderRepository($http_client, $config_factory, $time, $cache_backend, 1000);
To do the same thing now:
new ProviderRepository($http_client, $config_factory, $time, $key_value_factory, $logger_factory, 1000);
Impacts:
Module developers