Skip to content

Commit

Permalink
Renamed Connection to WritableConnection.
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Mar 24, 2023
1 parent c4eed24 commit 5cc31be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Http/Connection.php → src/Http/WritableConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
*/
namespace Hyperf\Engine\Http;

use Hyperf\Engine\Contract\Http\ConnectionInterface;
use Hyperf\Engine\Contract\Http\Writable;
use Swoole\Http\Response;

class Connection implements ConnectionInterface
class WritableConnection implements Writable
{
public function __construct(protected Response $response)
{
Expand All @@ -33,8 +33,8 @@ public function getSocket(): mixed
return $this->response;
}

public function end(?string $content = null): bool
public function end(): bool
{
return $this->response->end($content);
return $this->response->end();
}
}

0 comments on commit 5cc31be

Please sign in to comment.