| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 38 | public function middleware($middleware) |
||
| 39 | { |
||
| 40 | $middleware |
||
| 41 | // Catch any exceptions in the lower layers, |
||
| 42 | // and make an error page/response |
||
| 43 | ->add(new ErrorHandlerMiddleware(Configure::read('Error.exceptionRenderer'))) |
||
| 44 | // Handle plugin/theme assets like CakePHP normally does. |
||
| 45 | ->add(new AssetMiddleware()) |
||
| 46 | // Apply routing |
||
| 47 | ->add(new RoutingMiddleware()); |
||
| 48 | |||
| 49 | return $middleware; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |