diff --git a/http-server/Server.php b/http-server/Server.php index 4a8f94fc..c2ff5a77 100644 --- a/http-server/Server.php +++ b/http-server/Server.php @@ -17,6 +17,7 @@ use HttpServer\Service\WebSocket; use Exception; use ReflectionException; use Snowflake\Config; +use Snowflake\Core\ArrayAccess; use Snowflake\Event; use Snowflake\Exception\ComponentException; use Snowflake\Exception\ConfigException; @@ -135,6 +136,9 @@ class Server extends Application if (!isset($this->server[$config['type']])) { throw new Exception('Unknown server type(' . $config['type'] . ').'); } + if (isset($config['settings'])) { + $settings = ArrayAccess::merge($settings, $config['settings']); + } $server = $this->dispatchCreate($config, $settings); if (isset($config['events'])) { $this->createEventListen($config);