<?phpuseSymfony\Component\Routing\Exception\MethodNotAllowedException;useSymfony\Component\Routing\Exception\ResourceNotFoundException;useSymfony\Component\Routing\RequestContext;/** * This class has been auto-generated * by the Symfony Routing Component. */classProjectUrlMatcherextendsSymfony\Component\Routing\Matcher\UrlMatcher{publicfunction__construct(RequestContext$context){$this->context=$context;}publicfunctionmatch($rawPathinfo){$allow=[];$pathinfo=rawurldecode($rawPathinfo);$trimmedPathinfo=rtrim($pathinfo,'/');$context=$this->context;$request=$this->request?:$this->createRequest($pathinfo);$requestMethod=$canonicalMethod=$context->getMethod();if('HEAD'===$requestMethod){$canonicalMethod='GET';}if('/'===$pathinfo&&!$allow){thrownewSymfony\Component\Routing\Exception\NoConfigurationException();}throw0<count($allow)?newMethodNotAllowedException(array_unique($allow)):newResourceNotFoundException();}}