var/cache/dev/srcDevDebugProjectContainerUrlMatcher.php line 590

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 = 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.         // api_entrypoint
  28.         if (preg_match('#^/(?P<index>index)?(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  29.             return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_entrypoint')), array (  '_controller' => 'api_platform.action.entrypoint',  '_format' => '',  '_api_respond' => '1',  'index' => 'index',));
  30.         }
  31.         if (=== strpos($pathinfo'/d')) {
  32.             if (=== strpos($pathinfo'/doc')) {
  33.                 // api_doc
  34.                 if (=== strpos($pathinfo'/docs') && preg_match('#^/docs(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  35.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_doc')), array (  '_controller' => 'api_platform.action.documentation',  '_api_respond' => '1',  '_format' => '',));
  36.                 }
  37.                 // app_document_create
  38.                 if ('/document/create' === $pathinfo) {
  39.                     return array (  '_controller' => 'App\\Controller\\DocumentController::create',  '_route' => 'app_document_create',);
  40.                 }
  41.                 // nelmio_api_doc.swagger_ui
  42.                 if ('/doc' === $trimmedPathinfo) {
  43.                     if ('GET' !== $canonicalMethod) {
  44.                         $allow[] = 'GET';
  45.                         goto not_nelmio_api_docswagger_ui;
  46.                     }
  47.                     $ret = array (  '_controller' => 'nelmio_api_doc.controller.swagger_ui',  '_route' => 'nelmio_api_doc.swagger_ui',);
  48.                     if (substr($pathinfo, -1) !== '/') {
  49.                         return array_replace($ret$this->redirect($rawPathinfo.'/''nelmio_api_doc.swagger_ui'));
  50.                     }
  51.                     return $ret;
  52.                 }
  53.                 not_nelmio_api_docswagger_ui:
  54.                 // app.swagger
  55.                 if ('/doc.json' === $pathinfo) {
  56.                     if ('GET' !== $canonicalMethod) {
  57.                         $allow[] = 'GET';
  58.                         goto not_appswagger;
  59.                     }
  60.                     return array (  '_controller' => 'nelmio_api_doc.controller.swagger',  '_route' => 'app.swagger',);
  61.                 }
  62.                 not_appswagger:
  63.             }
  64.             // app_data_upload
  65.             if ('/data/upload' === $pathinfo) {
  66.                 return array (  '_controller' => 'App\\Controller\\DataController::upload',  '_route' => 'app_data_upload',);
  67.             }
  68.             // app_data_show
  69.             if (=== strpos($pathinfo'/data/show') && preg_match('#^/data/show/(?P<fileId>[^/]++)$#s'$pathinfo$matches)) {
  70.                 if ('GET' !== $canonicalMethod) {
  71.                     $allow[] = 'GET';
  72.                     goto not_app_data_show;
  73.                 }
  74.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_data_show')), array (  '_controller' => 'App\\Controller\\DataController::show',));
  75.             }
  76.             not_app_data_show:
  77.         }
  78.         // api_jsonld_context
  79.         if (=== strpos($pathinfo'/contexts') && preg_match('#^/contexts/(?P<shortName>.+)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  80.             return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_jsonld_context')), array (  '_controller' => 'api_platform.jsonld.action.context',  '_api_respond' => '1',  '_format' => 'jsonld',));
  81.         }
  82.         if (=== strpos($pathinfo'/product')) {
  83.             if (=== strpos($pathinfo'/productproperties')) {
  84.                 // api_productproperties_get_collection
  85.                 if (preg_match('#^/productproperties(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  86.                     if ('GET' !== $canonicalMethod) {
  87.                         $allow[] = 'GET';
  88.                         goto not_api_productproperties_get_collection;
  89.                     }
  90.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productproperties_get_collection')), array (  '_controller' => 'api_platform.action.get_collection',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Productproperty',  '_api_collection_operation_name' => 'get',));
  91.                 }
  92.                 not_api_productproperties_get_collection:
  93.                 // api_productproperties_post_collection
  94.                 if (preg_match('#^/productproperties(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  95.                     if ('POST' !== $canonicalMethod) {
  96.                         $allow[] = 'POST';
  97.                         goto not_api_productproperties_post_collection;
  98.                     }
  99.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productproperties_post_collection')), array (  '_controller' => 'api_platform.action.post_collection',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Productproperty',  '_api_collection_operation_name' => 'post',));
  100.                 }
  101.                 not_api_productproperties_post_collection:
  102.                 // api_productproperties_get_item
  103.                 if (preg_match('#^/productproperties/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  104.                     if ('GET' !== $canonicalMethod) {
  105.                         $allow[] = 'GET';
  106.                         goto not_api_productproperties_get_item;
  107.                     }
  108.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productproperties_get_item')), array (  '_controller' => 'api_platform.action.get_item',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Productproperty',  '_api_item_operation_name' => 'get',));
  109.                 }
  110.                 not_api_productproperties_get_item:
  111.                 // api_productproperties_put_item
  112.                 if (preg_match('#^/productproperties/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  113.                     if ('PUT' !== $canonicalMethod) {
  114.                         $allow[] = 'PUT';
  115.                         goto not_api_productproperties_put_item;
  116.                     }
  117.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productproperties_put_item')), array (  '_controller' => 'api_platform.action.put_item',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Productproperty',  '_api_item_operation_name' => 'put',));
  118.                 }
  119.                 not_api_productproperties_put_item:
  120.                 // api_productproperties_delete_item
  121.                 if (preg_match('#^/productproperties/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  122.                     if ('DELETE' !== $canonicalMethod) {
  123.                         $allow[] = 'DELETE';
  124.                         goto not_api_productproperties_delete_item;
  125.                     }
  126.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productproperties_delete_item')), array (  '_controller' => 'api_platform.action.delete_item',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Productproperty',  '_api_item_operation_name' => 'delete',));
  127.                 }
  128.                 not_api_productproperties_delete_item:
  129.             }
  130.             elseif (=== strpos($pathinfo'/productvendors')) {
  131.                 // api_productvendors_get_collection
  132.                 if (preg_match('#^/productvendors(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  133.                     if ('GET' !== $canonicalMethod) {
  134.                         $allow[] = 'GET';
  135.                         goto not_api_productvendors_get_collection;
  136.                     }
  137.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productvendors_get_collection')), array (  '_controller' => 'api_platform.action.get_collection',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Productvendor',  '_api_collection_operation_name' => 'get',));
  138.                 }
  139.                 not_api_productvendors_get_collection:
  140.                 // api_productvendors_post_collection
  141.                 if (preg_match('#^/productvendors(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  142.                     if ('POST' !== $canonicalMethod) {
  143.                         $allow[] = 'POST';
  144.                         goto not_api_productvendors_post_collection;
  145.                     }
  146.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productvendors_post_collection')), array (  '_controller' => 'api_platform.action.post_collection',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Productvendor',  '_api_collection_operation_name' => 'post',));
  147.                 }
  148.                 not_api_productvendors_post_collection:
  149.                 // api_productvendors_get_item
  150.                 if (preg_match('#^/productvendors/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  151.                     if ('GET' !== $canonicalMethod) {
  152.                         $allow[] = 'GET';
  153.                         goto not_api_productvendors_get_item;
  154.                     }
  155.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productvendors_get_item')), array (  '_controller' => 'api_platform.action.get_item',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Productvendor',  '_api_item_operation_name' => 'get',));
  156.                 }
  157.                 not_api_productvendors_get_item:
  158.                 // api_productvendors_put_item
  159.                 if (preg_match('#^/productvendors/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  160.                     if ('PUT' !== $canonicalMethod) {
  161.                         $allow[] = 'PUT';
  162.                         goto not_api_productvendors_put_item;
  163.                     }
  164.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productvendors_put_item')), array (  '_controller' => 'api_platform.action.put_item',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Productvendor',  '_api_item_operation_name' => 'put',));
  165.                 }
  166.                 not_api_productvendors_put_item:
  167.                 // api_productvendors_delete_item
  168.                 if (preg_match('#^/productvendors/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  169.                     if ('DELETE' !== $canonicalMethod) {
  170.                         $allow[] = 'DELETE';
  171.                         goto not_api_productvendors_delete_item;
  172.                     }
  173.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productvendors_delete_item')), array (  '_controller' => 'api_platform.action.delete_item',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Productvendor',  '_api_item_operation_name' => 'delete',));
  174.                 }
  175.                 not_api_productvendors_delete_item:
  176.             }
  177.             elseif (=== strpos($pathinfo'/products')) {
  178.                 // api_products_get_collection
  179.                 if (preg_match('#^/products(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  180.                     if ('GET' !== $canonicalMethod) {
  181.                         $allow[] = 'GET';
  182.                         goto not_api_products_get_collection;
  183.                     }
  184.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_products_get_collection')), array (  '_controller' => 'api_platform.action.get_collection',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Product',  '_api_collection_operation_name' => 'get',));
  185.                 }
  186.                 not_api_products_get_collection:
  187.                 // api_products_post_collection
  188.                 if (preg_match('#^/products(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  189.                     if ('POST' !== $canonicalMethod) {
  190.                         $allow[] = 'POST';
  191.                         goto not_api_products_post_collection;
  192.                     }
  193.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_products_post_collection')), array (  '_controller' => 'api_platform.action.post_collection',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Product',  '_api_collection_operation_name' => 'post',));
  194.                 }
  195.                 not_api_products_post_collection:
  196.                 // api_products_get_item
  197.                 if (preg_match('#^/products/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  198.                     if ('GET' !== $canonicalMethod) {
  199.                         $allow[] = 'GET';
  200.                         goto not_api_products_get_item;
  201.                     }
  202.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_products_get_item')), array (  '_controller' => 'api_platform.action.get_item',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Product',  '_api_item_operation_name' => 'get',));
  203.                 }
  204.                 not_api_products_get_item:
  205.                 // api_products_put_item
  206.                 if (preg_match('#^/products/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  207.                     if ('PUT' !== $canonicalMethod) {
  208.                         $allow[] = 'PUT';
  209.                         goto not_api_products_put_item;
  210.                     }
  211.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_products_put_item')), array (  '_controller' => 'api_platform.action.put_item',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Product',  '_api_item_operation_name' => 'put',));
  212.                 }
  213.                 not_api_products_put_item:
  214.                 // api_products_delete_item
  215.                 if (preg_match('#^/products/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  216.                     if ('DELETE' !== $canonicalMethod) {
  217.                         $allow[] = 'DELETE';
  218.                         goto not_api_products_delete_item;
  219.                     }
  220.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_products_delete_item')), array (  '_controller' => 'api_platform.action.delete_item',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Product',  '_api_item_operation_name' => 'delete',));
  221.                 }
  222.                 not_api_products_delete_item:
  223.             }
  224.         }
  225.         elseif (=== strpos($pathinfo'/profile')) {
  226.             // fos_user_profile_show
  227.             if ('/profile' === $trimmedPathinfo) {
  228.                 if ('GET' !== $canonicalMethod) {
  229.                     $allow[] = 'GET';
  230.                     goto not_fos_user_profile_show;
  231.                 }
  232.                 $ret = array (  '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::showAction',  '_route' => 'fos_user_profile_show',);
  233.                 if (substr($pathinfo, -1) !== '/') {
  234.                     return array_replace($ret$this->redirect($rawPathinfo.'/''fos_user_profile_show'));
  235.                 }
  236.                 return $ret;
  237.             }
  238.             not_fos_user_profile_show:
  239.             // fos_user_profile_edit
  240.             if ('/profile/edit' === $pathinfo) {
  241.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  242.                     $allow array_merge($allow, array('GET''POST'));
  243.                     goto not_fos_user_profile_edit;
  244.                 }
  245.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::editAction',  '_route' => 'fos_user_profile_edit',);
  246.             }
  247.             not_fos_user_profile_edit:
  248.             // fos_user_change_password
  249.             if ('/profile/change-password' === $pathinfo) {
  250.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  251.                     $allow array_merge($allow, array('GET''POST'));
  252.                     goto not_fos_user_change_password;
  253.                 }
  254.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ChangePasswordController::changePasswordAction',  '_route' => 'fos_user_change_password',);
  255.             }
  256.             not_fos_user_change_password:
  257.         }
  258.         elseif (=== strpos($pathinfo'/salesprices')) {
  259.             // api_salesprices_get_collection
  260.             if (preg_match('#^/salesprices(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  261.                 if ('GET' !== $canonicalMethod) {
  262.                     $allow[] = 'GET';
  263.                     goto not_api_salesprices_get_collection;
  264.                 }
  265.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_salesprices_get_collection')), array (  '_controller' => 'api_platform.action.get_collection',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Salesprice',  '_api_collection_operation_name' => 'get',));
  266.             }
  267.             not_api_salesprices_get_collection:
  268.             // api_salesprices_post_collection
  269.             if (preg_match('#^/salesprices(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  270.                 if ('POST' !== $canonicalMethod) {
  271.                     $allow[] = 'POST';
  272.                     goto not_api_salesprices_post_collection;
  273.                 }
  274.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_salesprices_post_collection')), array (  '_controller' => 'api_platform.action.post_collection',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Salesprice',  '_api_collection_operation_name' => 'post',));
  275.             }
  276.             not_api_salesprices_post_collection:
  277.             // api_salesprices_get_item
  278.             if (preg_match('#^/salesprices/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  279.                 if ('GET' !== $canonicalMethod) {
  280.                     $allow[] = 'GET';
  281.                     goto not_api_salesprices_get_item;
  282.                 }
  283.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_salesprices_get_item')), array (  '_controller' => 'api_platform.action.get_item',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Salesprice',  '_api_item_operation_name' => 'get',));
  284.             }
  285.             not_api_salesprices_get_item:
  286.             // api_salesprices_put_item
  287.             if (preg_match('#^/salesprices/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  288.                 if ('PUT' !== $canonicalMethod) {
  289.                     $allow[] = 'PUT';
  290.                     goto not_api_salesprices_put_item;
  291.                 }
  292.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_salesprices_put_item')), array (  '_controller' => 'api_platform.action.put_item',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Salesprice',  '_api_item_operation_name' => 'put',));
  293.             }
  294.             not_api_salesprices_put_item:
  295.             // api_salesprices_delete_item
  296.             if (preg_match('#^/salesprices/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  297.                 if ('DELETE' !== $canonicalMethod) {
  298.                     $allow[] = 'DELETE';
  299.                     goto not_api_salesprices_delete_item;
  300.                 }
  301.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_salesprices_delete_item')), array (  '_controller' => 'api_platform.action.delete_item',  '_format' => NULL,  '_api_resource_class' => 'App\\Entity\\Product\\Salesprice',  '_api_item_operation_name' => 'delete',));
  302.             }
  303.             not_api_salesprices_delete_item:
  304.         }
  305.         elseif (=== strpos($pathinfo'/_')) {
  306.             // _twig_error_test
  307.             if (=== strpos($pathinfo'/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  308.                 return $this->mergeDefaults(array_replace($matches, array('_route' => '_twig_error_test')), array (  '_controller' => 'twig.controller.preview_error:previewErrorPageAction',  '_format' => 'html',));
  309.             }
  310.             // _wdt
  311.             if (=== strpos($pathinfo'/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  312.                 return $this->mergeDefaults(array_replace($matches, array('_route' => '_wdt')), array (  '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
  313.             }
  314.             if (=== strpos($pathinfo'/_profiler')) {
  315.                 // _profiler_home
  316.                 if ('/_profiler' === $trimmedPathinfo) {
  317.                     $ret = array (  '_controller' => 'web_profiler.controller.profiler:homeAction',  '_route' => '_profiler_home',);
  318.                     if (substr($pathinfo, -1) !== '/') {
  319.                         return array_replace($ret$this->redirect($rawPathinfo.'/''_profiler_home'));
  320.                     }
  321.                     return $ret;
  322.                 }
  323.                 if (=== strpos($pathinfo'/_profiler/search')) {
  324.                     // _profiler_search
  325.                     if ('/_profiler/search' === $pathinfo) {
  326.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchAction',  '_route' => '_profiler_search',);
  327.                     }
  328.                     // _profiler_search_bar
  329.                     if ('/_profiler/search_bar' === $pathinfo) {
  330.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchBarAction',  '_route' => '_profiler_search_bar',);
  331.                     }
  332.                 }
  333.                 // _profiler_phpinfo
  334.                 if ('/_profiler/phpinfo' === $pathinfo) {
  335.                     return array (  '_controller' => 'web_profiler.controller.profiler:phpinfoAction',  '_route' => '_profiler_phpinfo',);
  336.                 }
  337.                 // _profiler_search_results
  338.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#s'$pathinfo$matches)) {
  339.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_search_results')), array (  '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
  340.                 }
  341.                 // _profiler_open_file
  342.                 if ('/_profiler/open' === $pathinfo) {
  343.                     return array (  '_controller' => 'web_profiler.controller.profiler:openAction',  '_route' => '_profiler_open_file',);
  344.                 }
  345.                 // _profiler
  346.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  347.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler')), array (  '_controller' => 'web_profiler.controller.profiler:panelAction',));
  348.                 }
  349.                 // _profiler_router
  350.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#s'$pathinfo$matches)) {
  351.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_router')), array (  '_controller' => 'web_profiler.controller.router:panelAction',));
  352.                 }
  353.                 // _profiler_exception
  354.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#s'$pathinfo$matches)) {
  355.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception')), array (  '_controller' => 'web_profiler.controller.exception:showAction',));
  356.                 }
  357.                 // _profiler_exception_css
  358.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#s'$pathinfo$matches)) {
  359.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception_css')), array (  '_controller' => 'web_profiler.controller.exception:cssAction',));
  360.                 }
  361.             }
  362.         }
  363.         elseif (=== strpos($pathinfo'/login')) {
  364.             // fos_user_security_login
  365.             if ('/login' === $pathinfo) {
  366.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  367.                     $allow array_merge($allow, array('GET''POST'));
  368.                     goto not_fos_user_security_login;
  369.                 }
  370.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::loginAction',  '_route' => 'fos_user_security_login',);
  371.             }
  372.             not_fos_user_security_login:
  373.             // fos_user_security_check
  374.             if ('/login_check' === $pathinfo) {
  375.                 if ('POST' !== $canonicalMethod) {
  376.                     $allow[] = 'POST';
  377.                     goto not_fos_user_security_check;
  378.                 }
  379.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::checkAction',  '_route' => 'fos_user_security_check',);
  380.             }
  381.             not_fos_user_security_check:
  382.         }
  383.         // fos_user_security_logout
  384.         if ('/logout' === $pathinfo) {
  385.             if (!in_array($canonicalMethod, array('GET''POST'))) {
  386.                 $allow array_merge($allow, array('GET''POST'));
  387.                 goto not_fos_user_security_logout;
  388.             }
  389.             return array (  '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::logoutAction',  '_route' => 'fos_user_security_logout',);
  390.         }
  391.         not_fos_user_security_logout:
  392.         if (=== strpos($pathinfo'/register')) {
  393.             // fos_user_registration_register
  394.             if ('/register' === $trimmedPathinfo) {
  395.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  396.                     $allow array_merge($allow, array('GET''POST'));
  397.                     goto not_fos_user_registration_register;
  398.                 }
  399.                 $ret = array (  '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::registerAction',  '_route' => 'fos_user_registration_register',);
  400.                 if (substr($pathinfo, -1) !== '/') {
  401.                     return array_replace($ret$this->redirect($rawPathinfo.'/''fos_user_registration_register'));
  402.                 }
  403.                 return $ret;
  404.             }
  405.             not_fos_user_registration_register:
  406.             // fos_user_registration_check_email
  407.             if ('/register/check-email' === $pathinfo) {
  408.                 if ('GET' !== $canonicalMethod) {
  409.                     $allow[] = 'GET';
  410.                     goto not_fos_user_registration_check_email;
  411.                 }
  412.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::checkEmailAction',  '_route' => 'fos_user_registration_check_email',);
  413.             }
  414.             not_fos_user_registration_check_email:
  415.             if (=== strpos($pathinfo'/register/confirm')) {
  416.                 // fos_user_registration_confirm
  417.                 if (preg_match('#^/register/confirm/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  418.                     if ('GET' !== $canonicalMethod) {
  419.                         $allow[] = 'GET';
  420.                         goto not_fos_user_registration_confirm;
  421.                     }
  422.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_registration_confirm')), array (  '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::confirmAction',));
  423.                 }
  424.                 not_fos_user_registration_confirm:
  425.                 // fos_user_registration_confirmed
  426.                 if ('/register/confirmed' === $pathinfo) {
  427.                     if ('GET' !== $canonicalMethod) {
  428.                         $allow[] = 'GET';
  429.                         goto not_fos_user_registration_confirmed;
  430.                     }
  431.                     return array (  '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::confirmedAction',  '_route' => 'fos_user_registration_confirmed',);
  432.                 }
  433.                 not_fos_user_registration_confirmed:
  434.             }
  435.         }
  436.         elseif (=== strpos($pathinfo'/resetting')) {
  437.             // fos_user_resetting_request
  438.             if ('/resetting/request' === $pathinfo) {
  439.                 if ('GET' !== $canonicalMethod) {
  440.                     $allow[] = 'GET';
  441.                     goto not_fos_user_resetting_request;
  442.                 }
  443.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::requestAction',  '_route' => 'fos_user_resetting_request',);
  444.             }
  445.             not_fos_user_resetting_request:
  446.             // fos_user_resetting_reset
  447.             if (=== strpos($pathinfo'/resetting/reset') && preg_match('#^/resetting/reset/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  448.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  449.                     $allow array_merge($allow, array('GET''POST'));
  450.                     goto not_fos_user_resetting_reset;
  451.                 }
  452.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_resetting_reset')), array (  '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::resetAction',));
  453.             }
  454.             not_fos_user_resetting_reset:
  455.             // fos_user_resetting_send_email
  456.             if ('/resetting/send-email' === $pathinfo) {
  457.                 if ('POST' !== $canonicalMethod) {
  458.                     $allow[] = 'POST';
  459.                     goto not_fos_user_resetting_send_email;
  460.                 }
  461.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::sendEmailAction',  '_route' => 'fos_user_resetting_send_email',);
  462.             }
  463.             not_fos_user_resetting_send_email:
  464.             // fos_user_resetting_check_email
  465.             if ('/resetting/check-email' === $pathinfo) {
  466.                 if ('GET' !== $canonicalMethod) {
  467.                     $allow[] = 'GET';
  468.                     goto not_fos_user_resetting_check_email;
  469.                 }
  470.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::checkEmailAction',  '_route' => 'fos_user_resetting_check_email',);
  471.             }
  472.             not_fos_user_resetting_check_email:
  473.         }
  474.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  475.     }
  476. }