ZF\Apigility\TableGatewayAbstractFactory::getAdapterFromConfig PHP Метод

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

If the configuration defines an adapter_name and a matching service is discovered, that will be returned. If the Adapter service is present, that will be returned (zend-mvc v2). Otherwise, the AdapterInterface service is returned.
protected getAdapterFromConfig ( array $config, Interop\Container\ContainerInterface $container ) : Zend\Db\Adapter\AdapterInterface
$config array
$container Interop\Container\ContainerInterface
Результат Zend\Db\Adapter\AdapterInterface
    protected function getAdapterFromConfig(array $config, ContainerInterface $container)
    {
        if (isset($config['adapter_name']) && $container->has($config['adapter_name'])) {
            return $container->get($config['adapter_name']);
        }
        if ($container->has(Adapter::class)) {
            // v2 usage
            return $container->get(Adapter::class);
        }
        // v3 usage
        return $container->get(AdapterInterface::class);
    }