mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 21:45:55 +00:00
wip
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user