use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
#[Package('core')]
class ElasticsearchExtension extends Extension
{ public function load(array
$configs, ContainerBuilder
$container): void
{ $config =
$this->
processConfiguration($this->
getConfiguration($configs,
$container),
$configs);
$this->
addConfig($container,
$this->
getAlias(),
$config);
$loader =
new XmlFileLoader($container,
new FileLocator(__DIR__ . '/../Resources/config'
));
$loader->
load('services.xml'
);
} public function getConfiguration(array
$config, ContainerBuilder
$container): ConfigurationInterface
{ return new Configuration();
}