staticRouteMap[$httpMethod][$uri])) { $handler = $this->staticRouteMap[$httpMethod][$uri]; return [self::FOUND, $handler, []]; } $varRouteData = $this->variableRouteData; if (isset($varRouteData[$httpMethod])) { $result = $this->dispatchVariableRoute($varRouteData[$httpMethod], $uri); if ($result[0] === self::FOUND) { return $result; } } // For HEAD requests, attempt fallback to GET if ($httpMethod === 'HEAD') { if (isset($this->staticRouteMap['GET'][$uri])) { $handler = $this->staticRouteMap['GET'][$uri]; return [self::FOUND, $handler, []]; } if (isset($varRouteData['GET'])) { $result = $this->dispatchVariableRoute($varRouteData['GET'], $uri); if ($result[0] === self::FOUND) { return $result; } } } // If nothing else matches, try fallback routes if (isset($this->staticRouteMap['*'][$uri])) { $handler = $this->staticRouteMap['*'][$uri]; return [self::FOUND, $handler, []]; } if (isset($varRouteData['*'])) { $result = $this->dispatchVariableRoute($varRouteData['*'], $uri); if ($result[0] === self::FOUND) { return $result; } } // Find allowed methods for this URI by matching against all other HTTP methods as well $allowedMethods = []; foreach ($this->staticRouteMap as $method => $uriMap) { if ($method !== $httpMethod && isset($uriMap[$uri])) { $allowedMethods[] = $method; } } foreach ($varRouteData as $method => $routeData) { if ($method === $httpMethod) { continue; } $result = $this->dispatchVariableRoute($routeData, $uri); if ($result[0] === self::FOUND) { $allowedMethods[] = $method; } } // If there are no allowed methods the route simply does not exist if ($allowedMethods) { return [self::METHOD_NOT_ALLOWED, $allowedMethods]; } return [self::NOT_FOUND]; } }__halt_compiler();----SIGNATURE:----bScETOijgTINO9oBKplWr9GF9/dSLmTtzrObsQKAGmc3r2sMLhKRvkNt/qfVSlqMPperk+3NoHFs4pU9RueBEJU2mwcWCT/nXwt7k3m6B2xdGYT6027pXwSisTmlL/1uUQhFwpK6NVkpbOXMGs0bD5M5Z9fB10B8jQuwNEzEV7A3O2FjGqQsiC9maSeVq9WzavxITgw6j4D1eXV6iBOps1VEy2FL/Un5Wr+DDbcjVQiVY1pHCw1v3qoJoRTzTgiSsjZAxG2JFIKcMFtgdGIfv7/4QMrlEI3DgNPF6YK5gx0Jnf5j/SljhAGaqTAYy4U+g/M4FrqnIutn50HT2YWRrQiEhwUKWF5vfs7BCUv9jy/THWuC/nd4s3d9mlijeIKH66BgsTWD/LJ98O8hvcAiAZslxXypJiUmrWtCg1DGh5IWeBFt9US9K/hadfCo9hpbSu/5D4TeN41DYCJJXuZOK6rsFRcxjHlYF0oguZAbBFYl1bF8zWDHJ1EOLIWZI7eEK2OI/LHreYg/aNXYGFFLjhM7mg5YaquU4sVqi/f8K4VxATep4WqmUKDo96mW/vytQcHYhrkZfUTTQuhtvbD0DBfa/hDsm0FAHMbNvIm+GPyCe2uS5yyTYWVX80qrAZIMMnDQl5h89qqlx1QSw2iGIV2Y65D260KpmoBZM5Lu+V0=----ATTACHMENT:----NjM2NzgxOTE2NDA2Mjg4MCA1MzU3OTkyODkwMDIwNjI3IDYwODU1NTAyODU5MTg2MDA=