Skip to content

Commit

Permalink
added database port in environment.php
Browse files Browse the repository at this point in the history
  • Loading branch information
xrowdominik committed Apr 19, 2017
1 parent 2e8f92e commit d23162c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/xrow/eZCluster/Resources/environment.php
Expand Up @@ -157,7 +157,13 @@ function __construct($name)
$this->parameters["DATABASE_HOST"] = $dbdetails["hostspec"];
$this->parameters["DATABASE_USER"] = $dbdetails["username"];
$this->parameters["DATABASE_DRIVER"] = "pdo_mysql";
$this->parameters["DATABASE_PORT"] = "3306";
if($dbdetails["port"] == false)
{
$this->parameters["DATABASE_PORT"] = "3306";
}
else {
$this->parameters["DATABASE_PORT"] = $dbdetails["port"];
}
$this->parameters["DATABASE_PASSWORD"] = $dbdetails["password"];
}
$this->parameters["AWS_KEY"] = (string) CloudSDK::$config['access_key'];
Expand Down

0 comments on commit d23162c

Please sign in to comment.