var/cache/dev/appDevDebugProjectContainerUrlMatcher.php line 347

Open in your IDE?
  1. <?php
  2. use Symfony\Component\Routing\Exception\MethodNotAllowedException;
  3. use Symfony\Component\Routing\Exception\ResourceNotFoundException;
  4. use Symfony\Component\Routing\RequestContext;
  5. /**
  6.  * This class has been auto-generated
  7.  * by the Symfony Routing Component.
  8.  */
  9. class appDevDebugProjectContainerUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
  10. {
  11.     public function __construct(RequestContext $context)
  12.     {
  13.         $this->context $context;
  14.     }
  15.     public function match($rawPathinfo)
  16.     {
  17.         $allow = array();
  18.         $pathinfo rawurldecode($rawPathinfo);
  19.         $trimmedPathinfo rtrim($pathinfo'/');
  20.         $context $this->context;
  21.         $request $this->request;
  22.         $requestMethod $canonicalMethod $context->getMethod();
  23.         $scheme $context->getScheme();
  24.         if ('HEAD' === $requestMethod) {
  25.             $canonicalMethod 'GET';
  26.         }
  27.         if (=== strpos($pathinfo'/_')) {
  28.             // _wdt
  29.             if (=== strpos($pathinfo'/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  30.                 return $this->mergeDefaults(array_replace($matches, array('_route' => '_wdt')), array (  '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
  31.             }
  32.             if (=== strpos($pathinfo'/_profiler')) {
  33.                 // _profiler_home
  34.                 if ('/_profiler' === $trimmedPathinfo) {
  35.                     if (substr($pathinfo, -1) !== '/') {
  36.                         return $this->redirect($rawPathinfo.'/''_profiler_home');
  37.                     }
  38.                     return array (  '_controller' => 'web_profiler.controller.profiler:homeAction',  '_route' => '_profiler_home',);
  39.                 }
  40.                 if (=== strpos($pathinfo'/_profiler/search')) {
  41.                     // _profiler_search
  42.                     if ('/_profiler/search' === $pathinfo) {
  43.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchAction',  '_route' => '_profiler_search',);
  44.                     }
  45.                     // _profiler_search_bar
  46.                     if ('/_profiler/search_bar' === $pathinfo) {
  47.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchBarAction',  '_route' => '_profiler_search_bar',);
  48.                     }
  49.                 }
  50.                 // _profiler_phpinfo
  51.                 if ('/_profiler/phpinfo' === $pathinfo) {
  52.                     return array (  '_controller' => 'web_profiler.controller.profiler:phpinfoAction',  '_route' => '_profiler_phpinfo',);
  53.                 }
  54.                 // _profiler_search_results
  55.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#s'$pathinfo$matches)) {
  56.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_search_results')), array (  '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
  57.                 }
  58.                 // _profiler_open_file
  59.                 if ('/_profiler/open' === $pathinfo) {
  60.                     return array (  '_controller' => 'web_profiler.controller.profiler:openAction',  '_route' => '_profiler_open_file',);
  61.                 }
  62.                 // _profiler
  63.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  64.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler')), array (  '_controller' => 'web_profiler.controller.profiler:panelAction',));
  65.                 }
  66.                 // _profiler_router
  67.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#s'$pathinfo$matches)) {
  68.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_router')), array (  '_controller' => 'web_profiler.controller.router:panelAction',));
  69.                 }
  70.                 // _profiler_exception
  71.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#s'$pathinfo$matches)) {
  72.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception')), array (  '_controller' => 'web_profiler.controller.exception:showAction',));
  73.                 }
  74.                 // _profiler_exception_css
  75.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#s'$pathinfo$matches)) {
  76.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception_css')), array (  '_controller' => 'web_profiler.controller.exception:cssAction',));
  77.                 }
  78.             }
  79.             // _twig_error_test
  80.             if (=== strpos($pathinfo'/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  81.                 return $this->mergeDefaults(array_replace($matches, array('_route' => '_twig_error_test')), array (  '_controller' => 'twig.controller.preview_error:previewErrorPageAction',  '_format' => 'html',));
  82.             }
  83.         }
  84.         // nordpeis_calculator_form
  85.         if ('' === $trimmedPathinfo) {
  86.             if (substr($pathinfo, -1) !== '/') {
  87.                 return $this->redirect($rawPathinfo.'/''nordpeis_calculator_form');
  88.             }
  89.             return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::indexAction',  '_route' => 'nordpeis_calculator_form',);
  90.         }
  91.         // nordpeis_calculator_fireplace
  92.         if ('/fireplace' === $pathinfo) {
  93.             if ('GET' !== $canonicalMethod) {
  94.                 $allow[] = 'GET';
  95.                 goto not_nordpeis_calculator_fireplace;
  96.             }
  97.             return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::fireplaceAction',  '_route' => 'nordpeis_calculator_fireplace',);
  98.         }
  99.         not_nordpeis_calculator_fireplace:
  100.         // nordpeis_calculator_floors
  101.         if ('/floors' === $pathinfo) {
  102.             if ('GET' !== $canonicalMethod) {
  103.                 $allow[] = 'GET';
  104.                 goto not_nordpeis_calculator_floors;
  105.             }
  106.             return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::floorAction',  '_route' => 'nordpeis_calculator_floors',);
  107.         }
  108.         not_nordpeis_calculator_floors:
  109.         // nordpeis_calculator_scheme
  110.         if ('/scheme' === $pathinfo) {
  111.             if ('GET' !== $canonicalMethod) {
  112.                 $allow[] = 'GET';
  113.                 goto not_nordpeis_calculator_scheme;
  114.             }
  115.             return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::schemeAction',  '_route' => 'nordpeis_calculator_scheme',);
  116.         }
  117.         not_nordpeis_calculator_scheme:
  118.         // nordpeis_calculator_show
  119.         if (=== strpos($pathinfo'/show') && preg_match('#^/show/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  120.             if ('GET' !== $canonicalMethod) {
  121.                 $allow[] = 'GET';
  122.                 goto not_nordpeis_calculator_show;
  123.             }
  124.             return $this->mergeDefaults(array_replace($matches, array('_route' => 'nordpeis_calculator_show')), array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::showAction',));
  125.         }
  126.         not_nordpeis_calculator_show:
  127.         if (=== strpos($pathinfo'/p')) {
  128.             if (=== strpos($pathinfo'/pipe')) {
  129.                 // nordpeis_calculator_pipe
  130.                 if ('/pipe' === $pathinfo) {
  131.                     if ('GET' !== $canonicalMethod) {
  132.                         $allow[] = 'GET';
  133.                         goto not_nordpeis_calculator_pipe;
  134.                     }
  135.                     return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::pipeAction',  '_route' => 'nordpeis_calculator_pipe',);
  136.                 }
  137.                 not_nordpeis_calculator_pipe:
  138.                 // nordpeis_calculator_pipehat
  139.                 if ('/pipehat' === $pathinfo) {
  140.                     if ('GET' !== $canonicalMethod) {
  141.                         $allow[] = 'GET';
  142.                         goto not_nordpeis_calculator_pipehat;
  143.                     }
  144.                     return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::pipehatAction',  '_route' => 'nordpeis_calculator_pipehat',);
  145.                 }
  146.                 not_nordpeis_calculator_pipehat:
  147.             }
  148.             // nordpeis_calculator_print
  149.             if (=== strpos($pathinfo'/print') && preg_match('#^/print/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  150.                 if ('GET' !== $canonicalMethod) {
  151.                     $allow[] = 'GET';
  152.                     goto not_nordpeis_calculator_print;
  153.                 }
  154.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'nordpeis_calculator_print')), array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::printAction',));
  155.             }
  156.             not_nordpeis_calculator_print:
  157.             // nordpeis_calculator_pdf
  158.             if (=== strpos($pathinfo'/pdf') && preg_match('#^/pdf/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  159.                 if ('GET' !== $canonicalMethod) {
  160.                     $allow[] = 'GET';
  161.                     goto not_nordpeis_calculator_pdf;
  162.                 }
  163.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'nordpeis_calculator_pdf')), array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::pdfAction',));
  164.             }
  165.             not_nordpeis_calculator_pdf:
  166.             // nordpeis_calculator_put_order
  167.             if ('/put-order' === $pathinfo) {
  168.                 if ('PUT' !== $canonicalMethod) {
  169.                     $allow[] = 'PUT';
  170.                     goto not_nordpeis_calculator_put_order;
  171.                 }
  172.                 return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::putOrderAction',  '_route' => 'nordpeis_calculator_put_order',);
  173.             }
  174.             not_nordpeis_calculator_put_order:
  175.         }
  176.         // nordpeis_calculator_cover_plate
  177.         if ('/coverplate' === $pathinfo) {
  178.             if ('GET' !== $canonicalMethod) {
  179.                 $allow[] = 'GET';
  180.                 goto not_nordpeis_calculator_cover_plate;
  181.             }
  182.             return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::coverPlateAction',  '_route' => 'nordpeis_calculator_cover_plate',);
  183.         }
  184.         not_nordpeis_calculator_cover_plate:
  185.         // nordpeis_calculator_horizontal_select
  186.         if ('/horizontalselect' === $pathinfo) {
  187.             if ('GET' !== $canonicalMethod) {
  188.                 $allow[] = 'GET';
  189.                 goto not_nordpeis_calculator_horizontal_select;
  190.             }
  191.             return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::horizontalSelectAction',  '_route' => 'nordpeis_calculator_horizontal_select',);
  192.         }
  193.         not_nordpeis_calculator_horizontal_select:
  194.         // nordpeis_calculator_angle_select
  195.         if ('/angleselect' === $pathinfo) {
  196.             if ('GET' !== $canonicalMethod) {
  197.                 $allow[] = 'GET';
  198.                 goto not_nordpeis_calculator_angle_select;
  199.             }
  200.             return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::angleSelectAction',  '_route' => 'nordpeis_calculator_angle_select',);
  201.         }
  202.         not_nordpeis_calculator_angle_select:
  203.         // nordpeis_calculator_add
  204.         if ('/add' === $pathinfo) {
  205.             if ('POST' !== $canonicalMethod) {
  206.                 $allow[] = 'POST';
  207.                 goto not_nordpeis_calculator_add;
  208.             }
  209.             return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::addAction',  '_route' => 'nordpeis_calculator_add',);
  210.         }
  211.         not_nordpeis_calculator_add:
  212.         // nordpeis_calculator_image_url
  213.         if ('/imageUrl' === $pathinfo) {
  214.             if ('GET' !== $canonicalMethod) {
  215.                 $allow[] = 'GET';
  216.                 goto not_nordpeis_calculator_image_url;
  217.             }
  218.             return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::imageUrlAction',  '_route' => 'nordpeis_calculator_image_url',);
  219.         }
  220.         not_nordpeis_calculator_image_url:
  221.         // nordpeis_calculator_export
  222.         if (=== strpos($pathinfo'/export') && preg_match('#^/export/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  223.             if ('GET' !== $canonicalMethod) {
  224.                 $allow[] = 'GET';
  225.                 goto not_nordpeis_calculator_export;
  226.             }
  227.             return $this->mergeDefaults(array_replace($matches, array('_route' => 'nordpeis_calculator_export')), array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::exportAction',));
  228.         }
  229.         not_nordpeis_calculator_export:
  230.         // nordpeis_calculator_draw
  231.         if (=== strpos($pathinfo'/draw') && preg_match('#^/draw/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  232.             if ('GET' !== $canonicalMethod) {
  233.                 $allow[] = 'GET';
  234.                 goto not_nordpeis_calculator_draw;
  235.             }
  236.             return $this->mergeDefaults(array_replace($matches, array('_route' => 'nordpeis_calculator_draw')), array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::drawAction',));
  237.         }
  238.         not_nordpeis_calculator_draw:
  239.         // nordpeis_calculator_order
  240.         if ('/order' === $pathinfo) {
  241.             if ('POST' !== $canonicalMethod) {
  242.                 $allow[] = 'POST';
  243.                 goto not_nordpeis_calculator_order;
  244.             }
  245.             return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::orderAction',  '_route' => 'nordpeis_calculator_order',);
  246.         }
  247.         not_nordpeis_calculator_order:
  248.         if (=== strpos($pathinfo'/reseller')) {
  249.             // nordpeis_calculator_reseller
  250.             if ('/reseller' === $pathinfo) {
  251.                 if ('POST' !== $canonicalMethod) {
  252.                     $allow[] = 'POST';
  253.                     goto not_nordpeis_calculator_reseller;
  254.                 }
  255.                 return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::resellerAction',  '_route' => 'nordpeis_calculator_reseller',);
  256.             }
  257.             not_nordpeis_calculator_reseller:
  258.             // nordpeis_calculator_receive_from_nordpeis
  259.             if ('/reseller' === $pathinfo) {
  260.                 if ('POST' !== $canonicalMethod) {
  261.                     $allow[] = 'POST';
  262.                     goto not_nordpeis_calculator_receive_from_nordpeis;
  263.                 }
  264.                 return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::resellerAction',  '_route' => 'nordpeis_calculator_receive_from_nordpeis',);
  265.             }
  266.             not_nordpeis_calculator_receive_from_nordpeis:
  267.         }
  268.         // nordpeis_sendcalculation
  269.         if ('/nordpeis/sendcalculation' === $pathinfo) {
  270.             return array (  '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\NordpeisController::indexAction',  '_route' => 'nordpeis_sendcalculation',);
  271.         }
  272.         // homepage
  273.         if ('' === $trimmedPathinfo) {
  274.             if (substr($pathinfo, -1) !== '/') {
  275.                 return $this->redirect($rawPathinfo.'/''homepage');
  276.             }
  277.             return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction',  '_route' => 'homepage',);
  278.         }
  279.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  280.     }
  281. }