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.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Contracts/Strategy.php b/src/Contracts/Strategy.php
new file mode 100644
index 0000000..81d6ec3
--- /dev/null
+++ b/src/Contracts/Strategy.php
@@ -0,0 +1,15 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Lightscale\Router\Contracts;
+
+use Lightscale\Router\RouteCall;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+
+interface Strategy
+{
+ public function runRoute(RouteCall $call): ResponseInterface;
+ public function notFound(RequestInterface $request): ResponseInterface;
+}