DoraRPC\Server::configure PHP Method

configure() public method

Configuration Server.必须在start之前执行
public configure ( array $config )
$config array
    public function configure(array $config)
    {
        if (isset($config['http'])) {
            if (isset($config['http']['response_header'])) {
                $config['http']['response_header'] = array_merge($this->httpConfig['response_header'], $config['http']['response_header']);
            }
            $this->httpConfig = array_merge($this->httpConfig, $config['http']);
        }
        if (isset($config['tcp'])) {
            $this->tcpConfig = array_merge($this->tcpConfig, $config['tcp']);
        }
        return $this;
    }