* [MOD] Improved layouts/templates handling. Work in progress.

* [MOD] Improved bootstrap workflow. Work in progress.
* [MOD] Improved installer workflow. Work in progress.
This commit is contained in:
nuxsmin
2018-02-13 01:22:49 +01:00
parent 90c347a552
commit 8ef11d0d6c
17 changed files with 227 additions and 113 deletions

View File

@@ -125,7 +125,7 @@ class MySQLHandler implements DBStorageInterface
*/
public function getConnectionUri()
{
if ('' === $this->connectionData->getDbSocket()) {
if (empty($this->connectionData->getDbSocket())) {
$dsn = 'mysql:host=' . $this->connectionData->getDbHost();
if (null !== $this->connectionData->getDbPort()) {
@@ -135,14 +135,13 @@ class MySQLHandler implements DBStorageInterface
if (null !== $this->connectionData->getDbName()) {
$dsn .= ';dbname=' . $this->connectionData->getDbName();
}
return $dsn . ';charset=utf8';
}
$dsn = 'mysql:unix_socket=' . $this->connectionData->getDbSocket();
if ('' !== $this->connectionData->getDbName()) {
if (!empty($this->connectionData->getDbName())) {
$dsn .= ';dbname=' . $this->connectionData->getDbName();
}