@@ -43,7 +43,8 @@ |
||
| 43 | 43 | { |
| 44 | 44 | $dispatcher = RouteDispatcher::create($router, $compiler); |
| 45 | 45 | |
| 46 | - return new Server(function (ServerRequestInterface $request) use ($router, $dispatcher) { |
|
| 46 | + return new Server(function (ServerRequestInterface $request) use ($router, $dispatcher) |
|
| 47 | + { |
|
| 47 | 48 | $httpMethod = $request->getMethod(); |
| 48 | 49 | $urlPath = RouteDispatcher::normalizeUrl($request->getUri()->getPath()); |
| 49 | 50 | |
@@ -103,6 +103,9 @@ |
||
| 103 | 103 | 'json' => 'application/json', |
| 104 | 104 | ]; |
| 105 | 105 | |
| 106 | + /** |
|
| 107 | + * @return \allejo\stakx\Document\StaticPageView |
|
| 108 | + */ |
|
| 106 | 109 | public static function getMimeType($extension) |
| 107 | 110 | { |
| 108 | 111 | return isset(self::$mimes[$extension]) ? self::$mimes[$extension] : null; |