private function getConnection()
    {
        if (!isset($this->connections[$this->getDriver()])) {
            $this->connections[$this->getDriver()] = DriverManager::getConnection(
                array(
                    'driver' => $this->getDriver(),
                    'host' => str_replace('pdo_', '', $this->getDriver()),
                    'dbname' => 'list',
                    'user' => 'list',
                    'password' => 'list',
                    // 'unix_socket' => '/tmp/mysql.sock',
                )
            );
        }

        return $this->connections[$this->getDriver()];
    }
private function getConnection()
    {
        if (!isset($this->connections[$this->getDriver()])) {
            $this->connections[$this->getDriver()] = DriverManager::getConnection(
                array(
                    'driver' => $this->getDriver(),
                    'host' => str_replace('pdo_', '', $this->getDriver()),
                    'dbname' => 'list',
                    'user' => 'list',
                    'password' => 'list',
                    // 'unix_socket' => '/tmp/mysql.sock',
                )
            );
        }

        return $this->connections[$this->getDriver()];
    }
private function getConnection ( ) { if ( ! isset ( $ this -> connections [ $ this -> getDriver ( ) ] ) ) { $ this -> connections [ $ this -> getDriver ( ) ] = DriverManager :: getConnection ( array ( 'driver' => $ this -> getDriver ( ) , 'host' => str_replace ( 'pdo_' , '' , $ this -> getDriver ( ) ) , 'dbname' => 'list' , 'user' => 'list' , 'password' => 'list' , // 'unix_socket' => '/tmp/mysql.sock', ) ) ; } return $ this -> connections [ $ this -> getDriver ( ) ] ; }
DB config matches docker config.
DB config matches docker config .