summaryrefslogtreecommitdiff
path: root/src/Contracts/Strategy.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Contracts/Strategy.php')
-rw-r--r--src/Contracts/Strategy.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Contracts/Strategy.php b/src/Contracts/Strategy.php
index bb877c1..fa41819 100644
--- a/src/Contracts/Strategy.php
+++ b/src/Contracts/Strategy.php
@@ -10,6 +10,16 @@ use Psr\Http\Message\ResponseInterface;
interface Strategy
{
+ /**
+ * @param Middleware[] $middlewares
+ * @param callable(RequestInterface): ResponseInterface $handler
+ */
+ public function runMiddleware(
+ RequestInterface $request,
+ array $middlewares,
+ callable $handler,
+ ): ResponseInterface;
+
public function runRoute(RouteCall $call): ResponseInterface;
public function notFound(RequestInterface $request): ResponseInterface;