protected function getCollectionFromConfig(array $config, $requestedName)
{
$collection = isset($config['collection_class']) ? $config['collection_class'] : Paginator::class;
if (!class_exists($collection)) {
throw new ServiceNotCreatedException(sprintf('Unable to create instance for service "%s"; collection class "%s" cannot be found', $requestedName, $collection));
}
return $collection;
}