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

No files matched your search

+12 -1
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'));
}
}