Commit e78a5b0a by Taylor Otwell

Refactor the connector class.

parent e81dd68a
......@@ -79,10 +79,7 @@ class Connector {
{
$dsn = $config->driver.':host='.$config->host.';dbname='.$config->database;
if (isset($config->port))
{
$dsn .= ';port='.$config->port;
}
if (isset($config->port)) $dsn .= ';port='.$config->port;
$connection = new \PDO($dsn, $config->username, $config->password, $this->options);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment