Skip to content

Commit 776af7d

Browse files
committed
feat: inject server instance in request
1 parent 3c46637 commit 776af7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Http/RequestInterface.php

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use RTC\Contracts\Http\Router\CollectorInterface;
66
use RTC\Contracts\Http\Router\DispatchResultInterface;
7+
use RTC\Contracts\Server\ServerInterface;
78
use Throwable;
89

910
interface RequestInterface extends \Psr\Http\Message\RequestInterface
@@ -18,6 +19,8 @@ public function getRouteDispatchResult(): DispatchResultInterface;
1819

1920
public function getKernel(): KernelInterface;
2021

22+
public function getServer(): ServerInterface;
23+
2124
public function getRouteCollector(): CollectorInterface;
2225

2326
public function hasRouteCollector(): bool;

0 commit comments

Comments
 (0)