Spot\Config::connection PHP Method

connection() public method

Get connection by name
public connection ( string $name = null ) : Spot_Adapter_Interface
$name string Unique name of the connection to be returned
return Spot_Adapter_Interface Spot adapter instance
    public function connection($name = null)
    {
        if (null === $name) {
            return $this->defaultConnection();
        }
        // Connection name must be unique
        if (!isset($this->_connections[$name])) {
            return false;
        }
        return $this->_connections[$name];
    }