Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit ba136f4

Browse files
committed
s/dns/dsn/
1 parent 3a3d332 commit ba136f4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

IDal/Wrapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ interface Wrapper {
5252
* Create a DAL instance, representing a connection to a database.
5353
*
5454
* @access public
55-
* @param string $dns The DNS of database.
55+
* @param string $dsn The DSN of database.
5656
* @param string $username The username to connect to database.
5757
* @param string $password The password to connect to database.
5858
* @param array $driverOptions The driver options.
5959
* @return void
6060
* @throw \Hoa\Database\Exception
6161
*/
62-
public function __construct ( $dns, $username, $password,
62+
public function __construct ( $dsn, $username, $password,
6363
Array $driverOption = [] );
6464

6565
/**

Layer/Pdo/Pdo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ class Pdo implements Database\IDal\Wrapper {
6464
* Create a DAL instance, representing a connection to a database.
6565
*
6666
* @access public
67-
* @param string $dns The DNS of database.
67+
* @param string $dsn The DSN of database.
6868
* @param string $username The username to connect to database.
6969
* @param string $password The password to connect to database.
7070
* @param array $driverOptions The driver options.
7171
* @return void
7272
* @throw \Hoa\Database\Exception
7373
*/
74-
public function __construct ( $dns, $username, $password,
74+
public function __construct ( $dsn, $username, $password,
7575
Array $driverOptions = [] ) {
7676

7777
if(false === extension_loaded('pdo'))
@@ -82,7 +82,7 @@ public function __construct ( $dns, $username, $password,
8282

8383
try {
8484

85-
$connection = new \PDO($dns, $username, $password, $driverOptions);
85+
$connection = new \PDO($dsn, $username, $password, $driverOptions);
8686
}
8787
catch ( \PDOException $e ) {
8888

0 commit comments

Comments
 (0)