radarrplexorganizrnginxsonarrdashboardsabnzbdheimdallembycouchpotatonzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpcserverhomepage
		
		
		
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							100 lines
						
					
					
						
							3.7 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							100 lines
						
					
					
						
							3.7 KiB
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								use Symfony\Component\Routing\Exception\MethodNotAllowedException;
							 | 
						|
								use Symfony\Component\Routing\Exception\ResourceNotFoundException;
							 | 
						|
								use Symfony\Component\Routing\RequestContext;
							 | 
						|
								
							 | 
						|
								/**
							 | 
						|
								 * This class has been auto-generated
							 | 
						|
								 * by the Symfony Routing Component.
							 | 
						|
								 */
							 | 
						|
								class ProjectUrlMatcher extends Symfony\Component\Routing\Matcher\UrlMatcher
							 | 
						|
								{
							 | 
						|
								    public function __construct(RequestContext $context)
							 | 
						|
								    {
							 | 
						|
								        $this->context = $context;
							 | 
						|
								    }
							 | 
						|
								
							 | 
						|
								    public function match($rawPathinfo)
							 | 
						|
								    {
							 | 
						|
								        $allow = $allowSchemes = array();
							 | 
						|
								        $pathinfo = rawurldecode($rawPathinfo);
							 | 
						|
								        $context = $this->context;
							 | 
						|
								        $requestMethod = $canonicalMethod = $context->getMethod();
							 | 
						|
								
							 | 
						|
								        if ('HEAD' === $requestMethod) {
							 | 
						|
								            $canonicalMethod = 'GET';
							 | 
						|
								        }
							 | 
						|
								
							 | 
						|
								        $matchedPathinfo = $pathinfo;
							 | 
						|
								        $regexList = array(
							 | 
						|
								            0 => '{^(?'
							 | 
						|
								                    .'|/abc([^/]++)/(?'
							 | 
						|
								                        .'|1(?'
							 | 
						|
								                            .'|(*:27)'
							 | 
						|
								                            .'|0(?'
							 | 
						|
								                                .'|(*:38)'
							 | 
						|
								                                .'|0(*:46)'
							 | 
						|
								                            .')'
							 | 
						|
								                        .')'
							 | 
						|
								                        .'|2(?'
							 | 
						|
								                            .'|(*:59)'
							 | 
						|
								                            .'|0(?'
							 | 
						|
								                                .'|(*:70)'
							 | 
						|
								                                .'|0(*:78)'
							 | 
						|
								                            .')'
							 | 
						|
								                        .')'
							 | 
						|
								                    .')'
							 | 
						|
								                .')$}sD',
							 | 
						|
								        );
							 | 
						|
								
							 | 
						|
								        foreach ($regexList as $offset => $regex) {
							 | 
						|
								            while (preg_match($regex, $matchedPathinfo, $matches)) {
							 | 
						|
								                switch ($m = (int) $matches['MARK']) {
							 | 
						|
								                    default:
							 | 
						|
								                        $routes = array(
							 | 
						|
								                            27 => array(array('_route' => 'r1'), array('foo'), null, null),
							 | 
						|
								                            38 => array(array('_route' => 'r10'), array('foo'), null, null),
							 | 
						|
								                            46 => array(array('_route' => 'r100'), array('foo'), null, null),
							 | 
						|
								                            59 => array(array('_route' => 'r2'), array('foo'), null, null),
							 | 
						|
								                            70 => array(array('_route' => 'r20'), array('foo'), null, null),
							 | 
						|
								                            78 => array(array('_route' => 'r200'), array('foo'), null, null),
							 | 
						|
								                        );
							 | 
						|
								
							 | 
						|
								                        list($ret, $vars, $requiredMethods, $requiredSchemes) = $routes[$m];
							 | 
						|
								
							 | 
						|
								                        foreach ($vars as $i => $v) {
							 | 
						|
								                            if (isset($matches[1 + $i])) {
							 | 
						|
								                                $ret[$v] = $matches[1 + $i];
							 | 
						|
								                            }
							 | 
						|
								                        }
							 | 
						|
								
							 | 
						|
								                        $hasRequiredScheme = !$requiredSchemes || isset($requiredSchemes[$context->getScheme()]);
							 | 
						|
								                        if ($requiredMethods && !isset($requiredMethods[$canonicalMethod]) && !isset($requiredMethods[$requestMethod])) {
							 | 
						|
								                            if ($hasRequiredScheme) {
							 | 
						|
								                                $allow += $requiredMethods;
							 | 
						|
								                            }
							 | 
						|
								                            break;
							 | 
						|
								                        }
							 | 
						|
								                        if (!$hasRequiredScheme) {
							 | 
						|
								                            $allowSchemes += $requiredSchemes;
							 | 
						|
								                            break;
							 | 
						|
								                        }
							 | 
						|
								
							 | 
						|
								                        return $ret;
							 | 
						|
								                }
							 | 
						|
								
							 | 
						|
								                if (78 === $m) {
							 | 
						|
								                    break;
							 | 
						|
								                }
							 | 
						|
								                $regex = substr_replace($regex, 'F', $m - $offset, 1 + strlen($m));
							 | 
						|
								                $offset += strlen($m);
							 | 
						|
								            }
							 | 
						|
								        }
							 | 
						|
								        if ('/' === $pathinfo && !$allow && !$allowSchemes) {
							 | 
						|
								            throw new Symfony\Component\Routing\Exception\NoConfigurationException();
							 | 
						|
								        }
							 | 
						|
								
							 | 
						|
								        throw $allow ? new MethodNotAllowedException(array_keys($allow)) : new ResourceNotFoundException();
							 | 
						|
								    }
							 | 
						|
								}
							 | 
						|
								
							 |