class MediaMigrationTestOembedServiceProvider in Media Migration 8
Replaces oEmbed-related media services which would make outbound requests.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\media_migration_test_oembed\MediaMigrationTestOembedServiceProvider
Expanded class hierarchy of MediaMigrationTestOembedServiceProvider
File
- tests/
modules/ media_migration_test_oembed/ src/ MediaMigrationTestOembedServiceProvider.php, line 11
Namespace
Drupal\media_migration_test_oembedView source
class MediaMigrationTestOembedServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$container
->getDefinition('media.oembed.url_resolver')
->setClass(UrlResolver::class);
$container
->getDefinition('media.oembed.resource_fetcher')
->setClass(ResourceFetcher::class);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MediaMigrationTestOembedServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |