mirror of
https://github.com/bitinflow/expose.git
synced 2026-10-31 20:59:09 +00:00
wip
This commit is contained in:
1 parent
37aeee76e4
commit
0b120245db
9 files changed
+182
-29
No files matched your search
@@ -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