ZF\Apigility\DbConnectedResourceAbstractFactory::getCollectionFromConfig PHP Метод

getCollectionFromConfig() защищенный Метод

Defaults to Zend\Paginator\Paginator.
protected getCollectionFromConfig ( array $config, string $requestedName ) : string
$config array
$requestedName string
Результат string
    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;
    }