diff --git a/src/Apps/App.php b/src/Apps/App.php index 9544725..05c2c23 100644 --- a/src/Apps/App.php +++ b/src/Apps/App.php @@ -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; diff --git a/src/Apps/ConfigAppProvider.php b/src/Apps/ConfigAppProvider.php index 0476aba..69d8bfe 100644 --- a/src/Apps/ConfigAppProvider.php +++ b/src/Apps/ConfigAppProvider.php @@ -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'])