@@ -783,6 +783,9 @@ |
||
| 783 | 783 | 'zmm' => 'application/vnd.handheld-entertainment+xml', |
| 784 | 784 | ]; |
| 785 | 785 | |
| 786 | + /** |
|
| 787 | + * @return \allejo\stakx\Document\StaticPageView |
|
| 788 | + */ |
|
| 786 | 789 | public static function getMimeType($extension) |
| 787 | 790 | { |
| 788 | 791 | return isset(self::$mimes[$extension]) ? self::$mimes[$extension] : null; |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | /** |
| 101 | 101 | * Retrieve all of the URL routes registered. |
| 102 | 102 | * |
| 103 | - * @return string[] |
|
| 103 | + * @return integer[] |
|
| 104 | 104 | */ |
| 105 | 105 | public function getRoutes() |
| 106 | 106 | { |
@@ -60,7 +60,8 @@ |
||
| 60 | 60 | { |
| 61 | 61 | $routes = Controller::create($routeMapper, $compiler); |
| 62 | 62 | |
| 63 | - return new Server(function (ServerRequestInterface $request) use ($routes, $compiler) { |
|
| 63 | + return new Server(function (ServerRequestInterface $request) use ($routes, $compiler) |
|
| 64 | + { |
|
| 64 | 65 | $httpMethod = $request->getMethod(); |
| 65 | 66 | $urlPath = Controller::normalizeUrl($request->getUri()->getPath()); |
| 66 | 67 | |