@@ -160,6 +160,7 @@ |
||
160 | 160 | * @param string $action |
161 | 161 | * @param int $returnType |
162 | 162 | * @param string $alias |
163 | + * @param string $requestMethods |
|
163 | 164 | * @throws InvalidArgumentException |
164 | 165 | * @throws UnexpectedValueException |
165 | 166 | */ |
@@ -38,6 +38,9 @@ discard block |
||
38 | 38 | private $routerClosures = []; |
39 | 39 | |
40 | 40 | |
41 | + /** |
|
42 | + * @param null|string $cachedFile |
|
43 | + */ |
|
41 | 44 | public function __construct(array $routes, int $defaultReturnType, ?string $cachedFile) |
42 | 45 | { |
43 | 46 | $this->routes = $routes; |
@@ -69,6 +72,9 @@ discard block |
||
69 | 72 | return new FastRoute\Dispatcher\GroupCountBased($routeCollector->getData()); |
70 | 73 | } |
71 | 74 | |
75 | + /** |
|
76 | + * @param FastRoute\RouteCollector $routeCollector |
|
77 | + */ |
|
72 | 78 | private function createCachedRoute($routeCollector) : void |
73 | 79 | { |
74 | 80 | if ($this->cachedFile !== null && !file_exists($this->cachedFile)) { |