改名
This commit is contained in:
@@ -14,7 +14,7 @@ use Swoole\Server;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class ResponseEmitter
|
class ResponseEmitter implements Emitter
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ class ResponseEmitter
|
|||||||
* @throws ReflectionException
|
* @throws ReflectionException
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function sender(\Swoole\Http\Response|\Swoole\Http2\Response $response, ResponseInterface $emitter): void
|
public function sender(mixed $response, ResponseInterface $emitter): void
|
||||||
{
|
{
|
||||||
$content = $emitter->configure($response)->getContent();
|
$content = $emitter->configure($response)->getContent();
|
||||||
if ($content instanceof FileFormatter) {
|
if ($content instanceof FileFormatter) {
|
||||||
|
|||||||
Reference in New Issue
Block a user