Cviebrock\LaravelElasticsearch\LumenManager::getConfig PHP Method

getConfig() protected method

Get the configuration for a named connection.
protected getConfig ( $name ) : mixed
$name
return mixed
    protected function getConfig($name)
    {
        $connections = $this->app['config']['elasticsearch.connections'];
        if (is_null($config = array_get($connections, $name))) {
            throw new \InvalidArgumentException("Elasticsearch connection [{$name}] not configured.");
        }
        return $config;
    }