mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-15 18:23:26 +03:00
- Somehow the ExceptionHandling functionality never really get implemented and/or got lost in translation, it's back whup! - Added some basic tests for Middleware + routing.
14 lines
298 B
PHP
14 lines
298 B
PHP
<?php
|
|
|
|
require_once 'Exceptions/MiddlewareLoadedException.php';
|
|
|
|
use Pecee\Http\Middleware\IMiddleware;
|
|
use Pecee\Http\Request;
|
|
|
|
class DummyMiddleware implements IMiddleware {
|
|
|
|
public function handle(Request $request) {
|
|
throw new MiddlewareLoadedException('Middleware loaded!');
|
|
}
|
|
|
|
} |