public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$formats = $this->getFormats($config['formats']);
$errorFormats = $this->getFormats($config['error_formats']);
$this->handleConfig($container, $config, $formats, $errorFormats);
$loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader->load('api.xml');
$loader->load('data_provider.xml');
$bundles = $container->getParameter('kernel.bundles');
$this->registerMetadataConfiguration($container, $loader);
$this->registerSwaggerConfiguration($container, $config, $loader);
$this->registerJsonLdConfiguration($formats, $loader);
$this->registerJsonHalConfiguration($formats, $loader);
$this->registerJsonProblemConfiguration($errorFormats, $loader);
$this->registerLoaders($container, $bundles);
$this->registerBundlesConfiguration($bundles, $config, $loader);
$this->registerCacheConfiguration($container);
$this->registerDoctrineExtensionConfiguration($container, $config);
}