summaryrefslogtreecommitdiff
path: root/src/Concerns/Strategy/ThrowsNotFoundException.php
diff options
context:
space:
mode:
authorSam Light <sam@lightscale.co.uk>2026-06-10 21:37:20 +0100
committerSam Light <sam@lightscale.co.uk>2026-06-10 21:37:20 +0100
commitb2aaaa8fa04f690fed598c31b65a6405b565c303 (patch)
tree9fce597275fbf22e0aa33784a6706a7ad878f9bb /src/Concerns/Strategy/ThrowsNotFoundException.php
parentd2a3da17cea4e172949ceac033e2455be0466b94 (diff)
Removed abstract strategy and broke all function implementations to traitsHEADmaster
Diffstat (limited to 'src/Concerns/Strategy/ThrowsNotFoundException.php')
-rw-r--r--src/Concerns/Strategy/ThrowsNotFoundException.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Concerns/Strategy/ThrowsNotFoundException.php b/src/Concerns/Strategy/ThrowsNotFoundException.php
new file mode 100644
index 0000000..996bdb5
--- /dev/null
+++ b/src/Concerns/Strategy/ThrowsNotFoundException.php
@@ -0,0 +1,17 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Lightscale\Router\Concerns\Strategy;
+
+use Lightscale\Router\Exceptions\NotFoundException;
+use Psr\Http\Message\RequestInterface;
+use Psr\Http\Message\ResponseInterface;
+
+trait ThrowsNotFoundException
+{
+ public function notFound(RequestInterface $_): ResponseInterface
+ {
+ throw new NotFoundException();
+ }
+}