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
parent
ffd9cfc6c8
commit
2c26450c38
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue