var/cache/dev/srcDevDebugProjectContainerUrlMatcher.php line 987

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 srcDevDebugProjectContainerUrlMatcher 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 = [];
  18.         $pathinfo rawurldecode($rawPathinfo);
  19.         $trimmedPathinfo rtrim($pathinfo'/');
  20.         $context $this->context;
  21.         $request $this->request ?: $this->createRequest($pathinfo);
  22.         $requestMethod $canonicalMethod $context->getMethod();
  23.         if ('HEAD' === $requestMethod) {
  24.             $canonicalMethod 'GET';
  25.         }
  26.         if (=== strpos($pathinfo'/_')) {
  27.             // _twig_error_test
  28.             if (=== strpos($pathinfo'/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  29.                 return $this->mergeDefaults(array_replace($matches, ['_route' => '_twig_error_test']), array (  '_controller' => 'twig.controller.preview_error:previewErrorPageAction',  '_format' => 'html',));
  30.             }
  31.             // _wdt
  32.             if (=== strpos($pathinfo'/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  33.                 return $this->mergeDefaults(array_replace($matches, ['_route' => '_wdt']), array (  '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
  34.             }
  35.             if (=== strpos($pathinfo'/_profiler')) {
  36.                 // _profiler_home
  37.                 if ('/_profiler' === $trimmedPathinfo) {
  38.                     $ret = array (  '_controller' => 'web_profiler.controller.profiler:homeAction',  '_route' => '_profiler_home',);
  39.                     if ('/' === substr($pathinfo, -1)) {
  40.                         // no-op
  41.                     } elseif ('GET' !== $canonicalMethod) {
  42.                         goto not__profiler_home;
  43.                     } else {
  44.                         return array_replace($ret$this->redirect($rawPathinfo.'/''_profiler_home'));
  45.                     }
  46.                     return $ret;
  47.                 }
  48.                 not__profiler_home:
  49.                 if (=== strpos($pathinfo'/_profiler/search')) {
  50.                     // _profiler_search
  51.                     if ('/_profiler/search' === $pathinfo) {
  52.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchAction',  '_route' => '_profiler_search',);
  53.                     }
  54.                     // _profiler_search_bar
  55.                     if ('/_profiler/search_bar' === $pathinfo) {
  56.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchBarAction',  '_route' => '_profiler_search_bar',);
  57.                     }
  58.                 }
  59.                 // _profiler_phpinfo
  60.                 if ('/_profiler/phpinfo' === $pathinfo) {
  61.                     return array (  '_controller' => 'web_profiler.controller.profiler:phpinfoAction',  '_route' => '_profiler_phpinfo',);
  62.                 }
  63.                 // _profiler_search_results
  64.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#sD'$pathinfo$matches)) {
  65.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_search_results']), array (  '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
  66.                 }
  67.                 // _profiler_open_file
  68.                 if ('/_profiler/open' === $pathinfo) {
  69.                     return array (  '_controller' => 'web_profiler.controller.profiler:openAction',  '_route' => '_profiler_open_file',);
  70.                 }
  71.                 // _profiler
  72.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  73.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler']), array (  '_controller' => 'web_profiler.controller.profiler:panelAction',));
  74.                 }
  75.                 // _profiler_router
  76.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#sD'$pathinfo$matches)) {
  77.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_router']), array (  '_controller' => 'web_profiler.controller.router:panelAction',));
  78.                 }
  79.                 // _profiler_exception
  80.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#sD'$pathinfo$matches)) {
  81.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_exception']), array (  '_controller' => 'web_profiler.controller.exception:showAction',));
  82.                 }
  83.                 // _profiler_exception_css
  84.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#sD'$pathinfo$matches)) {
  85.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_exception_css']), array (  '_controller' => 'web_profiler.controller.exception:cssAction',));
  86.                 }
  87.             }
  88.         }
  89.         elseif (=== strpos($pathinfo'/category')) {
  90.             // category_index
  91.             if ('/category' === $trimmedPathinfo) {
  92.                 $ret = array (  '_controller' => 'App\\Controller\\CategoryController::index',  '_route' => 'category_index',);
  93.                 if ('/' === substr($pathinfo, -1)) {
  94.                     // no-op
  95.                 } elseif ('GET' !== $canonicalMethod) {
  96.                     goto not_category_index;
  97.                 } else {
  98.                     return array_replace($ret$this->redirect($rawPathinfo.'/''category_index'));
  99.                 }
  100.                 if (!in_array($canonicalMethod, ['GET'])) {
  101.                     $allow array_merge($allow, ['GET']);
  102.                     goto not_category_index;
  103.                 }
  104.                 return $ret;
  105.             }
  106.             not_category_index:
  107.             // category_new
  108.             if ('/category/new' === $pathinfo) {
  109.                 $ret = array (  '_controller' => 'App\\Controller\\CategoryController::new',  '_route' => 'category_new',);
  110.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  111.                     $allow array_merge($allow, ['GET''POST']);
  112.                     goto not_category_new;
  113.                 }
  114.                 return $ret;
  115.             }
  116.             not_category_new:
  117.             // category_show
  118.             if (preg_match('#^/category/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  119.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'category_show']), array (  '_controller' => 'App\\Controller\\CategoryController::show',));
  120.                 if (!in_array($canonicalMethod, ['GET'])) {
  121.                     $allow array_merge($allow, ['GET']);
  122.                     goto not_category_show;
  123.                 }
  124.                 return $ret;
  125.             }
  126.             not_category_show:
  127.             // category_edit
  128.             if (preg_match('#^/category/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  129.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'category_edit']), array (  '_controller' => 'App\\Controller\\CategoryController::edit',));
  130.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  131.                     $allow array_merge($allow, ['GET''POST']);
  132.                     goto not_category_edit;
  133.                 }
  134.                 return $ret;
  135.             }
  136.             not_category_edit:
  137.             // category_delete
  138.             if (preg_match('#^/category/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  139.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'category_delete']), array (  '_controller' => 'App\\Controller\\CategoryController::delete',));
  140.                 if (!in_array($requestMethod, ['DELETE'])) {
  141.                     $allow array_merge($allow, ['DELETE']);
  142.                     goto not_category_delete;
  143.                 }
  144.                 return $ret;
  145.             }
  146.             not_category_delete:
  147.         }
  148.         // index
  149.         if ('' === $trimmedPathinfo) {
  150.             $ret = array (  '_controller' => 'App\\Controller\\IndexController::indexAction',  '_route' => 'index',);
  151.             if ('/' === substr($pathinfo, -1)) {
  152.                 // no-op
  153.             } elseif ('GET' !== $canonicalMethod) {
  154.                 goto not_index;
  155.             } else {
  156.                 return array_replace($ret$this->redirect($rawPathinfo.'/''index'));
  157.             }
  158.             return $ret;
  159.         }
  160.         not_index:
  161.         if (=== strpos($pathinfo'/product')) {
  162.             // product_index
  163.             if ('/product' === $trimmedPathinfo) {
  164.                 $ret = array (  '_controller' => 'App\\Controller\\ProductController::index',  '_route' => 'product_index',);
  165.                 if ('/' === substr($pathinfo, -1)) {
  166.                     // no-op
  167.                 } elseif ('GET' !== $canonicalMethod) {
  168.                     goto not_product_index;
  169.                 } else {
  170.                     return array_replace($ret$this->redirect($rawPathinfo.'/''product_index'));
  171.                 }
  172.                 if (!in_array($canonicalMethod, ['GET'])) {
  173.                     $allow array_merge($allow, ['GET']);
  174.                     goto not_product_index;
  175.                 }
  176.                 return $ret;
  177.             }
  178.             not_product_index:
  179.             // fillCategories
  180.             if ('/product/fill-categories' === $trimmedPathinfo) {
  181.                 $ret = array (  '_controller' => 'App\\Controller\\ProductController::fillCategories',  '_route' => 'fillCategories',);
  182.                 if ('/' === substr($pathinfo, -1)) {
  183.                     // no-op
  184.                 } elseif ('GET' !== $canonicalMethod) {
  185.                     goto not_fillCategories;
  186.                 } else {
  187.                     return array_replace($ret$this->redirect($rawPathinfo.'/''fillCategories'));
  188.                 }
  189.                 if (!in_array($canonicalMethod, ['GET'])) {
  190.                     $allow array_merge($allow, ['GET']);
  191.                     goto not_fillCategories;
  192.                 }
  193.                 return $ret;
  194.             }
  195.             not_fillCategories:
  196.             // product_new
  197.             if ('/product/new' === $pathinfo) {
  198.                 $ret = array (  '_controller' => 'App\\Controller\\ProductController::new',  '_route' => 'product_new',);
  199.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  200.                     $allow array_merge($allow, ['GET''POST']);
  201.                     goto not_product_new;
  202.                 }
  203.                 return $ret;
  204.             }
  205.             not_product_new:
  206.             // product_show
  207.             if (preg_match('#^/product/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  208.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'product_show']), array (  '_controller' => 'App\\Controller\\ProductController::show',));
  209.                 if (!in_array($canonicalMethod, ['GET'])) {
  210.                     $allow array_merge($allow, ['GET']);
  211.                     goto not_product_show;
  212.                 }
  213.                 return $ret;
  214.             }
  215.             not_product_show:
  216.             // product_edit
  217.             if (preg_match('#^/product/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  218.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'product_edit']), array (  '_controller' => 'App\\Controller\\ProductController::edit',));
  219.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  220.                     $allow array_merge($allow, ['GET''POST']);
  221.                     goto not_product_edit;
  222.                 }
  223.                 return $ret;
  224.             }
  225.             not_product_edit:
  226.             // product_delete
  227.             if (preg_match('#^/product/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  228.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'product_delete']), array (  '_controller' => 'App\\Controller\\ProductController::delete',));
  229.                 if (!in_array($requestMethod, ['DELETE'])) {
  230.                     $allow array_merge($allow, ['DELETE']);
  231.                     goto not_product_delete;
  232.                 }
  233.                 return $ret;
  234.             }
  235.             not_product_delete:
  236.             if (=== strpos($pathinfo'/product/d')) {
  237.                 // downloadBatiments
  238.                 if (=== strpos($pathinfo'/product/download-batiments') && preg_match('#^/product/download\\-batiments/(?P<product_id>[^/]++)$#sD'$pathinfo$matches)) {
  239.                     $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'downloadBatiments']), array (  '_controller' => 'App\\Controller\\ProductController::downloadBatiments',));
  240.                     if (!in_array($canonicalMethod, ['GET'])) {
  241.                         $allow array_merge($allow, ['GET']);
  242.                         goto not_downloadBatiments;
  243.                     }
  244.                     return $ret;
  245.                 }
  246.                 not_downloadBatiments:
  247.                 // downloadImages
  248.                 if (=== strpos($pathinfo'/product/download-images') && preg_match('#^/product/download\\-images/(?P<product_id>[^/]++)$#sD'$pathinfo$matches)) {
  249.                     $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'downloadImages']), array (  '_controller' => 'App\\Controller\\ProductController::downloadImages',));
  250.                     if (!in_array($canonicalMethod, ['GET'])) {
  251.                         $allow array_merge($allow, ['GET']);
  252.                         goto not_downloadImages;
  253.                     }
  254.                     return $ret;
  255.                 }
  256.                 not_downloadImages:
  257.                 if (=== strpos($pathinfo'/product/delete-')) {
  258.                     // delete-image-operation
  259.                     if ('/product/delete-image-operation' === $pathinfo) {
  260.                         $ret = array (  '_controller' => 'App\\Controller\\ProductController::delete_image_operation',  '_route' => 'delete-image-operation',);
  261.                         if (!in_array($requestMethod, ['POST'])) {
  262.                             $allow array_merge($allow, ['POST']);
  263.                             goto not_deleteimageoperation;
  264.                         }
  265.                         return $ret;
  266.                     }
  267.                     not_deleteimageoperation:
  268.                     // delete-image-session
  269.                     if ('/product/delete-image-session' === $pathinfo) {
  270.                         $ret = array (  '_controller' => 'App\\Controller\\ProductController::delete_image_session',  '_route' => 'delete-image-session',);
  271.                         if (!in_array($requestMethod, ['POST'])) {
  272.                             $allow array_merge($allow, ['POST']);
  273.                             goto not_deleteimagesession;
  274.                         }
  275.                         return $ret;
  276.                     }
  277.                     not_deleteimagesession:
  278.                     // delete-main-image
  279.                     if ('/product/delete-main-image' === $pathinfo) {
  280.                         $ret = array (  '_controller' => 'App\\Controller\\ProductController::delete_main_image',  '_route' => 'delete-main-image',);
  281.                         if (!in_array($requestMethod, ['POST'])) {
  282.                             $allow array_merge($allow, ['POST']);
  283.                             goto not_deletemainimage;
  284.                         }
  285.                         return $ret;
  286.                     }
  287.                     not_deletemainimage:
  288.                 }
  289.             }
  290.             // upload-main-image
  291.             if ('/product/upload-main-image' === $pathinfo) {
  292.                 $ret = array (  '_controller' => 'App\\Controller\\ProductController::upload_main_image',  '_route' => 'upload-main-image',);
  293.                 if (!in_array($requestMethod, ['POST'])) {
  294.                     $allow array_merge($allow, ['POST']);
  295.                     goto not_uploadmainimage;
  296.                 }
  297.                 return $ret;
  298.             }
  299.             not_uploadmainimage:
  300.             // upload-image-product
  301.             if ('/product/upload-image-product' === $pathinfo) {
  302.                 $ret = array (  '_controller' => 'App\\Controller\\ProductController::upload_image_product',  '_route' => 'upload-image-product',);
  303.                 if (!in_array($requestMethod, ['POST'])) {
  304.                     $allow array_merge($allow, ['POST']);
  305.                     goto not_uploadimageproduct;
  306.                 }
  307.                 return $ret;
  308.             }
  309.             not_uploadimageproduct:
  310.             // show-main-image
  311.             if ('/product/show-main-image' === $pathinfo) {
  312.                 $ret = array (  '_controller' => 'App\\Controller\\ProductController::show_main_image',  '_route' => 'show-main-image',);
  313.                 if (!in_array($requestMethod, ['POST'])) {
  314.                     $allow array_merge($allow, ['POST']);
  315.                     goto not_showmainimage;
  316.                 }
  317.                 return $ret;
  318.             }
  319.             not_showmainimage:
  320.             if (=== strpos($pathinfo'/product/show-images')) {
  321.                 // show-images
  322.                 if ('/product/show-images' === $pathinfo) {
  323.                     $ret = array (  '_controller' => 'App\\Controller\\ProductController::show_images',  '_route' => 'show-images',);
  324.                     if (!in_array($requestMethod, ['POST'])) {
  325.                         $allow array_merge($allow, ['POST']);
  326.                         goto not_showimages;
  327.                     }
  328.                     return $ret;
  329.                 }
  330.                 not_showimages:
  331.                 // show-images-session
  332.                 if ('/product/show-images-session' === $pathinfo) {
  333.                     $ret = array (  '_controller' => 'App\\Controller\\ProductController::show_images_session',  '_route' => 'show-images-session',);
  334.                     if (!in_array($requestMethod, ['POST'])) {
  335.                         $allow array_merge($allow, ['POST']);
  336.                         goto not_showimagessession;
  337.                     }
  338.                     return $ret;
  339.                 }
  340.                 not_showimagessession:
  341.             }
  342.             // batiments-name-change
  343.             if ('/product/batiments-name-change' === $pathinfo) {
  344.                 $ret = array (  '_controller' => 'App\\Controller\\ProductController::batiments_names_change',  '_route' => 'batiments-name-change',);
  345.                 if (!in_array($requestMethod, ['POST'])) {
  346.                     $allow array_merge($allow, ['POST']);
  347.                     goto not_batimentsnamechange;
  348.                 }
  349.                 return $ret;
  350.             }
  351.             not_batimentsnamechange:
  352.         }
  353.         elseif (=== strpos($pathinfo'/profile')) {
  354.             // fos_user_profile_show
  355.             if ('/profile' === $trimmedPathinfo) {
  356.                 $ret = array (  '_controller' => 'fos_user.profile.controller:showAction',  '_route' => 'fos_user_profile_show',);
  357.                 if ('/' === substr($pathinfo, -1)) {
  358.                     // no-op
  359.                 } elseif ('GET' !== $canonicalMethod) {
  360.                     goto not_fos_user_profile_show;
  361.                 } else {
  362.                     return array_replace($ret$this->redirect($rawPathinfo.'/''fos_user_profile_show'));
  363.                 }
  364.                 if (!in_array($canonicalMethod, ['GET'])) {
  365.                     $allow array_merge($allow, ['GET']);
  366.                     goto not_fos_user_profile_show;
  367.                 }
  368.                 return $ret;
  369.             }
  370.             not_fos_user_profile_show:
  371.             // fos_user_profile_edit
  372.             if ('/profile/edit' === $pathinfo) {
  373.                 $ret = array (  '_controller' => 'fos_user.profile.controller:editAction',  '_route' => 'fos_user_profile_edit',);
  374.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  375.                     $allow array_merge($allow, ['GET''POST']);
  376.                     goto not_fos_user_profile_edit;
  377.                 }
  378.                 return $ret;
  379.             }
  380.             not_fos_user_profile_edit:
  381.             // fos_user_change_password
  382.             if ('/profile/change-password' === $pathinfo) {
  383.                 $ret = array (  '_controller' => 'fos_user.change_password.controller:changePasswordAction',  '_route' => 'fos_user_change_password',);
  384.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  385.                     $allow array_merge($allow, ['GET''POST']);
  386.                     goto not_fos_user_change_password;
  387.                 }
  388.                 return $ret;
  389.             }
  390.             not_fos_user_change_password:
  391.         }
  392.         elseif (=== strpos($pathinfo'/re')) {
  393.             if (=== strpos($pathinfo'/report')) {
  394.                 // report_index
  395.                 if ('/report' === $trimmedPathinfo) {
  396.                     $ret = array (  '_controller' => 'App\\Controller\\ReportController::index',  '_route' => 'report_index',);
  397.                     if ('/' === substr($pathinfo, -1)) {
  398.                         // no-op
  399.                     } elseif ('GET' !== $canonicalMethod) {
  400.                         goto not_report_index;
  401.                     } else {
  402.                         return array_replace($ret$this->redirect($rawPathinfo.'/''report_index'));
  403.                     }
  404.                     if (!in_array($canonicalMethod, ['GET'])) {
  405.                         $allow array_merge($allow, ['GET']);
  406.                         goto not_report_index;
  407.                     }
  408.                     return $ret;
  409.                 }
  410.                 not_report_index:
  411.                 // report_csv
  412.                 if ('/report/csv' === $pathinfo) {
  413.                     $ret = array (  '_controller' => 'App\\Controller\\ReportController::csv',  '_route' => 'report_csv',);
  414.                     if (!in_array($canonicalMethod, ['GET'])) {
  415.                         $allow array_merge($allow, ['GET']);
  416.                         goto not_report_csv;
  417.                     }
  418.                     return $ret;
  419.                 }
  420.                 not_report_csv:
  421.                 // report_new
  422.                 if (=== strpos($pathinfo'/report/new') && preg_match('#^/report/new(?:/(?P<id>[^/]++))?$#sD'$pathinfo$matches)) {
  423.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'report_new']), array (  'id' => NULL,  '_controller' => 'App\\Controller\\ReportController::report',));
  424.                 }
  425.                 // fill-products
  426.                 if ('/report/fill-products' === $pathinfo) {
  427.                     $ret = array (  '_controller' => 'App\\Controller\\ReportController::getProductsSelect',  '_route' => 'fill-products',);
  428.                     if (!in_array($requestMethod, ['POST'])) {
  429.                         $allow array_merge($allow, ['POST']);
  430.                         goto not_fillproducts;
  431.                     }
  432.                     return $ret;
  433.                 }
  434.                 not_fillproducts:
  435.                 // app_webservice_report
  436.                 if ('/report' === $pathinfo) {
  437.                     $ret = array (  '_format' => 'json',  '_controller' => 'App\\Controller\\WebserviceController::reportAction',  '_route' => 'app_webservice_report',);
  438.                     if (!in_array($requestMethod, ['POST'])) {
  439.                         $allow array_merge($allow, ['POST']);
  440.                         goto not_app_webservice_report;
  441.                     }
  442.                     return $ret;
  443.                 }
  444.                 not_app_webservice_report:
  445.             }
  446.             // app_webservice_refresh
  447.             if ('/refresh' === $pathinfo) {
  448.                 $ret = array (  '_format' => 'json',  '_controller' => 'App\\Controller\\WebserviceController::refreshAction',  '_route' => 'app_webservice_refresh',);
  449.                 if (!in_array($requestMethod, ['POST'])) {
  450.                     $allow array_merge($allow, ['POST']);
  451.                     goto not_app_webservice_refresh;
  452.                 }
  453.                 return $ret;
  454.             }
  455.             not_app_webservice_refresh:
  456.             if (=== strpos($pathinfo'/register')) {
  457.                 // fos_user_registration_register
  458.                 if ('/register' === $trimmedPathinfo) {
  459.                     $ret = array (  '_controller' => 'fos_user.registration.controller:registerAction',  '_route' => 'fos_user_registration_register',);
  460.                     if ('/' === substr($pathinfo, -1)) {
  461.                         // no-op
  462.                     } elseif ('GET' !== $canonicalMethod) {
  463.                         goto not_fos_user_registration_register;
  464.                     } else {
  465.                         return array_replace($ret$this->redirect($rawPathinfo.'/''fos_user_registration_register'));
  466.                     }
  467.                     if (!in_array($canonicalMethod, ['GET''POST'])) {
  468.                         $allow array_merge($allow, ['GET''POST']);
  469.                         goto not_fos_user_registration_register;
  470.                     }
  471.                     return $ret;
  472.                 }
  473.                 not_fos_user_registration_register:
  474.                 // fos_user_registration_check_email
  475.                 if ('/register/check-email' === $pathinfo) {
  476.                     $ret = array (  '_controller' => 'fos_user.registration.controller:checkEmailAction',  '_route' => 'fos_user_registration_check_email',);
  477.                     if (!in_array($canonicalMethod, ['GET'])) {
  478.                         $allow array_merge($allow, ['GET']);
  479.                         goto not_fos_user_registration_check_email;
  480.                     }
  481.                     return $ret;
  482.                 }
  483.                 not_fos_user_registration_check_email:
  484.                 if (=== strpos($pathinfo'/register/confirm')) {
  485.                     // fos_user_registration_confirm
  486.                     if (preg_match('#^/register/confirm/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  487.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'fos_user_registration_confirm']), array (  '_controller' => 'fos_user.registration.controller:confirmAction',));
  488.                         if (!in_array($canonicalMethod, ['GET'])) {
  489.                             $allow array_merge($allow, ['GET']);
  490.                             goto not_fos_user_registration_confirm;
  491.                         }
  492.                         return $ret;
  493.                     }
  494.                     not_fos_user_registration_confirm:
  495.                     // fos_user_registration_confirmed
  496.                     if ('/register/confirmed' === $pathinfo) {
  497.                         $ret = array (  '_controller' => 'fos_user.registration.controller:confirmedAction',  '_route' => 'fos_user_registration_confirmed',);
  498.                         if (!in_array($canonicalMethod, ['GET'])) {
  499.                             $allow array_merge($allow, ['GET']);
  500.                             goto not_fos_user_registration_confirmed;
  501.                         }
  502.                         return $ret;
  503.                     }
  504.                     not_fos_user_registration_confirmed:
  505.                 }
  506.             }
  507.             elseif (=== strpos($pathinfo'/resetting')) {
  508.                 // fos_user_resetting_request
  509.                 if ('/resetting/request' === $pathinfo) {
  510.                     $ret = array (  '_controller' => 'fos_user.resetting.controller:requestAction',  '_route' => 'fos_user_resetting_request',);
  511.                     if (!in_array($canonicalMethod, ['GET'])) {
  512.                         $allow array_merge($allow, ['GET']);
  513.                         goto not_fos_user_resetting_request;
  514.                     }
  515.                     return $ret;
  516.                 }
  517.                 not_fos_user_resetting_request:
  518.                 // fos_user_resetting_reset
  519.                 if (=== strpos($pathinfo'/resetting/reset') && preg_match('#^/resetting/reset/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  520.                     $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'fos_user_resetting_reset']), array (  '_controller' => 'fos_user.resetting.controller:resetAction',));
  521.                     if (!in_array($canonicalMethod, ['GET''POST'])) {
  522.                         $allow array_merge($allow, ['GET''POST']);
  523.                         goto not_fos_user_resetting_reset;
  524.                     }
  525.                     return $ret;
  526.                 }
  527.                 not_fos_user_resetting_reset:
  528.                 // fos_user_resetting_send_email
  529.                 if ('/resetting/send-email' === $pathinfo) {
  530.                     $ret = array (  '_controller' => 'fos_user.resetting.controller:sendEmailAction',  '_route' => 'fos_user_resetting_send_email',);
  531.                     if (!in_array($requestMethod, ['POST'])) {
  532.                         $allow array_merge($allow, ['POST']);
  533.                         goto not_fos_user_resetting_send_email;
  534.                     }
  535.                     return $ret;
  536.                 }
  537.                 not_fos_user_resetting_send_email:
  538.                 // fos_user_resetting_check_email
  539.                 if ('/resetting/check-email' === $pathinfo) {
  540.                     $ret = array (  '_controller' => 'fos_user.resetting.controller:checkEmailAction',  '_route' => 'fos_user_resetting_check_email',);
  541.                     if (!in_array($canonicalMethod, ['GET'])) {
  542.                         $allow array_merge($allow, ['GET']);
  543.                         goto not_fos_user_resetting_check_email;
  544.                     }
  545.                     return $ret;
  546.                 }
  547.                 not_fos_user_resetting_check_email:
  548.             }
  549.         }
  550.         elseif (=== strpos($pathinfo'/slider')) {
  551.             // slider_index
  552.             if ('/slider' === $trimmedPathinfo) {
  553.                 $ret = array (  '_controller' => 'App\\Controller\\SliderController::index',  '_route' => 'slider_index',);
  554.                 if ('/' === substr($pathinfo, -1)) {
  555.                     // no-op
  556.                 } elseif ('GET' !== $canonicalMethod) {
  557.                     goto not_slider_index;
  558.                 } else {
  559.                     return array_replace($ret$this->redirect($rawPathinfo.'/''slider_index'));
  560.                 }
  561.                 if (!in_array($canonicalMethod, ['GET'])) {
  562.                     $allow array_merge($allow, ['GET']);
  563.                     goto not_slider_index;
  564.                 }
  565.                 return $ret;
  566.             }
  567.             not_slider_index:
  568.             // slider_new
  569.             if ('/slider/new' === $pathinfo) {
  570.                 $ret = array (  '_controller' => 'App\\Controller\\SliderController::new',  '_route' => 'slider_new',);
  571.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  572.                     $allow array_merge($allow, ['GET''POST']);
  573.                     goto not_slider_new;
  574.                 }
  575.                 return $ret;
  576.             }
  577.             not_slider_new:
  578.             // slider_show
  579.             if (preg_match('#^/slider/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  580.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'slider_show']), array (  '_controller' => 'App\\Controller\\SliderController::show',));
  581.                 if (!in_array($canonicalMethod, ['GET'])) {
  582.                     $allow array_merge($allow, ['GET']);
  583.                     goto not_slider_show;
  584.                 }
  585.                 return $ret;
  586.             }
  587.             not_slider_show:
  588.             // slider_edit
  589.             if (preg_match('#^/slider/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  590.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'slider_edit']), array (  '_controller' => 'App\\Controller\\SliderController::edit',));
  591.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  592.                     $allow array_merge($allow, ['GET''POST']);
  593.                     goto not_slider_edit;
  594.                 }
  595.                 return $ret;
  596.             }
  597.             not_slider_edit:
  598.             // slider_delete
  599.             if (preg_match('#^/slider/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  600.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'slider_delete']), array (  '_controller' => 'App\\Controller\\SliderController::delete',));
  601.                 if (!in_array($requestMethod, ['DELETE'])) {
  602.                     $allow array_merge($allow, ['DELETE']);
  603.                     goto not_slider_delete;
  604.                 }
  605.                 return $ret;
  606.             }
  607.             not_slider_delete:
  608.             // slider_sort
  609.             if ('/slider/sort' === $pathinfo) {
  610.                 $ret = array (  '_controller' => 'App\\Controller\\SliderController::sort',  '_route' => 'slider_sort',);
  611.                 if (!in_array($requestMethod, ['POST'])) {
  612.                     $allow array_merge($allow, ['POST']);
  613.                     goto not_slider_sort;
  614.                 }
  615.                 return $ret;
  616.             }
  617.             not_slider_sort:
  618.         }
  619.         elseif (=== strpos($pathinfo'/user')) {
  620.             // user_index
  621.             if ('/user' === $trimmedPathinfo) {
  622.                 $ret = array (  '_controller' => 'App\\Controller\\UserController::index',  '_route' => 'user_index',);
  623.                 if ('/' === substr($pathinfo, -1)) {
  624.                     // no-op
  625.                 } elseif ('GET' !== $canonicalMethod) {
  626.                     goto not_user_index;
  627.                 } else {
  628.                     return array_replace($ret$this->redirect($rawPathinfo.'/''user_index'));
  629.                 }
  630.                 if (!in_array($canonicalMethod, ['GET'])) {
  631.                     $allow array_merge($allow, ['GET']);
  632.                     goto not_user_index;
  633.                 }
  634.                 return $ret;
  635.             }
  636.             not_user_index:
  637.             // user_new
  638.             if ('/user/new' === $pathinfo) {
  639.                 $ret = array (  '_controller' => 'App\\Controller\\UserController::new',  '_route' => 'user_new',);
  640.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  641.                     $allow array_merge($allow, ['GET''POST']);
  642.                     goto not_user_new;
  643.                 }
  644.                 return $ret;
  645.             }
  646.             not_user_new:
  647.             // user_import
  648.             if ('/user/import' === $pathinfo) {
  649.                 $ret = array (  '_controller' => 'App\\Controller\\UserController::import',  '_route' => 'user_import',);
  650.                 if (!in_array($canonicalMethod, ['GET'])) {
  651.                     $allow array_merge($allow, ['GET']);
  652.                     goto not_user_import;
  653.                 }
  654.                 return $ret;
  655.             }
  656.             not_user_import:
  657.             // user_show
  658.             if (preg_match('#^/user/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  659.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'user_show']), array (  '_controller' => 'App\\Controller\\UserController::show',));
  660.                 if (!in_array($canonicalMethod, ['GET'])) {
  661.                     $allow array_merge($allow, ['GET']);
  662.                     goto not_user_show;
  663.                 }
  664.                 return $ret;
  665.             }
  666.             not_user_show:
  667.             // user_edit
  668.             if (preg_match('#^/user/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  669.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'user_edit']), array (  '_controller' => 'App\\Controller\\UserController::edit',));
  670.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  671.                     $allow array_merge($allow, ['GET''POST']);
  672.                     goto not_user_edit;
  673.                 }
  674.                 return $ret;
  675.             }
  676.             not_user_edit:
  677.             // user_delete
  678.             if (preg_match('#^/user/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  679.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'user_delete']), array (  '_controller' => 'App\\Controller\\UserController::delete',));
  680.                 if (!in_array($requestMethod, ['DELETE'])) {
  681.                     $allow array_merge($allow, ['DELETE']);
  682.                     goto not_user_delete;
  683.                 }
  684.                 return $ret;
  685.             }
  686.             not_user_delete:
  687.         }
  688.         elseif (=== strpos($pathinfo'/login')) {
  689.             // app_webservice_login
  690.             if ('/login' === $pathinfo) {
  691.                 $ret = array (  '_format' => 'json',  '_controller' => 'App\\Controller\\WebserviceController::loginAction',  '_route' => 'app_webservice_login',);
  692.                 if (!in_array($requestMethod, ['POST'])) {
  693.                     $allow array_merge($allow, ['POST']);
  694.                     goto not_app_webservice_login;
  695.                 }
  696.                 return $ret;
  697.             }
  698.             not_app_webservice_login:
  699.             // fos_user_security_login
  700.             if ('/login' === $pathinfo) {
  701.                 $ret = array (  '_controller' => 'fos_user.security.controller:loginAction',  '_route' => 'fos_user_security_login',);
  702.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  703.                     $allow array_merge($allow, ['GET''POST']);
  704.                     goto not_fos_user_security_login;
  705.                 }
  706.                 return $ret;
  707.             }
  708.             not_fos_user_security_login:
  709.             // fos_user_security_check
  710.             if ('/login_check' === $pathinfo) {
  711.                 $ret = array (  '_controller' => 'fos_user.security.controller:checkAction',  '_route' => 'fos_user_security_check',);
  712.                 if (!in_array($requestMethod, ['POST'])) {
  713.                     $allow array_merge($allow, ['POST']);
  714.                     goto not_fos_user_security_check;
  715.                 }
  716.                 return $ret;
  717.             }
  718.             not_fos_user_security_check:
  719.         }
  720.         // fos_user_security_logout
  721.         if ('/logout' === $pathinfo) {
  722.             $ret = array (  '_controller' => 'fos_user.security.controller:logoutAction',  '_route' => 'fos_user_security_logout',);
  723.             if (!in_array($canonicalMethod, ['GET''POST'])) {
  724.                 $allow array_merge($allow, ['GET''POST']);
  725.                 goto not_fos_user_security_logout;
  726.             }
  727.             return $ret;
  728.         }
  729.         not_fos_user_security_logout:
  730.         // app_webservice_getdata
  731.         if ('/getdata' === $pathinfo) {
  732.             $ret = array (  '_format' => 'json',  '_controller' => 'App\\Controller\\WebserviceController::getdataAction',  '_route' => 'app_webservice_getdata',);
  733.             if (!in_array($canonicalMethod, ['GET'])) {
  734.                 $allow array_merge($allow, ['GET']);
  735.                 goto not_app_webservice_getdata;
  736.             }
  737.             return $ret;
  738.         }
  739.         not_app_webservice_getdata:
  740.         // nelmio_api_doc_index
  741.         if (=== strpos($pathinfo'/api/doc') && preg_match('#^/api/doc(?:/(?P<view>[^/]++))?$#sD'$pathinfo$matches)) {
  742.             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'nelmio_api_doc_index']), array (  '_controller' => 'Nelmio\\ApiDocBundle\\Controller\\ApiDocController::indexAction',  'view' => 'default',));
  743.             if (!in_array($canonicalMethod, ['GET'])) {
  744.                 $allow array_merge($allow, ['GET']);
  745.                 goto not_nelmio_api_doc_index;
  746.             }
  747.             return $ret;
  748.         }
  749.         not_nelmio_api_doc_index:
  750.         // fos_oauth_server_token
  751.         if ('/oauth/v2/token' === $pathinfo) {
  752.             $ret = array (  '_controller' => 'fos_oauth_server.controller.token:tokenAction',  '_route' => 'fos_oauth_server_token',);
  753.             if (!in_array($canonicalMethod, ['GET''POST'])) {
  754.                 $allow array_merge($allow, ['GET''POST']);
  755.                 goto not_fos_oauth_server_token;
  756.             }
  757.             return $ret;
  758.         }
  759.         not_fos_oauth_server_token:
  760.         // fos_oauth_server_authorize
  761.         if ('/oauth/v2/auth' === $pathinfo) {
  762.             $ret = array (  '_controller' => 'fos_oauth_server.controller.authorize:authorizeAction',  '_route' => 'fos_oauth_server_authorize',);
  763.             if (!in_array($canonicalMethod, ['GET''POST'])) {
  764.                 $allow array_merge($allow, ['GET''POST']);
  765.                 goto not_fos_oauth_server_authorize;
  766.             }
  767.             return $ret;
  768.         }
  769.         not_fos_oauth_server_authorize:
  770.         if (=== strpos($pathinfo'/ws')) {
  771.             // login
  772.             if (=== strpos($pathinfo'/ws/login') && preg_match('#^/ws/login(?:\\.(?P<_format>json|xml|html))?$#sD'$pathinfo$matches)) {
  773.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'login']), array (  '_controller' => 'App\\Controller\\WebserviceController:loginAction',  '_format' => 'json',));
  774.                 if (!in_array($requestMethod, ['POST'])) {
  775.                     $allow array_merge($allow, ['POST']);
  776.                     goto not_login;
  777.                 }
  778.                 return $ret;
  779.             }
  780.             not_login:
  781.             // refresh
  782.             if (=== strpos($pathinfo'/ws/refresh') && preg_match('#^/ws/refresh(?:\\.(?P<_format>json|xml|html))?$#sD'$pathinfo$matches)) {
  783.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'refresh']), array (  '_controller' => 'App\\Controller\\WebserviceController:refreshAction',  '_format' => 'json',));
  784.                 if (!in_array($requestMethod, ['POST'])) {
  785.                     $allow array_merge($allow, ['POST']);
  786.                     goto not_refresh;
  787.                 }
  788.                 return $ret;
  789.             }
  790.             not_refresh:
  791.             // report
  792.             if (=== strpos($pathinfo'/ws/report') && preg_match('#^/ws/report(?:\\.(?P<_format>json|xml|html))?$#sD'$pathinfo$matches)) {
  793.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'report']), array (  '_controller' => 'App\\Controller\\WebserviceController:reportAction',  '_format' => 'json',));
  794.                 if (!in_array($requestMethod, ['POST'])) {
  795.                     $allow array_merge($allow, ['POST']);
  796.                     goto not_report;
  797.                 }
  798.                 return $ret;
  799.             }
  800.             not_report:
  801.             // getdata
  802.             if (=== strpos($pathinfo'/ws/getdata') && preg_match('#^/ws/getdata(?:\\.(?P<_format>json|xml|html))?$#sD'$pathinfo$matches)) {
  803.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'getdata']), array (  '_controller' => 'App\\Controller\\WebserviceController:getdataAction',  '_format' => 'json',));
  804.                 if (!in_array($canonicalMethod, ['GET'])) {
  805.                     $allow array_merge($allow, ['GET']);
  806.                     goto not_getdata;
  807.                 }
  808.                 return $ret;
  809.             }
  810.             not_getdata:
  811.         }
  812.         if ('/' === $pathinfo && !$allow) {
  813.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  814.         }
  815.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  816.     }
  817. }