src/Leevel/Manager/Manager.php
protected function makeConnect(string $connect, array $options = []): object
    {
        if (null === $this->getContainerOption('connect.'.$connect)) {
            $e = sprintf('Connect driver %s not exits.', $connect);

            throw new Exception($e);
        }

        return $this->createConnect(
            $this->createConnectCommon($connect, $options)
        );
    }
protected function makeConnect(string $connect, array $options = []): object
    {
        if (null === $this->getContainerOption('connect.'.$connect)) {
            $e = sprintf('Connect driver %s not exits.', $connect);

            throw new Exception($e);
        }

        return $this->createConnect(
            $this->createConnectCommon($connect, $options)
        );
    }
创建连接.

@param string $connect
@param array  $options

@return object