/** * Verify if a dinamic route match in another method than the requested. * * @param string $method The HTTP method that must not be checked * @param string $uri The URi that must be matched. * * @return array */ protected function checkDinamicRouteInOtherMethods($method, $uri) { $methods = []; $dinamicRoutesCollection = $this->collection->getDinamicRoutes(); unset($dinamicRoutesCollection[$method]); foreach ($dinamicRoutesCollection as $method => $routes) { if (!isset($methods[$method]) && ($route = $this->matchDinamicRoute($this->collection->getCompiledDinamicRoutes($method), $uri))) { $methods[$method] = $route; } } return $methods; }