private function loadPersistence(array $drivers, array $resources, LoaderInterface $loader)
{
foreach ($resources as $alias => $resource) {
if (!in_array($resource['driver'], $drivers, true)) {
throw new InvalidArgumentException(sprintf('Resource "%s" uses driver "%s", but this driver has not been enabled.', $alias, $resource['driver']));
}
}
foreach ($drivers as $driver) {
$loader->load(sprintf('services/integrations/%s.xml', $driver));
}
}