Merge pull request #306 from godkinmo/master
fix ws path not work in debug dashboard
This commit is contained in:
commit
6c741d8693
|
|
@ -21,6 +21,9 @@ class App
|
||||||
/** @var string|null */
|
/** @var string|null */
|
||||||
public $host;
|
public $host;
|
||||||
|
|
||||||
|
/** @var string|null */
|
||||||
|
public $path;
|
||||||
|
|
||||||
/** @var int|null */
|
/** @var int|null */
|
||||||
public $capacity = null;
|
public $capacity = null;
|
||||||
|
|
||||||
|
|
@ -76,6 +79,13 @@ class App
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setPath(string $path)
|
||||||
|
{
|
||||||
|
$this->path = $path;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
public function enableClientMessages(bool $enabled = true)
|
public function enableClientMessages(bool $enabled = true)
|
||||||
{
|
{
|
||||||
$this->clientMessagesEnabled = $enabled;
|
$this->clientMessagesEnabled = $enabled;
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,10 @@ class ConfigAppProvider implements AppProvider
|
||||||
$app->setHost($appAttributes['host']);
|
$app->setHost($appAttributes['host']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($appAttributes['path'])) {
|
||||||
|
$app->setPath($appAttributes['path']);
|
||||||
|
}
|
||||||
|
|
||||||
$app
|
$app
|
||||||
->enableClientMessages($appAttributes['enable_client_messages'])
|
->enableClientMessages($appAttributes['enable_client_messages'])
|
||||||
->enableStatistics($appAttributes['enable_statistics'])
|
->enableStatistics($appAttributes['enable_statistics'])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue