modify
This commit is contained in:
@@ -182,12 +182,11 @@ class Response extends HttpService
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
if (isset($this->_format_maps[$this->format])) {
|
if (isset($this->_format_maps[$this->format])) {
|
||||||
$config['class'] = $this->_format_maps[$this->format];
|
$className = $this->_format_maps[$this->format];
|
||||||
} else {
|
} else {
|
||||||
$config['class'] = HtmlFormatter::class;
|
$className = HtmlFormatter::class;
|
||||||
}
|
}
|
||||||
$formatter = Snowflake::createObject($config);
|
return (new $className())->send($context)->getData();
|
||||||
return $formatter->send($context)->getData();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user