diff options
Diffstat (limited to 'src/Handlers/NotFoundHandler.php')
-rw-r--r-- | src/Handlers/NotFoundHandler.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Handlers/NotFoundHandler.php b/src/Handlers/NotFoundHandler.php new file mode 100644 index 0000000..1827995 --- /dev/null +++ b/src/Handlers/NotFoundHandler.php @@ -0,0 +1,15 @@ +<?php + +namespace Micropoly\Handlers; + +use Micropoly\Env; +use Micropoly\Handler; + +class NotFoundHandler implements Handler +{ + public function handle(Env $env, array $variables) + { + http_response_code(404); + echo "404"; + } +} |