| 1 | <?php |
||
| 34 | class Middleware |
||
| 35 | { |
||
| 36 | /** |
||
| 37 | * Helper |
||
| 38 | * |
||
| 39 | * @var UrlHelper |
||
| 40 | * |
||
| 41 | * @access protected |
||
| 42 | */ |
||
| 43 | protected $helper; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * __construct |
||
| 47 | * |
||
| 48 | * @param UrlHelper $helper url helper |
||
| 49 | * |
||
| 50 | * @access public |
||
| 51 | */ |
||
| 52 | 2 | public function __construct(UrlHelper $helper) |
|
| 56 | |||
| 57 | /** |
||
| 58 | * __invoke |
||
| 59 | * |
||
| 60 | * @param Request $request Request |
||
| 61 | * @param Response $response Response |
||
| 62 | * @param callable $next next callable |
||
| 63 | * |
||
| 64 | * @return Response |
||
| 65 | * |
||
| 66 | * @access public |
||
| 67 | */ |
||
| 68 | 1 | public function __invoke( |
|
| 76 | } |
||
| 77 |