public function RegisterOEmbedProviderClassesCompilerPass::process in oEmbed 8
You can modify the container here before it is dumped to PHP code.
Parameters
ContainerBuilder $container:
File
- src/
RegisterOEmbedProviderClassesCompilerPass.php, line 38
Class
Namespace
Drupal\oembedCode
public function process(ContainerBuilder $container) {
if (!$container
->hasDefinition($this->providerResolverService) && !$container
->hasAlias($this->providerResolverService)) {
return;
}
$definition = $container
->findDefinition($this->providerResolverService);
foreach ($container
->findTaggedServiceIds($this->providerTag) as $id => $providers) {
$definition
->addMethodCall('addProvider', array(
new Reference($id),
));
}
}