In order to compare with services.xml

in services.xml the parameters are:

<service id="db" class="psm\Service\Database">
			<argument>%db.host%</argument>
			<argument>%db.name%</argument>
			<argument>%db.user%</argument>
			<argument>%db.pass%</argument>
		</service>
pull/193/head
boonkerz 2015-04-08 20:01:12 +02:00
parent ffd9cfc6c8
commit 2c26450c38
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class Database {
* @param string $pass
* @param string $db
*/
function __construct($host = null, $user = null, $pass = null, $db = null) {
function __construct($host = null, $db = null, $user = null, $pass = null) {
if($host != null && $user != null && $pass != null && $db != null) {
$this->db_host = $host;
$this->db_name = $db;