var/cache/dev/srcDevDebugProjectContainerUrlMatcher.php line 1256

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 ?: $this->createRequest($pathinfo);
  22.         $requestMethod $canonicalMethod $context->getMethod();
  23.         if ('HEAD' === $requestMethod) {
  24.             $canonicalMethod 'GET';
  25.         }
  26.         if (=== strpos($pathinfo'/backoffice')) {
  27.             if (=== strpos($pathinfo'/backoffice/customerpurchaseorder')) {
  28.                 // app_backoffice_customerpurchaseorder_index
  29.                 if ('/backoffice/customerpurchaseorder' === $trimmedPathinfo) {
  30.                     $ret = array (  '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderController::indexAction',  '_locale' => 'en',  '_route' => 'app_backoffice_customerpurchaseorder_index',);
  31.                     if ('/' === substr($pathinfo, -1)) {
  32.                         // no-op
  33.                     } elseif ('GET' !== $canonicalMethod) {
  34.                         goto not_app_backoffice_customerpurchaseorder_index;
  35.                     } else {
  36.                         return array_replace($ret$this->redirect($rawPathinfo.'/''app_backoffice_customerpurchaseorder_index'));
  37.                     }
  38.                     return $ret;
  39.                 }
  40.                 not_app_backoffice_customerpurchaseorder_index:
  41.                 // app_backoffice_customerpurchaseorder_list
  42.                 if (=== strpos($pathinfo'/backoffice/customerpurchaseorder/list') && preg_match('#^/backoffice/customerpurchaseorder/list(?:/(?P<page>[^/]++))?$#sD'$pathinfo$matches)) {
  43.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorder_list')), array (  'page' => 1,  '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderController::listAction',  '_locale' => 'en',));
  44.                     if (!in_array($canonicalMethod, array('GET'))) {
  45.                         $allow array_merge($allow, array('GET'));
  46.                         goto not_app_backoffice_customerpurchaseorder_list;
  47.                     }
  48.                     return $ret;
  49.                 }
  50.                 not_app_backoffice_customerpurchaseorder_list:
  51.                 // app_backoffice_customerpurchaseorder_create
  52.                 if ('/backoffice/customerpurchaseorder/create' === $pathinfo) {
  53.                     return array (  '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderController::createAction',  '_locale' => 'en',  '_route' => 'app_backoffice_customerpurchaseorder_create',);
  54.                 }
  55.                 // app_backoffice_customerpurchaseorder_show
  56.                 if (preg_match('#^/backoffice/customerpurchaseorder/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  57.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorder_show')), array (  '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderController::showAction',  '_locale' => 'en',));
  58.                     if (!in_array($canonicalMethod, array('GET'))) {
  59.                         $allow array_merge($allow, array('GET'));
  60.                         goto not_app_backoffice_customerpurchaseorder_show;
  61.                     }
  62.                     return $ret;
  63.                 }
  64.                 not_app_backoffice_customerpurchaseorder_show:
  65.                 // app_backoffice_customerpurchaseorder_edit
  66.                 if (preg_match('#^/backoffice/customerpurchaseorder/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  67.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorder_edit')), array (  '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderController::editAction',  '_locale' => 'en',));
  68.                 }
  69.                 // app_backoffice_customerpurchaseorder_delete
  70.                 if (preg_match('#^/backoffice/customerpurchaseorder/(?P<id>[^/]++)/delete$#sD'$pathinfo$matches)) {
  71.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorder_delete')), array (  '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderController::deleteAction',  '_locale' => 'en',));
  72.                     if (!in_array($requestMethod, array('POST'))) {
  73.                         $allow array_merge($allow, array('POST'));
  74.                         goto not_app_backoffice_customerpurchaseorder_delete;
  75.                     }
  76.                     return $ret;
  77.                 }
  78.                 not_app_backoffice_customerpurchaseorder_delete:
  79.                 if (=== strpos($pathinfo'/backoffice/customerpurchaseorderitem')) {
  80.                     // app_backoffice_customerpurchaseorderitem_index
  81.                     if ('/backoffice/customerpurchaseorderitem' === $trimmedPathinfo) {
  82.                         $ret = array (  '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderItemController::indexAction',  '_locale' => 'en',  '_route' => 'app_backoffice_customerpurchaseorderitem_index',);
  83.                         if ('/' === substr($pathinfo, -1)) {
  84.                             // no-op
  85.                         } elseif ('GET' !== $canonicalMethod) {
  86.                             goto not_app_backoffice_customerpurchaseorderitem_index;
  87.                         } else {
  88.                             return array_replace($ret$this->redirect($rawPathinfo.'/''app_backoffice_customerpurchaseorderitem_index'));
  89.                         }
  90.                         return $ret;
  91.                     }
  92.                     not_app_backoffice_customerpurchaseorderitem_index:
  93.                     // app_backoffice_customerpurchaseorderitem_list
  94.                     if (=== strpos($pathinfo'/backoffice/customerpurchaseorderitem/list') && preg_match('#^/backoffice/customerpurchaseorderitem/list(?:/(?P<page>[^/]++))?$#sD'$pathinfo$matches)) {
  95.                         $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorderitem_list')), array (  'page' => 1,  '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderItemController::listAction',  '_locale' => 'en',));
  96.                         if (!in_array($canonicalMethod, array('GET'))) {
  97.                             $allow array_merge($allow, array('GET'));
  98.                             goto not_app_backoffice_customerpurchaseorderitem_list;
  99.                         }
  100.                         return $ret;
  101.                     }
  102.                     not_app_backoffice_customerpurchaseorderitem_list:
  103.                     // app_backoffice_customerpurchaseorderitem_create
  104.                     if ('/backoffice/customerpurchaseorderitem/create' === $pathinfo) {
  105.                         return array (  '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderItemController::createAction',  '_locale' => 'en',  '_route' => 'app_backoffice_customerpurchaseorderitem_create',);
  106.                     }
  107.                     // app_backoffice_customerpurchaseorderitem_show
  108.                     if (preg_match('#^/backoffice/customerpurchaseorderitem/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  109.                         $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorderitem_show')), array (  '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderItemController::showAction',  '_locale' => 'en',));
  110.                         if (!in_array($canonicalMethod, array('GET'))) {
  111.                             $allow array_merge($allow, array('GET'));
  112.                             goto not_app_backoffice_customerpurchaseorderitem_show;
  113.                         }
  114.                         return $ret;
  115.                     }
  116.                     not_app_backoffice_customerpurchaseorderitem_show:
  117.                     // app_backoffice_customerpurchaseorderitem_edit
  118.                     if (preg_match('#^/backoffice/customerpurchaseorderitem/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  119.                         return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorderitem_edit')), array (  '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderItemController::editAction',  '_locale' => 'en',));
  120.                     }
  121.                     // app_backoffice_customerpurchaseorderitem_delete
  122.                     if (preg_match('#^/backoffice/customerpurchaseorderitem/(?P<id>[^/]++)/delete$#sD'$pathinfo$matches)) {
  123.                         $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorderitem_delete')), array (  '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderItemController::deleteAction',  '_locale' => 'en',));
  124.                         if (!in_array($requestMethod, array('POST'))) {
  125.                             $allow array_merge($allow, array('POST'));
  126.                             goto not_app_backoffice_customerpurchaseorderitem_delete;
  127.                         }
  128.                         return $ret;
  129.                     }
  130.                     not_app_backoffice_customerpurchaseorderitem_delete:
  131.                 }
  132.             }
  133.             // dashboard_index
  134.             if ('/backoffice/dashboard' === $trimmedPathinfo) {
  135.                 $ret = array (  'page' => '1',  '_format' => 'html',  '_controller' => 'App\\Controller\\BackOffice\\DashboardController::index',  '_locale' => 'en',  '_route' => 'dashboard_index',);
  136.                 if ('/' === substr($pathinfo, -1)) {
  137.                     // no-op
  138.                 } elseif ('GET' !== $canonicalMethod) {
  139.                     goto not_dashboard_index;
  140.                 } else {
  141.                     return array_replace($ret$this->redirect($rawPathinfo.'/''dashboard_index'));
  142.                 }
  143.                 return $ret;
  144.             }
  145.             not_dashboard_index:
  146.             if (=== strpos($pathinfo'/backoffice/managedorganization')) {
  147.                 // app_backoffice_managedorganization_create
  148.                 if ('/backoffice/managedorganization/create' === $pathinfo) {
  149.                     return array (  '_controller' => 'App\\Controller\\BackOffice\\ManagedOrganizationController::createAction',  '_locale' => 'en',  '_route' => 'app_backoffice_managedorganization_create',);
  150.                 }
  151.                 // app_backoffice_managedorganization_edit
  152.                 if (preg_match('#^/backoffice/managedorganization/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  153.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_managedorganization_edit')), array (  '_controller' => 'App\\Controller\\BackOffice\\ManagedOrganizationController::editAction',  '_locale' => 'en',));
  154.                 }
  155.                 // app_backoffice_managedorganization_delete
  156.                 if (preg_match('#^/backoffice/managedorganization/(?P<id>[^/]++)/delete$#sD'$pathinfo$matches)) {
  157.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_managedorganization_delete')), array (  '_controller' => 'App\\Controller\\BackOffice\\ManagedOrganizationController::deleteAction',  '_locale' => 'en',));
  158.                     if (!in_array($requestMethod, array('POST'))) {
  159.                         $allow array_merge($allow, array('POST'));
  160.                         goto not_app_backoffice_managedorganization_delete;
  161.                     }
  162.                     return $ret;
  163.                 }
  164.                 not_app_backoffice_managedorganization_delete:
  165.             }
  166.             elseif (=== strpos($pathinfo'/backoffice/organization')) {
  167.                 // app_backoffice_organization_index
  168.                 if ('/backoffice/organization' === $trimmedPathinfo) {
  169.                     $ret = array (  '_controller' => 'App\\Controller\\BackOffice\\OrganizationController::indexAction',  '_locale' => 'en',  '_route' => 'app_backoffice_organization_index',);
  170.                     if ('/' === substr($pathinfo, -1)) {
  171.                         // no-op
  172.                     } elseif ('GET' !== $canonicalMethod) {
  173.                         goto not_app_backoffice_organization_index;
  174.                     } else {
  175.                         return array_replace($ret$this->redirect($rawPathinfo.'/''app_backoffice_organization_index'));
  176.                     }
  177.                     return $ret;
  178.                 }
  179.                 not_app_backoffice_organization_index:
  180.                 // app_backoffice_organization_list
  181.                 if (=== strpos($pathinfo'/backoffice/organization/list') && preg_match('#^/backoffice/organization/list(?:/(?P<page>[^/]++))?$#sD'$pathinfo$matches)) {
  182.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_organization_list')), array (  'page' => 1,  '_controller' => 'App\\Controller\\BackOffice\\OrganizationController::listAction',  '_locale' => 'en',));
  183.                     if (!in_array($canonicalMethod, array('GET'))) {
  184.                         $allow array_merge($allow, array('GET'));
  185.                         goto not_app_backoffice_organization_list;
  186.                     }
  187.                     return $ret;
  188.                 }
  189.                 not_app_backoffice_organization_list:
  190.                 // app_backoffice_organization_create
  191.                 if ('/backoffice/organization/create' === $pathinfo) {
  192.                     return array (  '_controller' => 'App\\Controller\\BackOffice\\OrganizationController::createAction',  '_locale' => 'en',  '_route' => 'app_backoffice_organization_create',);
  193.                 }
  194.                 // app_backoffice_organization_show
  195.                 if (preg_match('#^/backoffice/organization/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  196.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_organization_show')), array (  '_controller' => 'App\\Controller\\BackOffice\\OrganizationController::showAction',  '_locale' => 'en',));
  197.                     if (!in_array($canonicalMethod, array('GET'))) {
  198.                         $allow array_merge($allow, array('GET'));
  199.                         goto not_app_backoffice_organization_show;
  200.                     }
  201.                     return $ret;
  202.                 }
  203.                 not_app_backoffice_organization_show:
  204.                 // app_backoffice_organization_edit
  205.                 if (preg_match('#^/backoffice/organization/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  206.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_organization_edit')), array (  '_controller' => 'App\\Controller\\BackOffice\\OrganizationController::editAction',  '_locale' => 'en',));
  207.                 }
  208.                 // app_backoffice_organization_delete
  209.                 if (preg_match('#^/backoffice/organization/(?P<id>[^/]++)/delete$#sD'$pathinfo$matches)) {
  210.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_organization_delete')), array (  '_controller' => 'App\\Controller\\BackOffice\\OrganizationController::deleteAction',  '_locale' => 'en',));
  211.                     if (!in_array($requestMethod, array('POST'))) {
  212.                         $allow array_merge($allow, array('POST'));
  213.                         goto not_app_backoffice_organization_delete;
  214.                     }
  215.                     return $ret;
  216.                 }
  217.                 not_app_backoffice_organization_delete:
  218.             }
  219.             elseif (=== strpos($pathinfo'/backoffice/product')) {
  220.                 // app_backoffice_product_index
  221.                 if ('/backoffice/product' === $trimmedPathinfo) {
  222.                     $ret = array (  '_controller' => 'App\\Controller\\BackOffice\\ProductController::indexAction',  '_locale' => 'en',  '_route' => 'app_backoffice_product_index',);
  223.                     if ('/' === substr($pathinfo, -1)) {
  224.                         // no-op
  225.                     } elseif ('GET' !== $canonicalMethod) {
  226.                         goto not_app_backoffice_product_index;
  227.                     } else {
  228.                         return array_replace($ret$this->redirect($rawPathinfo.'/''app_backoffice_product_index'));
  229.                     }
  230.                     return $ret;
  231.                 }
  232.                 not_app_backoffice_product_index:
  233.                 // app_backoffice_product_list
  234.                 if (=== strpos($pathinfo'/backoffice/product/list') && preg_match('#^/backoffice/product/list(?:/(?P<page>[^/]++))?$#sD'$pathinfo$matches)) {
  235.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_product_list')), array (  'page' => 1,  '_controller' => 'App\\Controller\\BackOffice\\ProductController::listAction',  '_locale' => 'en',));
  236.                     if (!in_array($canonicalMethod, array('GET'))) {
  237.                         $allow array_merge($allow, array('GET'));
  238.                         goto not_app_backoffice_product_list;
  239.                     }
  240.                     return $ret;
  241.                 }
  242.                 not_app_backoffice_product_list:
  243.                 // app_backoffice_product_create
  244.                 if ('/backoffice/product/create' === $pathinfo) {
  245.                     return array (  '_controller' => 'App\\Controller\\BackOffice\\ProductController::createAction',  '_locale' => 'en',  '_route' => 'app_backoffice_product_create',);
  246.                 }
  247.                 // app_backoffice_product_show
  248.                 if (preg_match('#^/backoffice/product/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  249.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_product_show')), array (  '_controller' => 'App\\Controller\\BackOffice\\ProductController::showAction',  '_locale' => 'en',));
  250.                     if (!in_array($canonicalMethod, array('GET'))) {
  251.                         $allow array_merge($allow, array('GET'));
  252.                         goto not_app_backoffice_product_show;
  253.                     }
  254.                     return $ret;
  255.                 }
  256.                 not_app_backoffice_product_show:
  257.                 // app_backoffice_product_edit
  258.                 if (preg_match('#^/backoffice/product/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  259.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_product_edit')), array (  '_controller' => 'App\\Controller\\BackOffice\\ProductController::editAction',  '_locale' => 'en',));
  260.                 }
  261.                 // app_backoffice_product_delete
  262.                 if (preg_match('#^/backoffice/product/(?P<id>[^/]++)/delete$#sD'$pathinfo$matches)) {
  263.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_product_delete')), array (  '_controller' => 'App\\Controller\\BackOffice\\ProductController::deleteAction',  '_locale' => 'en',));
  264.                     if (!in_array($requestMethod, array('POST'))) {
  265.                         $allow array_merge($allow, array('POST'));
  266.                         goto not_app_backoffice_product_delete;
  267.                     }
  268.                     return $ret;
  269.                 }
  270.                 not_app_backoffice_product_delete:
  271.             }
  272.             elseif (=== strpos($pathinfo'/backoffice/purchase')) {
  273.                 // app_backoffice_purchase_index
  274.                 if ('/backoffice/purchase' === $trimmedPathinfo) {
  275.                     $ret = array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseController::indexAction',  '_locale' => 'en',  '_route' => 'app_backoffice_purchase_index',);
  276.                     if ('/' === substr($pathinfo, -1)) {
  277.                         // no-op
  278.                     } elseif ('GET' !== $canonicalMethod) {
  279.                         goto not_app_backoffice_purchase_index;
  280.                     } else {
  281.                         return array_replace($ret$this->redirect($rawPathinfo.'/''app_backoffice_purchase_index'));
  282.                     }
  283.                     return $ret;
  284.                 }
  285.                 not_app_backoffice_purchase_index:
  286.                 // app_backoffice_purchase_list
  287.                 if (=== strpos($pathinfo'/backoffice/purchase/list') && preg_match('#^/backoffice/purchase/list(?:/(?P<page>[^/]++))?$#sD'$pathinfo$matches)) {
  288.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchase_list')), array (  'page' => 1,  '_controller' => 'App\\Controller\\BackOffice\\PurchaseController::listAction',  '_locale' => 'en',));
  289.                     if (!in_array($canonicalMethod, array('GET'))) {
  290.                         $allow array_merge($allow, array('GET'));
  291.                         goto not_app_backoffice_purchase_list;
  292.                     }
  293.                     return $ret;
  294.                 }
  295.                 not_app_backoffice_purchase_list:
  296.                 // app_backoffice_purchase_create
  297.                 if ('/backoffice/purchase/create' === $pathinfo) {
  298.                     return array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseController::createAction',  '_locale' => 'en',  '_route' => 'app_backoffice_purchase_create',);
  299.                 }
  300.                 // app_backoffice_purchase_show
  301.                 if (preg_match('#^/backoffice/purchase/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  302.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchase_show')), array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseController::showAction',  '_locale' => 'en',));
  303.                     if (!in_array($canonicalMethod, array('GET'))) {
  304.                         $allow array_merge($allow, array('GET'));
  305.                         goto not_app_backoffice_purchase_show;
  306.                     }
  307.                     return $ret;
  308.                 }
  309.                 not_app_backoffice_purchase_show:
  310.                 // app_backoffice_purchase_edit
  311.                 if (preg_match('#^/backoffice/purchase/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  312.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchase_edit')), array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseController::editAction',  '_locale' => 'en',));
  313.                 }
  314.                 // app_backoffice_purchase_delete
  315.                 if (preg_match('#^/backoffice/purchase/(?P<id>[^/]++)/delete$#sD'$pathinfo$matches)) {
  316.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchase_delete')), array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseController::deleteAction',  '_locale' => 'en',));
  317.                     if (!in_array($requestMethod, array('POST'))) {
  318.                         $allow array_merge($allow, array('POST'));
  319.                         goto not_app_backoffice_purchase_delete;
  320.                     }
  321.                     return $ret;
  322.                 }
  323.                 not_app_backoffice_purchase_delete:
  324.                 // app_backoffice_purchase_submit
  325.                 if (preg_match('#^/backoffice/purchase/(?P<id>[^/]++)/submit$#sD'$pathinfo$matches)) {
  326.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchase_submit')), array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseController::submit',  '_locale' => 'en',));
  327.                 }
  328.                 if (=== strpos($pathinfo'/backoffice/purchaseitem')) {
  329.                     // app_backoffice_purchaseitem_index
  330.                     if ('/backoffice/purchaseitem' === $trimmedPathinfo) {
  331.                         $ret = array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseItemController::indexAction',  '_locale' => 'en',  '_route' => 'app_backoffice_purchaseitem_index',);
  332.                         if ('/' === substr($pathinfo, -1)) {
  333.                             // no-op
  334.                         } elseif ('GET' !== $canonicalMethod) {
  335.                             goto not_app_backoffice_purchaseitem_index;
  336.                         } else {
  337.                             return array_replace($ret$this->redirect($rawPathinfo.'/''app_backoffice_purchaseitem_index'));
  338.                         }
  339.                         return $ret;
  340.                     }
  341.                     not_app_backoffice_purchaseitem_index:
  342.                     // app_backoffice_purchaseitem_list
  343.                     if (=== strpos($pathinfo'/backoffice/purchaseitem/list') && preg_match('#^/backoffice/purchaseitem/list(?:/(?P<page>[^/]++))?$#sD'$pathinfo$matches)) {
  344.                         $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseitem_list')), array (  'page' => 1,  '_controller' => 'App\\Controller\\BackOffice\\PurchaseItemController::listAction',  '_locale' => 'en',));
  345.                         if (!in_array($canonicalMethod, array('GET'))) {
  346.                             $allow array_merge($allow, array('GET'));
  347.                             goto not_app_backoffice_purchaseitem_list;
  348.                         }
  349.                         return $ret;
  350.                     }
  351.                     not_app_backoffice_purchaseitem_list:
  352.                     // app_backoffice_purchaseitem_create
  353.                     if ('/backoffice/purchaseitem/create' === $pathinfo) {
  354.                         return array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseItemController::createAction',  '_locale' => 'en',  '_route' => 'app_backoffice_purchaseitem_create',);
  355.                     }
  356.                     // app_backoffice_purchaseitem_show
  357.                     if (preg_match('#^/backoffice/purchaseitem/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  358.                         $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseitem_show')), array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseItemController::showAction',  '_locale' => 'en',));
  359.                         if (!in_array($canonicalMethod, array('GET'))) {
  360.                             $allow array_merge($allow, array('GET'));
  361.                             goto not_app_backoffice_purchaseitem_show;
  362.                         }
  363.                         return $ret;
  364.                     }
  365.                     not_app_backoffice_purchaseitem_show:
  366.                     // app_backoffice_purchaseitem_edit
  367.                     if (preg_match('#^/backoffice/purchaseitem/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  368.                         return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseitem_edit')), array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseItemController::editAction',  '_locale' => 'en',));
  369.                     }
  370.                     // app_backoffice_purchaseitem_delete
  371.                     if (preg_match('#^/backoffice/purchaseitem/(?P<id>[^/]++)/delete$#sD'$pathinfo$matches)) {
  372.                         $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseitem_delete')), array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseItemController::deleteAction',  '_locale' => 'en',));
  373.                         if (!in_array($requestMethod, array('POST'))) {
  374.                             $allow array_merge($allow, array('POST'));
  375.                             goto not_app_backoffice_purchaseitem_delete;
  376.                         }
  377.                         return $ret;
  378.                     }
  379.                     not_app_backoffice_purchaseitem_delete:
  380.                 }
  381.                 elseif (=== strpos($pathinfo'/backoffice/purchaseorder')) {
  382.                     // app_backoffice_purchaseorder_index
  383.                     if ('/backoffice/purchaseorder' === $trimmedPathinfo) {
  384.                         $ret = array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderController::indexAction',  '_locale' => 'en',  '_route' => 'app_backoffice_purchaseorder_index',);
  385.                         if ('/' === substr($pathinfo, -1)) {
  386.                             // no-op
  387.                         } elseif ('GET' !== $canonicalMethod) {
  388.                             goto not_app_backoffice_purchaseorder_index;
  389.                         } else {
  390.                             return array_replace($ret$this->redirect($rawPathinfo.'/''app_backoffice_purchaseorder_index'));
  391.                         }
  392.                         return $ret;
  393.                     }
  394.                     not_app_backoffice_purchaseorder_index:
  395.                     // app_backoffice_purchaseorder_list
  396.                     if (=== strpos($pathinfo'/backoffice/purchaseorder/list') && preg_match('#^/backoffice/purchaseorder/list(?:/(?P<page>[^/]++))?$#sD'$pathinfo$matches)) {
  397.                         $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorder_list')), array (  'page' => 1,  '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderController::listAction',  '_locale' => 'en',));
  398.                         if (!in_array($canonicalMethod, array('GET'))) {
  399.                             $allow array_merge($allow, array('GET'));
  400.                             goto not_app_backoffice_purchaseorder_list;
  401.                         }
  402.                         return $ret;
  403.                     }
  404.                     not_app_backoffice_purchaseorder_list:
  405.                     // app_backoffice_purchaseorder_create
  406.                     if ('/backoffice/purchaseorder/create' === $pathinfo) {
  407.                         return array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderController::createAction',  '_locale' => 'en',  '_route' => 'app_backoffice_purchaseorder_create',);
  408.                     }
  409.                     // app_backoffice_purchaseorder_show
  410.                     if (preg_match('#^/backoffice/purchaseorder/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  411.                         $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorder_show')), array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderController::showAction',  '_locale' => 'en',));
  412.                         if (!in_array($canonicalMethod, array('GET'))) {
  413.                             $allow array_merge($allow, array('GET'));
  414.                             goto not_app_backoffice_purchaseorder_show;
  415.                         }
  416.                         return $ret;
  417.                     }
  418.                     not_app_backoffice_purchaseorder_show:
  419.                     // app_backoffice_purchaseorder_edit
  420.                     if (preg_match('#^/backoffice/purchaseorder/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  421.                         return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorder_edit')), array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderController::editAction',  '_locale' => 'en',));
  422.                     }
  423.                     // app_backoffice_purchaseorder_delete
  424.                     if (preg_match('#^/backoffice/purchaseorder/(?P<id>[^/]++)/delete$#sD'$pathinfo$matches)) {
  425.                         $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorder_delete')), array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderController::deleteAction',  '_locale' => 'en',));
  426.                         if (!in_array($requestMethod, array('POST'))) {
  427.                             $allow array_merge($allow, array('POST'));
  428.                             goto not_app_backoffice_purchaseorder_delete;
  429.                         }
  430.                         return $ret;
  431.                     }
  432.                     not_app_backoffice_purchaseorder_delete:
  433.                     // app_backoffice_purchaseorder_submit
  434.                     if (preg_match('#^/backoffice/purchaseorder/(?P<id>[^/]++)/submit$#sD'$pathinfo$matches)) {
  435.                         return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorder_submit')), array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderController::submit',  '_locale' => 'en',));
  436.                     }
  437.                     if (=== strpos($pathinfo'/backoffice/purchaseorderitem')) {
  438.                         // app_backoffice_purchaseorderitem_index
  439.                         if ('/backoffice/purchaseorderitem' === $trimmedPathinfo) {
  440.                             $ret = array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderItemController::indexAction',  '_locale' => 'en',  '_route' => 'app_backoffice_purchaseorderitem_index',);
  441.                             if ('/' === substr($pathinfo, -1)) {
  442.                                 // no-op
  443.                             } elseif ('GET' !== $canonicalMethod) {
  444.                                 goto not_app_backoffice_purchaseorderitem_index;
  445.                             } else {
  446.                                 return array_replace($ret$this->redirect($rawPathinfo.'/''app_backoffice_purchaseorderitem_index'));
  447.                             }
  448.                             return $ret;
  449.                         }
  450.                         not_app_backoffice_purchaseorderitem_index:
  451.                         // app_backoffice_purchaseorderitem_list
  452.                         if (=== strpos($pathinfo'/backoffice/purchaseorderitem/list') && preg_match('#^/backoffice/purchaseorderitem/list(?:/(?P<page>[^/]++))?$#sD'$pathinfo$matches)) {
  453.                             $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorderitem_list')), array (  'page' => 1,  '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderItemController::listAction',  '_locale' => 'en',));
  454.                             if (!in_array($canonicalMethod, array('GET'))) {
  455.                                 $allow array_merge($allow, array('GET'));
  456.                                 goto not_app_backoffice_purchaseorderitem_list;
  457.                             }
  458.                             return $ret;
  459.                         }
  460.                         not_app_backoffice_purchaseorderitem_list:
  461.                         // app_backoffice_purchaseorderitem_create
  462.                         if ('/backoffice/purchaseorderitem/create' === $pathinfo) {
  463.                             return array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderItemController::createAction',  '_locale' => 'en',  '_route' => 'app_backoffice_purchaseorderitem_create',);
  464.                         }
  465.                         // app_backoffice_purchaseorderitem_show
  466.                         if (preg_match('#^/backoffice/purchaseorderitem/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  467.                             $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorderitem_show')), array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderItemController::showAction',  '_locale' => 'en',));
  468.                             if (!in_array($canonicalMethod, array('GET'))) {
  469.                                 $allow array_merge($allow, array('GET'));
  470.                                 goto not_app_backoffice_purchaseorderitem_show;
  471.                             }
  472.                             return $ret;
  473.                         }
  474.                         not_app_backoffice_purchaseorderitem_show:
  475.                         // app_backoffice_purchaseorderitem_edit
  476.                         if (preg_match('#^/backoffice/purchaseorderitem/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  477.                             return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorderitem_edit')), array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderItemController::editAction',  '_locale' => 'en',));
  478.                         }
  479.                         // app_backoffice_purchaseorderitem_delete
  480.                         if (preg_match('#^/backoffice/purchaseorderitem/(?P<id>[^/]++)/delete$#sD'$pathinfo$matches)) {
  481.                             $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorderitem_delete')), array (  '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderItemController::deleteAction',  '_locale' => 'en',));
  482.                             if (!in_array($requestMethod, array('POST'))) {
  483.                                 $allow array_merge($allow, array('POST'));
  484.                                 goto not_app_backoffice_purchaseorderitem_delete;
  485.                             }
  486.                             return $ret;
  487.                         }
  488.                         not_app_backoffice_purchaseorderitem_delete:
  489.                     }
  490.                 }
  491.             }
  492.             elseif (=== strpos($pathinfo'/backoffice/salesorder')) {
  493.                 // app_backoffice_salesorder_index
  494.                 if ('/backoffice/salesorder' === $trimmedPathinfo) {
  495.                     $ret = array (  '_controller' => 'App\\Controller\\BackOffice\\SalesOrderController::indexAction',  '_locale' => 'en',  '_route' => 'app_backoffice_salesorder_index',);
  496.                     if ('/' === substr($pathinfo, -1)) {
  497.                         // no-op
  498.                     } elseif ('GET' !== $canonicalMethod) {
  499.                         goto not_app_backoffice_salesorder_index;
  500.                     } else {
  501.                         return array_replace($ret$this->redirect($rawPathinfo.'/''app_backoffice_salesorder_index'));
  502.                     }
  503.                     return $ret;
  504.                 }
  505.                 not_app_backoffice_salesorder_index:
  506.                 // app_backoffice_salesorder_list
  507.                 if (=== strpos($pathinfo'/backoffice/salesorder/list') && preg_match('#^/backoffice/salesorder/list(?:/(?P<page>[^/]++))?$#sD'$pathinfo$matches)) {
  508.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorder_list')), array (  'page' => 1,  '_controller' => 'App\\Controller\\BackOffice\\SalesOrderController::listAction',  '_locale' => 'en',));
  509.                     if (!in_array($canonicalMethod, array('GET'))) {
  510.                         $allow array_merge($allow, array('GET'));
  511.                         goto not_app_backoffice_salesorder_list;
  512.                     }
  513.                     return $ret;
  514.                 }
  515.                 not_app_backoffice_salesorder_list:
  516.                 // app_backoffice_salesorder_create
  517.                 if ('/backoffice/salesorder/create' === $pathinfo) {
  518.                     return array (  '_controller' => 'App\\Controller\\BackOffice\\SalesOrderController::createAction',  '_locale' => 'en',  '_route' => 'app_backoffice_salesorder_create',);
  519.                 }
  520.                 // app_backoffice_salesorder_show
  521.                 if (preg_match('#^/backoffice/salesorder/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  522.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorder_show')), array (  '_controller' => 'App\\Controller\\BackOffice\\SalesOrderController::showAction',  '_locale' => 'en',));
  523.                     if (!in_array($canonicalMethod, array('GET'))) {
  524.                         $allow array_merge($allow, array('GET'));
  525.                         goto not_app_backoffice_salesorder_show;
  526.                     }
  527.                     return $ret;
  528.                 }
  529.                 not_app_backoffice_salesorder_show:
  530.                 // app_backoffice_salesorder_edit
  531.                 if (preg_match('#^/backoffice/salesorder/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  532.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorder_edit')), array (  '_controller' => 'App\\Controller\\BackOffice\\SalesOrderController::editAction',  '_locale' => 'en',));
  533.                 }
  534.                 // app_backoffice_salesorder_delete
  535.                 if (preg_match('#^/backoffice/salesorder/(?P<id>[^/]++)/delete$#sD'$pathinfo$matches)) {
  536.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorder_delete')), array (  '_controller' => 'App\\Controller\\BackOffice\\SalesOrderController::deleteAction',  '_locale' => 'en',));
  537.                     if (!in_array($requestMethod, array('POST'))) {
  538.                         $allow array_merge($allow, array('POST'));
  539.                         goto not_app_backoffice_salesorder_delete;
  540.                     }
  541.                     return $ret;
  542.                 }
  543.                 not_app_backoffice_salesorder_delete:
  544.                 // app_backoffice_salesorder_submit
  545.                 if (preg_match('#^/backoffice/salesorder/(?P<id>[^/]++)/submit$#sD'$pathinfo$matches)) {
  546.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorder_submit')), array (  '_controller' => 'App\\Controller\\BackOffice\\SalesOrderController::submit',  '_locale' => 'en',));
  547.                 }
  548.                 if (=== strpos($pathinfo'/backoffice/salesorderitem')) {
  549.                     // app_backoffice_salesorderitem_index
  550.                     if ('/backoffice/salesorderitem' === $trimmedPathinfo) {
  551.                         $ret = array (  '_controller' => 'App\\Controller\\BackOffice\\SalesOrderItemController::indexAction',  '_locale' => 'en',  '_route' => 'app_backoffice_salesorderitem_index',);
  552.                         if ('/' === substr($pathinfo, -1)) {
  553.                             // no-op
  554.                         } elseif ('GET' !== $canonicalMethod) {
  555.                             goto not_app_backoffice_salesorderitem_index;
  556.                         } else {
  557.                             return array_replace($ret$this->redirect($rawPathinfo.'/''app_backoffice_salesorderitem_index'));
  558.                         }
  559.                         return $ret;
  560.                     }
  561.                     not_app_backoffice_salesorderitem_index:
  562.                     // app_backoffice_salesorderitem_list
  563.                     if (=== strpos($pathinfo'/backoffice/salesorderitem/list') && preg_match('#^/backoffice/salesorderitem/list(?:/(?P<page>[^/]++))?$#sD'$pathinfo$matches)) {
  564.                         $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorderitem_list')), array (  'page' => 1,  '_controller' => 'App\\Controller\\BackOffice\\SalesOrderItemController::listAction',  '_locale' => 'en',));
  565.                         if (!in_array($canonicalMethod, array('GET'))) {
  566.                             $allow array_merge($allow, array('GET'));
  567.                             goto not_app_backoffice_salesorderitem_list;
  568.                         }
  569.                         return $ret;
  570.                     }
  571.                     not_app_backoffice_salesorderitem_list:
  572.                     // app_backoffice_salesorderitem_create
  573.                     if ('/backoffice/salesorderitem/create' === $pathinfo) {
  574.                         return array (  '_controller' => 'App\\Controller\\BackOffice\\SalesOrderItemController::createAction',  '_locale' => 'en',  '_route' => 'app_backoffice_salesorderitem_create',);
  575.                     }
  576.                     // app_backoffice_salesorderitem_show
  577.                     if (preg_match('#^/backoffice/salesorderitem/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  578.                         $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorderitem_show')), array (  '_controller' => 'App\\Controller\\BackOffice\\SalesOrderItemController::showAction',  '_locale' => 'en',));
  579.                         if (!in_array($canonicalMethod, array('GET'))) {
  580.                             $allow array_merge($allow, array('GET'));
  581.                             goto not_app_backoffice_salesorderitem_show;
  582.                         }
  583.                         return $ret;
  584.                     }
  585.                     not_app_backoffice_salesorderitem_show:
  586.                     // app_backoffice_salesorderitem_edit
  587.                     if (preg_match('#^/backoffice/salesorderitem/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  588.                         return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorderitem_edit')), array (  '_controller' => 'App\\Controller\\BackOffice\\SalesOrderItemController::editAction',  '_locale' => 'en',));
  589.                     }
  590.                     // app_backoffice_salesorderitem_delete
  591.                     if (preg_match('#^/backoffice/salesorderitem/(?P<id>[^/]++)/delete$#sD'$pathinfo$matches)) {
  592.                         $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorderitem_delete')), array (  '_controller' => 'App\\Controller\\BackOffice\\SalesOrderItemController::deleteAction',  '_locale' => 'en',));
  593.                         if (!in_array($requestMethod, array('POST'))) {
  594.                             $allow array_merge($allow, array('POST'));
  595.                             goto not_app_backoffice_salesorderitem_delete;
  596.                         }
  597.                         return $ret;
  598.                     }
  599.                     not_app_backoffice_salesorderitem_delete:
  600.                 }
  601.             }
  602.             elseif (=== strpos($pathinfo'/backoffice/uom')) {
  603.                 // app_backoffice_uom_index
  604.                 if ('/backoffice/uom' === $trimmedPathinfo) {
  605.                     $ret = array (  '_controller' => 'App\\Controller\\BackOffice\\UomController::indexAction',  '_locale' => 'en',  '_route' => 'app_backoffice_uom_index',);
  606.                     if ('/' === substr($pathinfo, -1)) {
  607.                         // no-op
  608.                     } elseif ('GET' !== $canonicalMethod) {
  609.                         goto not_app_backoffice_uom_index;
  610.                     } else {
  611.                         return array_replace($ret$this->redirect($rawPathinfo.'/''app_backoffice_uom_index'));
  612.                     }
  613.                     return $ret;
  614.                 }
  615.                 not_app_backoffice_uom_index:
  616.                 // app_backoffice_uom_list
  617.                 if (=== strpos($pathinfo'/backoffice/uom/list') && preg_match('#^/backoffice/uom/list(?:/(?P<page>[^/]++))?$#sD'$pathinfo$matches)) {
  618.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_uom_list')), array (  'page' => 1,  '_controller' => 'App\\Controller\\BackOffice\\UomController::listAction',  '_locale' => 'en',));
  619.                     if (!in_array($canonicalMethod, array('GET'))) {
  620.                         $allow array_merge($allow, array('GET'));
  621.                         goto not_app_backoffice_uom_list;
  622.                     }
  623.                     return $ret;
  624.                 }
  625.                 not_app_backoffice_uom_list:
  626.                 // app_backoffice_uom_create
  627.                 if ('/backoffice/uom/create' === $pathinfo) {
  628.                     return array (  '_controller' => 'App\\Controller\\BackOffice\\UomController::createAction',  '_locale' => 'en',  '_route' => 'app_backoffice_uom_create',);
  629.                 }
  630.                 // app_backoffice_uom_show
  631.                 if (preg_match('#^/backoffice/uom/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  632.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_uom_show')), array (  '_controller' => 'App\\Controller\\BackOffice\\UomController::showAction',  '_locale' => 'en',));
  633.                     if (!in_array($canonicalMethod, array('GET'))) {
  634.                         $allow array_merge($allow, array('GET'));
  635.                         goto not_app_backoffice_uom_show;
  636.                     }
  637.                     return $ret;
  638.                 }
  639.                 not_app_backoffice_uom_show:
  640.                 // app_backoffice_uom_edit
  641.                 if (preg_match('#^/backoffice/uom/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  642.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_uom_edit')), array (  '_controller' => 'App\\Controller\\BackOffice\\UomController::editAction',  '_locale' => 'en',));
  643.                 }
  644.                 // app_backoffice_uom_delete
  645.                 if (preg_match('#^/backoffice/uom/(?P<id>[^/]++)/delete$#sD'$pathinfo$matches)) {
  646.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_uom_delete')), array (  '_controller' => 'App\\Controller\\BackOffice\\UomController::deleteAction',  '_locale' => 'en',));
  647.                     if (!in_array($requestMethod, array('POST'))) {
  648.                         $allow array_merge($allow, array('POST'));
  649.                         goto not_app_backoffice_uom_delete;
  650.                     }
  651.                     return $ret;
  652.                 }
  653.                 not_app_backoffice_uom_delete:
  654.             }
  655.             elseif (=== strpos($pathinfo'/backoffice/user')) {
  656.                 // app_backoffice_useraccount_mycurrentlycompany
  657.                 if ('/backoffice/useraccount/mycurrentlycompany' === $pathinfo) {
  658.                     return array (  '_controller' => 'App\\Controller\\BackOffice\\UserAccountController::myCurrentlyCompany',  '_locale' => 'en',  '_route' => 'app_backoffice_useraccount_mycurrentlycompany',);
  659.                 }
  660.                 // app_backoffice_user_index
  661.                 if ('/backoffice/user' === $trimmedPathinfo) {
  662.                     $ret = array (  '_controller' => 'App\\Controller\\BackOffice\\UserController::indexAction',  '_locale' => 'en',  '_route' => 'app_backoffice_user_index',);
  663.                     if ('/' === substr($pathinfo, -1)) {
  664.                         // no-op
  665.                     } elseif ('GET' !== $canonicalMethod) {
  666.                         goto not_app_backoffice_user_index;
  667.                     } else {
  668.                         return array_replace($ret$this->redirect($rawPathinfo.'/''app_backoffice_user_index'));
  669.                     }
  670.                     return $ret;
  671.                 }
  672.                 not_app_backoffice_user_index:
  673.                 // app_backoffice_user_list
  674.                 if (=== strpos($pathinfo'/backoffice/user/list') && preg_match('#^/backoffice/user/list(?:/(?P<page>[^/]++))?$#sD'$pathinfo$matches)) {
  675.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_user_list')), array (  'page' => 1,  '_controller' => 'App\\Controller\\BackOffice\\UserController::listAction',  '_locale' => 'en',));
  676.                     if (!in_array($canonicalMethod, array('GET'))) {
  677.                         $allow array_merge($allow, array('GET'));
  678.                         goto not_app_backoffice_user_list;
  679.                     }
  680.                     return $ret;
  681.                 }
  682.                 not_app_backoffice_user_list:
  683.                 // app_backoffice_user_create
  684.                 if ('/backoffice/user/create' === $pathinfo) {
  685.                     return array (  '_controller' => 'App\\Controller\\BackOffice\\UserController::createAction',  '_locale' => 'en',  '_route' => 'app_backoffice_user_create',);
  686.                 }
  687.                 // app_backoffice_user_show
  688.                 if (preg_match('#^/backoffice/user/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  689.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_user_show')), array (  '_controller' => 'App\\Controller\\BackOffice\\UserController::showAction',  '_locale' => 'en',));
  690.                     if (!in_array($canonicalMethod, array('GET'))) {
  691.                         $allow array_merge($allow, array('GET'));
  692.                         goto not_app_backoffice_user_show;
  693.                     }
  694.                     return $ret;
  695.                 }
  696.                 not_app_backoffice_user_show:
  697.                 // app_backoffice_user_edit
  698.                 if (preg_match('#^/backoffice/user/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  699.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_user_edit')), array (  '_controller' => 'App\\Controller\\BackOffice\\UserController::editAction',  '_locale' => 'en',));
  700.                 }
  701.                 // app_backoffice_user_delete
  702.                 if (preg_match('#^/backoffice/user/(?P<id>[^/]++)/delete$#sD'$pathinfo$matches)) {
  703.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_user_delete')), array (  '_controller' => 'App\\Controller\\BackOffice\\UserController::deleteAction',  '_locale' => 'en',));
  704.                     if (!in_array($requestMethod, array('POST'))) {
  705.                         $allow array_merge($allow, array('POST'));
  706.                         goto not_app_backoffice_user_delete;
  707.                     }
  708.                     return $ret;
  709.                 }
  710.                 not_app_backoffice_user_delete:
  711.             }
  712.             elseif (=== strpos($pathinfo'/backoffice/warehouse')) {
  713.                 // app_backoffice_warehouse_index
  714.                 if ('/backoffice/warehouse' === $trimmedPathinfo) {
  715.                     $ret = array (  '_controller' => 'App\\Controller\\BackOffice\\WarehouseController::indexAction',  '_locale' => 'en',  '_route' => 'app_backoffice_warehouse_index',);
  716.                     if ('/' === substr($pathinfo, -1)) {
  717.                         // no-op
  718.                     } elseif ('GET' !== $canonicalMethod) {
  719.                         goto not_app_backoffice_warehouse_index;
  720.                     } else {
  721.                         return array_replace($ret$this->redirect($rawPathinfo.'/''app_backoffice_warehouse_index'));
  722.                     }
  723.                     return $ret;
  724.                 }
  725.                 not_app_backoffice_warehouse_index:
  726.                 // app_backoffice_warehouse_list
  727.                 if (=== strpos($pathinfo'/backoffice/warehouse/list') && preg_match('#^/backoffice/warehouse/list(?:/(?P<page>[^/]++))?$#sD'$pathinfo$matches)) {
  728.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_warehouse_list')), array (  'page' => 1,  '_controller' => 'App\\Controller\\BackOffice\\WarehouseController::listAction',  '_locale' => 'en',));
  729.                     if (!in_array($canonicalMethod, array('GET'))) {
  730.                         $allow array_merge($allow, array('GET'));
  731.                         goto not_app_backoffice_warehouse_list;
  732.                     }
  733.                     return $ret;
  734.                 }
  735.                 not_app_backoffice_warehouse_list:
  736.                 // app_backoffice_warehouse_create
  737.                 if ('/backoffice/warehouse/create' === $pathinfo) {
  738.                     return array (  '_controller' => 'App\\Controller\\BackOffice\\WarehouseController::createAction',  '_locale' => 'en',  '_route' => 'app_backoffice_warehouse_create',);
  739.                 }
  740.                 // app_backoffice_warehouse_show
  741.                 if (preg_match('#^/backoffice/warehouse/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  742.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_warehouse_show')), array (  '_controller' => 'App\\Controller\\BackOffice\\WarehouseController::showAction',  '_locale' => 'en',));
  743.                     if (!in_array($canonicalMethod, array('GET'))) {
  744.                         $allow array_merge($allow, array('GET'));
  745.                         goto not_app_backoffice_warehouse_show;
  746.                     }
  747.                     return $ret;
  748.                 }
  749.                 not_app_backoffice_warehouse_show:
  750.                 // app_backoffice_warehouse_edit
  751.                 if (preg_match('#^/backoffice/warehouse/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  752.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_warehouse_edit')), array (  '_controller' => 'App\\Controller\\BackOffice\\WarehouseController::editAction',  '_locale' => 'en',));
  753.                 }
  754.                 // app_backoffice_warehouse_delete
  755.                 if (preg_match('#^/backoffice/warehouse/(?P<id>[^/]++)/delete$#sD'$pathinfo$matches)) {
  756.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_warehouse_delete')), array (  '_controller' => 'App\\Controller\\BackOffice\\WarehouseController::deleteAction',  '_locale' => 'en',));
  757.                     if (!in_array($requestMethod, array('POST'))) {
  758.                         $allow array_merge($allow, array('POST'));
  759.                         goto not_app_backoffice_warehouse_delete;
  760.                     }
  761.                     return $ret;
  762.                 }
  763.                 not_app_backoffice_warehouse_delete:
  764.             }
  765.             elseif (=== strpos($pathinfo'/backoffice/admin')) {
  766.                 // easyadmin
  767.                 if ('/backoffice/admin' === $trimmedPathinfo) {
  768.                     $ret = array (  '_controller' => 'EasyCorp\\Bundle\\EasyAdminBundle\\Controller\\AdminController::indexAction',  '_route' => 'easyadmin',);
  769.                     if ('/' === substr($pathinfo, -1)) {
  770.                         // no-op
  771.                     } elseif ('GET' !== $canonicalMethod) {
  772.                         goto not_easyadmin;
  773.                     } else {
  774.                         return array_replace($ret$this->redirect($rawPathinfo.'/''easyadmin'));
  775.                     }
  776.                     return $ret;
  777.                 }
  778.                 not_easyadmin:
  779.                 // admin
  780.                 if ('/backoffice/admin' === $trimmedPathinfo) {
  781.                     $ret = array (  '_controller' => 'EasyCorp\\Bundle\\EasyAdminBundle\\Controller\\AdminController::indexAction',  '_route' => 'admin',);
  782.                     if ('/' === substr($pathinfo, -1)) {
  783.                         // no-op
  784.                     } elseif ('GET' !== $canonicalMethod) {
  785.                         goto not_admin;
  786.                     } else {
  787.                         return array_replace($ret$this->redirect($rawPathinfo.'/''admin'));
  788.                     }
  789.                     return $ret;
  790.                 }
  791.                 not_admin:
  792.             }
  793.         }
  794.         elseif (=== strpos($pathinfo'/login')) {
  795.             // fos_user_security_login
  796.             if ('/login' === $pathinfo) {
  797.                 $ret = array (  '_controller' => 'fos_user.security.controller:loginAction',  '_route' => 'fos_user_security_login',);
  798.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  799.                     $allow array_merge($allow, array('GET''POST'));
  800.                     goto not_fos_user_security_login;
  801.                 }
  802.                 return $ret;
  803.             }
  804.             not_fos_user_security_login:
  805.             // fos_user_security_check
  806.             if ('/login_check' === $pathinfo) {
  807.                 $ret = array (  '_controller' => 'fos_user.security.controller:checkAction',  '_route' => 'fos_user_security_check',);
  808.                 if (!in_array($requestMethod, array('POST'))) {
  809.                     $allow array_merge($allow, array('POST'));
  810.                     goto not_fos_user_security_check;
  811.                 }
  812.                 return $ret;
  813.             }
  814.             not_fos_user_security_check:
  815.         }
  816.         // fos_user_security_logout
  817.         if ('/logout' === $pathinfo) {
  818.             $ret = array (  '_controller' => 'fos_user.security.controller:logoutAction',  '_route' => 'fos_user_security_logout',);
  819.             if (!in_array($canonicalMethod, array('GET''POST'))) {
  820.                 $allow array_merge($allow, array('GET''POST'));
  821.                 goto not_fos_user_security_logout;
  822.             }
  823.             return $ret;
  824.         }
  825.         not_fos_user_security_logout:
  826.         if (=== strpos($pathinfo'/profile')) {
  827.             // fos_user_profile_show
  828.             if ('/profile' === $trimmedPathinfo) {
  829.                 $ret = array (  '_controller' => 'fos_user.profile.controller:showAction',  '_route' => 'fos_user_profile_show',);
  830.                 if ('/' === substr($pathinfo, -1)) {
  831.                     // no-op
  832.                 } elseif ('GET' !== $canonicalMethod) {
  833.                     goto not_fos_user_profile_show;
  834.                 } else {
  835.                     return array_replace($ret$this->redirect($rawPathinfo.'/''fos_user_profile_show'));
  836.                 }
  837.                 if (!in_array($canonicalMethod, array('GET'))) {
  838.                     $allow array_merge($allow, array('GET'));
  839.                     goto not_fos_user_profile_show;
  840.                 }
  841.                 return $ret;
  842.             }
  843.             not_fos_user_profile_show:
  844.             // fos_user_profile_edit
  845.             if ('/profile/edit' === $pathinfo) {
  846.                 $ret = array (  '_controller' => 'fos_user.profile.controller:editAction',  '_route' => 'fos_user_profile_edit',);
  847.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  848.                     $allow array_merge($allow, array('GET''POST'));
  849.                     goto not_fos_user_profile_edit;
  850.                 }
  851.                 return $ret;
  852.             }
  853.             not_fos_user_profile_edit:
  854.             // fos_user_change_password
  855.             if ('/profile/change-password' === $pathinfo) {
  856.                 $ret = array (  '_controller' => 'fos_user.change_password.controller:changePasswordAction',  '_route' => 'fos_user_change_password',);
  857.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  858.                     $allow array_merge($allow, array('GET''POST'));
  859.                     goto not_fos_user_change_password;
  860.                 }
  861.                 return $ret;
  862.             }
  863.             not_fos_user_change_password:
  864.         }
  865.         elseif (=== strpos($pathinfo'/register')) {
  866.             // fos_user_registration_register
  867.             if ('/register' === $trimmedPathinfo) {
  868.                 $ret = array (  '_controller' => 'fos_user.registration.controller:registerAction',  '_route' => 'fos_user_registration_register',);
  869.                 if ('/' === substr($pathinfo, -1)) {
  870.                     // no-op
  871.                 } elseif ('GET' !== $canonicalMethod) {
  872.                     goto not_fos_user_registration_register;
  873.                 } else {
  874.                     return array_replace($ret$this->redirect($rawPathinfo.'/''fos_user_registration_register'));
  875.                 }
  876.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  877.                     $allow array_merge($allow, array('GET''POST'));
  878.                     goto not_fos_user_registration_register;
  879.                 }
  880.                 return $ret;
  881.             }
  882.             not_fos_user_registration_register:
  883.             // fos_user_registration_check_email
  884.             if ('/register/check-email' === $pathinfo) {
  885.                 $ret = array (  '_controller' => 'fos_user.registration.controller:checkEmailAction',  '_route' => 'fos_user_registration_check_email',);
  886.                 if (!in_array($canonicalMethod, array('GET'))) {
  887.                     $allow array_merge($allow, array('GET'));
  888.                     goto not_fos_user_registration_check_email;
  889.                 }
  890.                 return $ret;
  891.             }
  892.             not_fos_user_registration_check_email:
  893.             if (=== strpos($pathinfo'/register/confirm')) {
  894.                 // fos_user_registration_confirm
  895.                 if (preg_match('#^/register/confirm/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  896.                     $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_registration_confirm')), array (  '_controller' => 'fos_user.registration.controller:confirmAction',));
  897.                     if (!in_array($canonicalMethod, array('GET'))) {
  898.                         $allow array_merge($allow, array('GET'));
  899.                         goto not_fos_user_registration_confirm;
  900.                     }
  901.                     return $ret;
  902.                 }
  903.                 not_fos_user_registration_confirm:
  904.                 // fos_user_registration_confirmed
  905.                 if ('/register/confirmed' === $pathinfo) {
  906.                     $ret = array (  '_controller' => 'fos_user.registration.controller:confirmedAction',  '_route' => 'fos_user_registration_confirmed',);
  907.                     if (!in_array($canonicalMethod, array('GET'))) {
  908.                         $allow array_merge($allow, array('GET'));
  909.                         goto not_fos_user_registration_confirmed;
  910.                     }
  911.                     return $ret;
  912.                 }
  913.                 not_fos_user_registration_confirmed:
  914.             }
  915.         }
  916.         elseif (=== strpos($pathinfo'/resetting')) {
  917.             // fos_user_resetting_request
  918.             if ('/resetting/request' === $pathinfo) {
  919.                 $ret = array (  '_controller' => 'fos_user.resetting.controller:requestAction',  '_route' => 'fos_user_resetting_request',);
  920.                 if (!in_array($canonicalMethod, array('GET'))) {
  921.                     $allow array_merge($allow, array('GET'));
  922.                     goto not_fos_user_resetting_request;
  923.                 }
  924.                 return $ret;
  925.             }
  926.             not_fos_user_resetting_request:
  927.             // fos_user_resetting_reset
  928.             if (=== strpos($pathinfo'/resetting/reset') && preg_match('#^/resetting/reset/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  929.                 $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_resetting_reset')), array (  '_controller' => 'fos_user.resetting.controller:resetAction',));
  930.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  931.                     $allow array_merge($allow, array('GET''POST'));
  932.                     goto not_fos_user_resetting_reset;
  933.                 }
  934.                 return $ret;
  935.             }
  936.             not_fos_user_resetting_reset:
  937.             // fos_user_resetting_send_email
  938.             if ('/resetting/send-email' === $pathinfo) {
  939.                 $ret = array (  '_controller' => 'fos_user.resetting.controller:sendEmailAction',  '_route' => 'fos_user_resetting_send_email',);
  940.                 if (!in_array($requestMethod, array('POST'))) {
  941.                     $allow array_merge($allow, array('POST'));
  942.                     goto not_fos_user_resetting_send_email;
  943.                 }
  944.                 return $ret;
  945.             }
  946.             not_fos_user_resetting_send_email:
  947.             // fos_user_resetting_check_email
  948.             if ('/resetting/check-email' === $pathinfo) {
  949.                 $ret = array (  '_controller' => 'fos_user.resetting.controller:checkEmailAction',  '_route' => 'fos_user_resetting_check_email',);
  950.                 if (!in_array($canonicalMethod, array('GET'))) {
  951.                     $allow array_merge($allow, array('GET'));
  952.                     goto not_fos_user_resetting_check_email;
  953.                 }
  954.                 return $ret;
  955.             }
  956.             not_fos_user_resetting_check_email:
  957.         }
  958.         elseif (=== strpos($pathinfo'/_')) {
  959.             // _twig_error_test
  960.             if (=== strpos($pathinfo'/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  961.                 return $this->mergeDefaults(array_replace($matches, array('_route' => '_twig_error_test')), array (  '_controller' => 'twig.controller.preview_error:previewErrorPageAction',  '_format' => 'html',));
  962.             }
  963.             // _wdt
  964.             if (=== strpos($pathinfo'/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  965.                 return $this->mergeDefaults(array_replace($matches, array('_route' => '_wdt')), array (  '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
  966.             }
  967.             if (=== strpos($pathinfo'/_profiler')) {
  968.                 // _profiler_home
  969.                 if ('/_profiler' === $trimmedPathinfo) {
  970.                     $ret = array (  '_controller' => 'web_profiler.controller.profiler:homeAction',  '_route' => '_profiler_home',);
  971.                     if ('/' === substr($pathinfo, -1)) {
  972.                         // no-op
  973.                     } elseif ('GET' !== $canonicalMethod) {
  974.                         goto not__profiler_home;
  975.                     } else {
  976.                         return array_replace($ret$this->redirect($rawPathinfo.'/''_profiler_home'));
  977.                     }
  978.                     return $ret;
  979.                 }
  980.                 not__profiler_home:
  981.                 if (=== strpos($pathinfo'/_profiler/search')) {
  982.                     // _profiler_search
  983.                     if ('/_profiler/search' === $pathinfo) {
  984.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchAction',  '_route' => '_profiler_search',);
  985.                     }
  986.                     // _profiler_search_bar
  987.                     if ('/_profiler/search_bar' === $pathinfo) {
  988.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchBarAction',  '_route' => '_profiler_search_bar',);
  989.                     }
  990.                 }
  991.                 // _profiler_phpinfo
  992.                 if ('/_profiler/phpinfo' === $pathinfo) {
  993.                     return array (  '_controller' => 'web_profiler.controller.profiler:phpinfoAction',  '_route' => '_profiler_phpinfo',);
  994.                 }
  995.                 // _profiler_search_results
  996.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#sD'$pathinfo$matches)) {
  997.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_search_results')), array (  '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
  998.                 }
  999.                 // _profiler_open_file
  1000.                 if ('/_profiler/open' === $pathinfo) {
  1001.                     return array (  '_controller' => 'web_profiler.controller.profiler:openAction',  '_route' => '_profiler_open_file',);
  1002.                 }
  1003.                 // _profiler
  1004.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  1005.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler')), array (  '_controller' => 'web_profiler.controller.profiler:panelAction',));
  1006.                 }
  1007.                 // _profiler_router
  1008.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#sD'$pathinfo$matches)) {
  1009.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_router')), array (  '_controller' => 'web_profiler.controller.router:panelAction',));
  1010.                 }
  1011.                 // _profiler_exception
  1012.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#sD'$pathinfo$matches)) {
  1013.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception')), array (  '_controller' => 'web_profiler.controller.exception:showAction',));
  1014.                 }
  1015.                 // _profiler_exception_css
  1016.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#sD'$pathinfo$matches)) {
  1017.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception_css')), array (  '_controller' => 'web_profiler.controller.exception:cssAction',));
  1018.                 }
  1019.             }
  1020.         }
  1021.         // homepage
  1022.         if ('' === $trimmedPathinfo) {
  1023.             $ret = array (  'template' => 'home/homepage.html.twig',  '_locale' => 'en',  '_controller' => 'App\\Controller\\HomeController::homepage',  '_route' => 'homepage',);
  1024.             if ('/' === substr($pathinfo, -1)) {
  1025.                 // no-op
  1026.             } elseif ('GET' !== $canonicalMethod) {
  1027.                 goto not_homepage;
  1028.             } else {
  1029.                 return array_replace($ret$this->redirect($rawPathinfo.'/''homepage'));
  1030.             }
  1031.             return $ret;
  1032.         }
  1033.         not_homepage:
  1034.         if ('/' === $pathinfo) {
  1035.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  1036.         }
  1037.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  1038.     }
  1039. }