diff options
Diffstat (limited to 'src/Concerns/Strategy/ThrowsNotFoundException.php')
| -rw-r--r-- | src/Concerns/Strategy/ThrowsNotFoundException.php | 17 |
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(); + } +} |
