private function extractHostParameters($request, $info)
    {
        $hostname = $this->cleanHostName($request);

        if (empty($hostname)) {
            $params = [];
        } else {
            $params = array_reverse(explode(".", $hostname));
        }

        $parameters = $this->filterParameters($info['hostparameters'], $params);
        return $parameters;
    }
private function extractHostParameters($request, $info)
    {
        $hostname = $this->cleanHostName($request);

        if (empty($hostname)) {
            $params = [];
        } else {
            $params = array_reverse(explode(".", $hostname));
        }

        $parameters = $this->filterParameters($info['hostparameters'], $params);
        return $parameters;
    }
private function extractHostParameters ( $ request , $ info ) { $ hostname = $ this -> cleanHostName ( $ request ) ; if ( empty ( $ hostname ) ) { $ params = [ ] ; } else { $ params = array_reverse ( explode ( "." , $ hostname ) ) ; } $ parameters = $ this -> filterParameters ( $ info [ 'hostparameters' ] , $ params ) ; return $ parameters ; }
extract parameters from hostname

@param ServerRequestInterface $request
@param array $info
@return array
extract parameters from hostname