This commit is contained in:
Marcel Pociot
2020-05-03 23:27:51 +02:00
parent 37aeee76e4
commit 0b120245db
9 changed files with 182 additions and 29 deletions

View File

@@ -2,7 +2,7 @@
namespace App\Server;
class Configuration
class Configuration implements \JsonSerializable
{
/** @var string */
protected $hostname;
@@ -36,4 +36,15 @@ class Configuration
{
return $this->$key ?? config('expose.admin.'.$key);
}
/**
* @inheritDoc
*/
public function jsonSerialize()
{
return array_merge([
'hostname' => $this->hostname(),
'port' => $this->port(),
], config('expose.admin'));
}
}