LMongo\DatabaseManager::makeConnection PHP Method

makeConnection() protected method

Make the database connection instance.
protected makeConnection ( string $name ) : Connection
$name string
return Connection
    protected function makeConnection($name)
    {
        $config = $this->getConfig($name);
        if (isset($this->extensions[$name])) {
            return call_user_func($this->extensions[$name], $config);
        }
        $connection = new Connection();
        return $connection->connect($config);
    }