public getDriver ( ) : Doctrine\DBAL\Driver | ||
return | Doctrine\DBAL\Driver |
public function getDriver()
{
return $this->_driver;
}
public function getDsn() { $driver = $this->connection->getDriver()->getName(); $user = $this->connection->getUsername(); $pass = $this->connection->getPassword(); $host = $this->connection->getHost(); $db = $this->connection->getDatabase(); return "{$driver}://{$user}:{$pass}@{$host}/{$db}"; }