src/Connection/ConnectionRegistry.php
public function getConnection($name)
    {
        if (!isset($this->connections[$name])) {
            throw new NotFoundException(sprintf(
                'Connection %s not registered, available are [ %s ]'),
                $name,
                implode(', ', array_keys($this->connections))
            );
        }

        return $this->connections[$name];
    }
public function getConnection($name)
    {
        if (!isset($this->connections[$name])) {
            throw new NotFoundException(sprintf(
                'Connection %s not registered, available are [ %s ]'),
                $name,
                implode(', ', array_keys($this->connections))
            );
        }

        return $this->connections[$name];
    }
@param $name

@throws NotFoundException

@return mixed