mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 18:27:44 +08:00
Merge server settings with config settings. (#5806)
This commit is contained in:
parent
8b2850f31d
commit
b39728ccd7
@ -8,6 +8,7 @@
|
||||
## Optimized
|
||||
|
||||
- [#5789](https://github.com/hyperf/hyperf/pull/5789) Support `psr/http-message`.
|
||||
- [#5806](https://github.com/hyperf/hyperf/pull/5806) Merge swow server settings with config settings.
|
||||
|
||||
# v3.0.23 - 2023-06-02
|
||||
|
||||
|
@ -116,6 +116,7 @@ class SwowServer implements ServerInterface
|
||||
$host = $server->getHost();
|
||||
$port = $server->getPort();
|
||||
$callbacks = array_replace($config->getCallbacks(), $server->getCallbacks());
|
||||
$server->setSettings(array_replace($config->getSettings(), $server->getSettings()));
|
||||
|
||||
$this->server = $this->makeServer($type, $host, $port, $server->getSettings());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user