Merge pull request #306 from godkinmo/master

fix ws path not work in debug dashboard
This commit is contained in:
Freek Van der Herten 2020-03-04 11:04:31 +01:00 committed by GitHub
commit 6c741d8693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -21,6 +21,9 @@ class App
/** @var string|null */
public $host;
/** @var string|null */
public $path;
/** @var int|null */
public $capacity = null;
@ -76,6 +79,13 @@ class App
return $this;
}
public function setPath(string $path)
{
$this->path = $path;
return $this;
}
public function enableClientMessages(bool $enabled = true)
{
$this->clientMessagesEnabled = $enabled;

View File

@ -71,6 +71,10 @@ class ConfigAppProvider implements AppProvider
$app->setHost($appAttributes['host']);
}
if (isset($appAttributes['path'])) {
$app->setPath($appAttributes['path']);
}
$app
->enableClientMessages($appAttributes['enable_client_messages'])
->enableStatistics($appAttributes['enable_statistics'])