<?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class srcDevDebugProjectContainerUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
{
public function __construct(RequestContext $context)
{
$this->context = $context;
}
public function match($rawPathinfo)
{
$allow = array();
$pathinfo = rawurldecode($rawPathinfo);
$trimmedPathinfo = rtrim($pathinfo, '/');
$context = $this->context;
$request = $this->request ?: $this->createRequest($pathinfo);
$requestMethod = $canonicalMethod = $context->getMethod();
if ('HEAD' === $requestMethod) {
$canonicalMethod = 'GET';
}
if (0 === strpos($pathinfo, '/backoffice')) {
if (0 === strpos($pathinfo, '/backoffice/customerpurchaseorder')) {
// app_backoffice_customerpurchaseorder_index
if ('/backoffice/customerpurchaseorder' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderController::indexAction', '_locale' => 'en', '_route' => 'app_backoffice_customerpurchaseorder_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_backoffice_customerpurchaseorder_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_backoffice_customerpurchaseorder_index'));
}
return $ret;
}
not_app_backoffice_customerpurchaseorder_index:
// app_backoffice_customerpurchaseorder_list
if (0 === strpos($pathinfo, '/backoffice/customerpurchaseorder/list') && preg_match('#^/backoffice/customerpurchaseorder/list(?:/(?P<page>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorder_list')), array ( 'page' => 1, '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderController::listAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_customerpurchaseorder_list;
}
return $ret;
}
not_app_backoffice_customerpurchaseorder_list:
// app_backoffice_customerpurchaseorder_create
if ('/backoffice/customerpurchaseorder/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderController::createAction', '_locale' => 'en', '_route' => 'app_backoffice_customerpurchaseorder_create',);
}
// app_backoffice_customerpurchaseorder_show
if (preg_match('#^/backoffice/customerpurchaseorder/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorder_show')), array ( '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderController::showAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_customerpurchaseorder_show;
}
return $ret;
}
not_app_backoffice_customerpurchaseorder_show:
// app_backoffice_customerpurchaseorder_edit
if (preg_match('#^/backoffice/customerpurchaseorder/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorder_edit')), array ( '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderController::editAction', '_locale' => 'en',));
}
// app_backoffice_customerpurchaseorder_delete
if (preg_match('#^/backoffice/customerpurchaseorder/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorder_delete')), array ( '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderController::deleteAction', '_locale' => 'en',));
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_backoffice_customerpurchaseorder_delete;
}
return $ret;
}
not_app_backoffice_customerpurchaseorder_delete:
if (0 === strpos($pathinfo, '/backoffice/customerpurchaseorderitem')) {
// app_backoffice_customerpurchaseorderitem_index
if ('/backoffice/customerpurchaseorderitem' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderItemController::indexAction', '_locale' => 'en', '_route' => 'app_backoffice_customerpurchaseorderitem_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_backoffice_customerpurchaseorderitem_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_backoffice_customerpurchaseorderitem_index'));
}
return $ret;
}
not_app_backoffice_customerpurchaseorderitem_index:
// app_backoffice_customerpurchaseorderitem_list
if (0 === strpos($pathinfo, '/backoffice/customerpurchaseorderitem/list') && preg_match('#^/backoffice/customerpurchaseorderitem/list(?:/(?P<page>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorderitem_list')), array ( 'page' => 1, '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderItemController::listAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_customerpurchaseorderitem_list;
}
return $ret;
}
not_app_backoffice_customerpurchaseorderitem_list:
// app_backoffice_customerpurchaseorderitem_create
if ('/backoffice/customerpurchaseorderitem/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderItemController::createAction', '_locale' => 'en', '_route' => 'app_backoffice_customerpurchaseorderitem_create',);
}
// app_backoffice_customerpurchaseorderitem_show
if (preg_match('#^/backoffice/customerpurchaseorderitem/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorderitem_show')), array ( '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderItemController::showAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_customerpurchaseorderitem_show;
}
return $ret;
}
not_app_backoffice_customerpurchaseorderitem_show:
// app_backoffice_customerpurchaseorderitem_edit
if (preg_match('#^/backoffice/customerpurchaseorderitem/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorderitem_edit')), array ( '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderItemController::editAction', '_locale' => 'en',));
}
// app_backoffice_customerpurchaseorderitem_delete
if (preg_match('#^/backoffice/customerpurchaseorderitem/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_customerpurchaseorderitem_delete')), array ( '_controller' => 'App\\Controller\\BackOffice\\CustomerPurchaseOrderItemController::deleteAction', '_locale' => 'en',));
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_backoffice_customerpurchaseorderitem_delete;
}
return $ret;
}
not_app_backoffice_customerpurchaseorderitem_delete:
}
}
// dashboard_index
if ('/backoffice/dashboard' === $trimmedPathinfo) {
$ret = array ( 'page' => '1', '_format' => 'html', '_controller' => 'App\\Controller\\BackOffice\\DashboardController::index', '_locale' => 'en', '_route' => 'dashboard_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_dashboard_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'dashboard_index'));
}
return $ret;
}
not_dashboard_index:
if (0 === strpos($pathinfo, '/backoffice/managedorganization')) {
// app_backoffice_managedorganization_create
if ('/backoffice/managedorganization/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\ManagedOrganizationController::createAction', '_locale' => 'en', '_route' => 'app_backoffice_managedorganization_create',);
}
// app_backoffice_managedorganization_edit
if (preg_match('#^/backoffice/managedorganization/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_managedorganization_edit')), array ( '_controller' => 'App\\Controller\\BackOffice\\ManagedOrganizationController::editAction', '_locale' => 'en',));
}
// app_backoffice_managedorganization_delete
if (preg_match('#^/backoffice/managedorganization/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_managedorganization_delete')), array ( '_controller' => 'App\\Controller\\BackOffice\\ManagedOrganizationController::deleteAction', '_locale' => 'en',));
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_backoffice_managedorganization_delete;
}
return $ret;
}
not_app_backoffice_managedorganization_delete:
}
elseif (0 === strpos($pathinfo, '/backoffice/organization')) {
// app_backoffice_organization_index
if ('/backoffice/organization' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\BackOffice\\OrganizationController::indexAction', '_locale' => 'en', '_route' => 'app_backoffice_organization_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_backoffice_organization_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_backoffice_organization_index'));
}
return $ret;
}
not_app_backoffice_organization_index:
// app_backoffice_organization_list
if (0 === strpos($pathinfo, '/backoffice/organization/list') && preg_match('#^/backoffice/organization/list(?:/(?P<page>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_organization_list')), array ( 'page' => 1, '_controller' => 'App\\Controller\\BackOffice\\OrganizationController::listAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_organization_list;
}
return $ret;
}
not_app_backoffice_organization_list:
// app_backoffice_organization_create
if ('/backoffice/organization/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\OrganizationController::createAction', '_locale' => 'en', '_route' => 'app_backoffice_organization_create',);
}
// app_backoffice_organization_show
if (preg_match('#^/backoffice/organization/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_organization_show')), array ( '_controller' => 'App\\Controller\\BackOffice\\OrganizationController::showAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_organization_show;
}
return $ret;
}
not_app_backoffice_organization_show:
// app_backoffice_organization_edit
if (preg_match('#^/backoffice/organization/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_organization_edit')), array ( '_controller' => 'App\\Controller\\BackOffice\\OrganizationController::editAction', '_locale' => 'en',));
}
// app_backoffice_organization_delete
if (preg_match('#^/backoffice/organization/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_organization_delete')), array ( '_controller' => 'App\\Controller\\BackOffice\\OrganizationController::deleteAction', '_locale' => 'en',));
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_backoffice_organization_delete;
}
return $ret;
}
not_app_backoffice_organization_delete:
}
elseif (0 === strpos($pathinfo, '/backoffice/product')) {
// app_backoffice_product_index
if ('/backoffice/product' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\BackOffice\\ProductController::indexAction', '_locale' => 'en', '_route' => 'app_backoffice_product_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_backoffice_product_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_backoffice_product_index'));
}
return $ret;
}
not_app_backoffice_product_index:
// app_backoffice_product_list
if (0 === strpos($pathinfo, '/backoffice/product/list') && preg_match('#^/backoffice/product/list(?:/(?P<page>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_product_list')), array ( 'page' => 1, '_controller' => 'App\\Controller\\BackOffice\\ProductController::listAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_product_list;
}
return $ret;
}
not_app_backoffice_product_list:
// app_backoffice_product_create
if ('/backoffice/product/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\ProductController::createAction', '_locale' => 'en', '_route' => 'app_backoffice_product_create',);
}
// app_backoffice_product_show
if (preg_match('#^/backoffice/product/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_product_show')), array ( '_controller' => 'App\\Controller\\BackOffice\\ProductController::showAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_product_show;
}
return $ret;
}
not_app_backoffice_product_show:
// app_backoffice_product_edit
if (preg_match('#^/backoffice/product/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_product_edit')), array ( '_controller' => 'App\\Controller\\BackOffice\\ProductController::editAction', '_locale' => 'en',));
}
// app_backoffice_product_delete
if (preg_match('#^/backoffice/product/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_product_delete')), array ( '_controller' => 'App\\Controller\\BackOffice\\ProductController::deleteAction', '_locale' => 'en',));
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_backoffice_product_delete;
}
return $ret;
}
not_app_backoffice_product_delete:
}
elseif (0 === strpos($pathinfo, '/backoffice/purchase')) {
// app_backoffice_purchase_index
if ('/backoffice/purchase' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseController::indexAction', '_locale' => 'en', '_route' => 'app_backoffice_purchase_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_backoffice_purchase_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_backoffice_purchase_index'));
}
return $ret;
}
not_app_backoffice_purchase_index:
// app_backoffice_purchase_list
if (0 === strpos($pathinfo, '/backoffice/purchase/list') && preg_match('#^/backoffice/purchase/list(?:/(?P<page>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchase_list')), array ( 'page' => 1, '_controller' => 'App\\Controller\\BackOffice\\PurchaseController::listAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_purchase_list;
}
return $ret;
}
not_app_backoffice_purchase_list:
// app_backoffice_purchase_create
if ('/backoffice/purchase/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseController::createAction', '_locale' => 'en', '_route' => 'app_backoffice_purchase_create',);
}
// app_backoffice_purchase_show
if (preg_match('#^/backoffice/purchase/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchase_show')), array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseController::showAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_purchase_show;
}
return $ret;
}
not_app_backoffice_purchase_show:
// app_backoffice_purchase_edit
if (preg_match('#^/backoffice/purchase/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchase_edit')), array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseController::editAction', '_locale' => 'en',));
}
// app_backoffice_purchase_delete
if (preg_match('#^/backoffice/purchase/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchase_delete')), array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseController::deleteAction', '_locale' => 'en',));
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_backoffice_purchase_delete;
}
return $ret;
}
not_app_backoffice_purchase_delete:
// app_backoffice_purchase_submit
if (preg_match('#^/backoffice/purchase/(?P<id>[^/]++)/submit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchase_submit')), array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseController::submit', '_locale' => 'en',));
}
if (0 === strpos($pathinfo, '/backoffice/purchaseitem')) {
// app_backoffice_purchaseitem_index
if ('/backoffice/purchaseitem' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseItemController::indexAction', '_locale' => 'en', '_route' => 'app_backoffice_purchaseitem_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_backoffice_purchaseitem_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_backoffice_purchaseitem_index'));
}
return $ret;
}
not_app_backoffice_purchaseitem_index:
// app_backoffice_purchaseitem_list
if (0 === strpos($pathinfo, '/backoffice/purchaseitem/list') && preg_match('#^/backoffice/purchaseitem/list(?:/(?P<page>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseitem_list')), array ( 'page' => 1, '_controller' => 'App\\Controller\\BackOffice\\PurchaseItemController::listAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_purchaseitem_list;
}
return $ret;
}
not_app_backoffice_purchaseitem_list:
// app_backoffice_purchaseitem_create
if ('/backoffice/purchaseitem/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseItemController::createAction', '_locale' => 'en', '_route' => 'app_backoffice_purchaseitem_create',);
}
// app_backoffice_purchaseitem_show
if (preg_match('#^/backoffice/purchaseitem/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseitem_show')), array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseItemController::showAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_purchaseitem_show;
}
return $ret;
}
not_app_backoffice_purchaseitem_show:
// app_backoffice_purchaseitem_edit
if (preg_match('#^/backoffice/purchaseitem/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseitem_edit')), array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseItemController::editAction', '_locale' => 'en',));
}
// app_backoffice_purchaseitem_delete
if (preg_match('#^/backoffice/purchaseitem/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseitem_delete')), array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseItemController::deleteAction', '_locale' => 'en',));
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_backoffice_purchaseitem_delete;
}
return $ret;
}
not_app_backoffice_purchaseitem_delete:
}
elseif (0 === strpos($pathinfo, '/backoffice/purchaseorder')) {
// app_backoffice_purchaseorder_index
if ('/backoffice/purchaseorder' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderController::indexAction', '_locale' => 'en', '_route' => 'app_backoffice_purchaseorder_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_backoffice_purchaseorder_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_backoffice_purchaseorder_index'));
}
return $ret;
}
not_app_backoffice_purchaseorder_index:
// app_backoffice_purchaseorder_list
if (0 === strpos($pathinfo, '/backoffice/purchaseorder/list') && preg_match('#^/backoffice/purchaseorder/list(?:/(?P<page>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorder_list')), array ( 'page' => 1, '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderController::listAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_purchaseorder_list;
}
return $ret;
}
not_app_backoffice_purchaseorder_list:
// app_backoffice_purchaseorder_create
if ('/backoffice/purchaseorder/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderController::createAction', '_locale' => 'en', '_route' => 'app_backoffice_purchaseorder_create',);
}
// app_backoffice_purchaseorder_show
if (preg_match('#^/backoffice/purchaseorder/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorder_show')), array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderController::showAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_purchaseorder_show;
}
return $ret;
}
not_app_backoffice_purchaseorder_show:
// app_backoffice_purchaseorder_edit
if (preg_match('#^/backoffice/purchaseorder/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorder_edit')), array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderController::editAction', '_locale' => 'en',));
}
// app_backoffice_purchaseorder_delete
if (preg_match('#^/backoffice/purchaseorder/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorder_delete')), array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderController::deleteAction', '_locale' => 'en',));
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_backoffice_purchaseorder_delete;
}
return $ret;
}
not_app_backoffice_purchaseorder_delete:
// app_backoffice_purchaseorder_submit
if (preg_match('#^/backoffice/purchaseorder/(?P<id>[^/]++)/submit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorder_submit')), array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderController::submit', '_locale' => 'en',));
}
if (0 === strpos($pathinfo, '/backoffice/purchaseorderitem')) {
// app_backoffice_purchaseorderitem_index
if ('/backoffice/purchaseorderitem' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderItemController::indexAction', '_locale' => 'en', '_route' => 'app_backoffice_purchaseorderitem_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_backoffice_purchaseorderitem_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_backoffice_purchaseorderitem_index'));
}
return $ret;
}
not_app_backoffice_purchaseorderitem_index:
// app_backoffice_purchaseorderitem_list
if (0 === strpos($pathinfo, '/backoffice/purchaseorderitem/list') && preg_match('#^/backoffice/purchaseorderitem/list(?:/(?P<page>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorderitem_list')), array ( 'page' => 1, '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderItemController::listAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_purchaseorderitem_list;
}
return $ret;
}
not_app_backoffice_purchaseorderitem_list:
// app_backoffice_purchaseorderitem_create
if ('/backoffice/purchaseorderitem/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderItemController::createAction', '_locale' => 'en', '_route' => 'app_backoffice_purchaseorderitem_create',);
}
// app_backoffice_purchaseorderitem_show
if (preg_match('#^/backoffice/purchaseorderitem/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorderitem_show')), array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderItemController::showAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_purchaseorderitem_show;
}
return $ret;
}
not_app_backoffice_purchaseorderitem_show:
// app_backoffice_purchaseorderitem_edit
if (preg_match('#^/backoffice/purchaseorderitem/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorderitem_edit')), array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderItemController::editAction', '_locale' => 'en',));
}
// app_backoffice_purchaseorderitem_delete
if (preg_match('#^/backoffice/purchaseorderitem/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_purchaseorderitem_delete')), array ( '_controller' => 'App\\Controller\\BackOffice\\PurchaseOrderItemController::deleteAction', '_locale' => 'en',));
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_backoffice_purchaseorderitem_delete;
}
return $ret;
}
not_app_backoffice_purchaseorderitem_delete:
}
}
}
elseif (0 === strpos($pathinfo, '/backoffice/salesorder')) {
// app_backoffice_salesorder_index
if ('/backoffice/salesorder' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\BackOffice\\SalesOrderController::indexAction', '_locale' => 'en', '_route' => 'app_backoffice_salesorder_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_backoffice_salesorder_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_backoffice_salesorder_index'));
}
return $ret;
}
not_app_backoffice_salesorder_index:
// app_backoffice_salesorder_list
if (0 === strpos($pathinfo, '/backoffice/salesorder/list') && preg_match('#^/backoffice/salesorder/list(?:/(?P<page>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorder_list')), array ( 'page' => 1, '_controller' => 'App\\Controller\\BackOffice\\SalesOrderController::listAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_salesorder_list;
}
return $ret;
}
not_app_backoffice_salesorder_list:
// app_backoffice_salesorder_create
if ('/backoffice/salesorder/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\SalesOrderController::createAction', '_locale' => 'en', '_route' => 'app_backoffice_salesorder_create',);
}
// app_backoffice_salesorder_show
if (preg_match('#^/backoffice/salesorder/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorder_show')), array ( '_controller' => 'App\\Controller\\BackOffice\\SalesOrderController::showAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_salesorder_show;
}
return $ret;
}
not_app_backoffice_salesorder_show:
// app_backoffice_salesorder_edit
if (preg_match('#^/backoffice/salesorder/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorder_edit')), array ( '_controller' => 'App\\Controller\\BackOffice\\SalesOrderController::editAction', '_locale' => 'en',));
}
// app_backoffice_salesorder_delete
if (preg_match('#^/backoffice/salesorder/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorder_delete')), array ( '_controller' => 'App\\Controller\\BackOffice\\SalesOrderController::deleteAction', '_locale' => 'en',));
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_backoffice_salesorder_delete;
}
return $ret;
}
not_app_backoffice_salesorder_delete:
// app_backoffice_salesorder_submit
if (preg_match('#^/backoffice/salesorder/(?P<id>[^/]++)/submit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorder_submit')), array ( '_controller' => 'App\\Controller\\BackOffice\\SalesOrderController::submit', '_locale' => 'en',));
}
if (0 === strpos($pathinfo, '/backoffice/salesorderitem')) {
// app_backoffice_salesorderitem_index
if ('/backoffice/salesorderitem' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\BackOffice\\SalesOrderItemController::indexAction', '_locale' => 'en', '_route' => 'app_backoffice_salesorderitem_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_backoffice_salesorderitem_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_backoffice_salesorderitem_index'));
}
return $ret;
}
not_app_backoffice_salesorderitem_index:
// app_backoffice_salesorderitem_list
if (0 === strpos($pathinfo, '/backoffice/salesorderitem/list') && preg_match('#^/backoffice/salesorderitem/list(?:/(?P<page>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorderitem_list')), array ( 'page' => 1, '_controller' => 'App\\Controller\\BackOffice\\SalesOrderItemController::listAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_salesorderitem_list;
}
return $ret;
}
not_app_backoffice_salesorderitem_list:
// app_backoffice_salesorderitem_create
if ('/backoffice/salesorderitem/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\SalesOrderItemController::createAction', '_locale' => 'en', '_route' => 'app_backoffice_salesorderitem_create',);
}
// app_backoffice_salesorderitem_show
if (preg_match('#^/backoffice/salesorderitem/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorderitem_show')), array ( '_controller' => 'App\\Controller\\BackOffice\\SalesOrderItemController::showAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_salesorderitem_show;
}
return $ret;
}
not_app_backoffice_salesorderitem_show:
// app_backoffice_salesorderitem_edit
if (preg_match('#^/backoffice/salesorderitem/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorderitem_edit')), array ( '_controller' => 'App\\Controller\\BackOffice\\SalesOrderItemController::editAction', '_locale' => 'en',));
}
// app_backoffice_salesorderitem_delete
if (preg_match('#^/backoffice/salesorderitem/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_salesorderitem_delete')), array ( '_controller' => 'App\\Controller\\BackOffice\\SalesOrderItemController::deleteAction', '_locale' => 'en',));
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_backoffice_salesorderitem_delete;
}
return $ret;
}
not_app_backoffice_salesorderitem_delete:
}
}
elseif (0 === strpos($pathinfo, '/backoffice/uom')) {
// app_backoffice_uom_index
if ('/backoffice/uom' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\BackOffice\\UomController::indexAction', '_locale' => 'en', '_route' => 'app_backoffice_uom_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_backoffice_uom_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_backoffice_uom_index'));
}
return $ret;
}
not_app_backoffice_uom_index:
// app_backoffice_uom_list
if (0 === strpos($pathinfo, '/backoffice/uom/list') && preg_match('#^/backoffice/uom/list(?:/(?P<page>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_uom_list')), array ( 'page' => 1, '_controller' => 'App\\Controller\\BackOffice\\UomController::listAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_uom_list;
}
return $ret;
}
not_app_backoffice_uom_list:
// app_backoffice_uom_create
if ('/backoffice/uom/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\UomController::createAction', '_locale' => 'en', '_route' => 'app_backoffice_uom_create',);
}
// app_backoffice_uom_show
if (preg_match('#^/backoffice/uom/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_uom_show')), array ( '_controller' => 'App\\Controller\\BackOffice\\UomController::showAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_uom_show;
}
return $ret;
}
not_app_backoffice_uom_show:
// app_backoffice_uom_edit
if (preg_match('#^/backoffice/uom/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_uom_edit')), array ( '_controller' => 'App\\Controller\\BackOffice\\UomController::editAction', '_locale' => 'en',));
}
// app_backoffice_uom_delete
if (preg_match('#^/backoffice/uom/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_uom_delete')), array ( '_controller' => 'App\\Controller\\BackOffice\\UomController::deleteAction', '_locale' => 'en',));
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_backoffice_uom_delete;
}
return $ret;
}
not_app_backoffice_uom_delete:
}
elseif (0 === strpos($pathinfo, '/backoffice/user')) {
// app_backoffice_useraccount_mycurrentlycompany
if ('/backoffice/useraccount/mycurrentlycompany' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\UserAccountController::myCurrentlyCompany', '_locale' => 'en', '_route' => 'app_backoffice_useraccount_mycurrentlycompany',);
}
// app_backoffice_user_index
if ('/backoffice/user' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\BackOffice\\UserController::indexAction', '_locale' => 'en', '_route' => 'app_backoffice_user_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_backoffice_user_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_backoffice_user_index'));
}
return $ret;
}
not_app_backoffice_user_index:
// app_backoffice_user_list
if (0 === strpos($pathinfo, '/backoffice/user/list') && preg_match('#^/backoffice/user/list(?:/(?P<page>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_user_list')), array ( 'page' => 1, '_controller' => 'App\\Controller\\BackOffice\\UserController::listAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_user_list;
}
return $ret;
}
not_app_backoffice_user_list:
// app_backoffice_user_create
if ('/backoffice/user/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\UserController::createAction', '_locale' => 'en', '_route' => 'app_backoffice_user_create',);
}
// app_backoffice_user_show
if (preg_match('#^/backoffice/user/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_user_show')), array ( '_controller' => 'App\\Controller\\BackOffice\\UserController::showAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_user_show;
}
return $ret;
}
not_app_backoffice_user_show:
// app_backoffice_user_edit
if (preg_match('#^/backoffice/user/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_user_edit')), array ( '_controller' => 'App\\Controller\\BackOffice\\UserController::editAction', '_locale' => 'en',));
}
// app_backoffice_user_delete
if (preg_match('#^/backoffice/user/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_user_delete')), array ( '_controller' => 'App\\Controller\\BackOffice\\UserController::deleteAction', '_locale' => 'en',));
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_backoffice_user_delete;
}
return $ret;
}
not_app_backoffice_user_delete:
}
elseif (0 === strpos($pathinfo, '/backoffice/warehouse')) {
// app_backoffice_warehouse_index
if ('/backoffice/warehouse' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\BackOffice\\WarehouseController::indexAction', '_locale' => 'en', '_route' => 'app_backoffice_warehouse_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_backoffice_warehouse_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_backoffice_warehouse_index'));
}
return $ret;
}
not_app_backoffice_warehouse_index:
// app_backoffice_warehouse_list
if (0 === strpos($pathinfo, '/backoffice/warehouse/list') && preg_match('#^/backoffice/warehouse/list(?:/(?P<page>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_warehouse_list')), array ( 'page' => 1, '_controller' => 'App\\Controller\\BackOffice\\WarehouseController::listAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_warehouse_list;
}
return $ret;
}
not_app_backoffice_warehouse_list:
// app_backoffice_warehouse_create
if ('/backoffice/warehouse/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackOffice\\WarehouseController::createAction', '_locale' => 'en', '_route' => 'app_backoffice_warehouse_create',);
}
// app_backoffice_warehouse_show
if (preg_match('#^/backoffice/warehouse/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_warehouse_show')), array ( '_controller' => 'App\\Controller\\BackOffice\\WarehouseController::showAction', '_locale' => 'en',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_backoffice_warehouse_show;
}
return $ret;
}
not_app_backoffice_warehouse_show:
// app_backoffice_warehouse_edit
if (preg_match('#^/backoffice/warehouse/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_warehouse_edit')), array ( '_controller' => 'App\\Controller\\BackOffice\\WarehouseController::editAction', '_locale' => 'en',));
}
// app_backoffice_warehouse_delete
if (preg_match('#^/backoffice/warehouse/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backoffice_warehouse_delete')), array ( '_controller' => 'App\\Controller\\BackOffice\\WarehouseController::deleteAction', '_locale' => 'en',));
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_backoffice_warehouse_delete;
}
return $ret;
}
not_app_backoffice_warehouse_delete:
}
elseif (0 === strpos($pathinfo, '/backoffice/admin')) {
// easyadmin
if ('/backoffice/admin' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'EasyCorp\\Bundle\\EasyAdminBundle\\Controller\\AdminController::indexAction', '_route' => 'easyadmin',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_easyadmin;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'easyadmin'));
}
return $ret;
}
not_easyadmin:
// admin
if ('/backoffice/admin' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'EasyCorp\\Bundle\\EasyAdminBundle\\Controller\\AdminController::indexAction', '_route' => 'admin',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin'));
}
return $ret;
}
not_admin:
}
}
elseif (0 === strpos($pathinfo, '/login')) {
// fos_user_security_login
if ('/login' === $pathinfo) {
$ret = array ( '_controller' => 'fos_user.security.controller:loginAction', '_route' => 'fos_user_security_login',);
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_security_login;
}
return $ret;
}
not_fos_user_security_login:
// fos_user_security_check
if ('/login_check' === $pathinfo) {
$ret = array ( '_controller' => 'fos_user.security.controller:checkAction', '_route' => 'fos_user_security_check',);
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_fos_user_security_check;
}
return $ret;
}
not_fos_user_security_check:
}
// fos_user_security_logout
if ('/logout' === $pathinfo) {
$ret = array ( '_controller' => 'fos_user.security.controller:logoutAction', '_route' => 'fos_user_security_logout',);
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_security_logout;
}
return $ret;
}
not_fos_user_security_logout:
if (0 === strpos($pathinfo, '/profile')) {
// fos_user_profile_show
if ('/profile' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'fos_user.profile.controller:showAction', '_route' => 'fos_user_profile_show',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_fos_user_profile_show;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'fos_user_profile_show'));
}
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_fos_user_profile_show;
}
return $ret;
}
not_fos_user_profile_show:
// fos_user_profile_edit
if ('/profile/edit' === $pathinfo) {
$ret = array ( '_controller' => 'fos_user.profile.controller:editAction', '_route' => 'fos_user_profile_edit',);
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_profile_edit;
}
return $ret;
}
not_fos_user_profile_edit:
// fos_user_change_password
if ('/profile/change-password' === $pathinfo) {
$ret = array ( '_controller' => 'fos_user.change_password.controller:changePasswordAction', '_route' => 'fos_user_change_password',);
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_change_password;
}
return $ret;
}
not_fos_user_change_password:
}
elseif (0 === strpos($pathinfo, '/register')) {
// fos_user_registration_register
if ('/register' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'fos_user.registration.controller:registerAction', '_route' => 'fos_user_registration_register',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_fos_user_registration_register;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'fos_user_registration_register'));
}
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_registration_register;
}
return $ret;
}
not_fos_user_registration_register:
// fos_user_registration_check_email
if ('/register/check-email' === $pathinfo) {
$ret = array ( '_controller' => 'fos_user.registration.controller:checkEmailAction', '_route' => 'fos_user_registration_check_email',);
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_fos_user_registration_check_email;
}
return $ret;
}
not_fos_user_registration_check_email:
if (0 === strpos($pathinfo, '/register/confirm')) {
// fos_user_registration_confirm
if (preg_match('#^/register/confirm/(?P<token>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_registration_confirm')), array ( '_controller' => 'fos_user.registration.controller:confirmAction',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_fos_user_registration_confirm;
}
return $ret;
}
not_fos_user_registration_confirm:
// fos_user_registration_confirmed
if ('/register/confirmed' === $pathinfo) {
$ret = array ( '_controller' => 'fos_user.registration.controller:confirmedAction', '_route' => 'fos_user_registration_confirmed',);
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_fos_user_registration_confirmed;
}
return $ret;
}
not_fos_user_registration_confirmed:
}
}
elseif (0 === strpos($pathinfo, '/resetting')) {
// fos_user_resetting_request
if ('/resetting/request' === $pathinfo) {
$ret = array ( '_controller' => 'fos_user.resetting.controller:requestAction', '_route' => 'fos_user_resetting_request',);
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_fos_user_resetting_request;
}
return $ret;
}
not_fos_user_resetting_request:
// fos_user_resetting_reset
if (0 === strpos($pathinfo, '/resetting/reset') && preg_match('#^/resetting/reset/(?P<token>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_resetting_reset')), array ( '_controller' => 'fos_user.resetting.controller:resetAction',));
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_resetting_reset;
}
return $ret;
}
not_fos_user_resetting_reset:
// fos_user_resetting_send_email
if ('/resetting/send-email' === $pathinfo) {
$ret = array ( '_controller' => 'fos_user.resetting.controller:sendEmailAction', '_route' => 'fos_user_resetting_send_email',);
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_fos_user_resetting_send_email;
}
return $ret;
}
not_fos_user_resetting_send_email:
// fos_user_resetting_check_email
if ('/resetting/check-email' === $pathinfo) {
$ret = array ( '_controller' => 'fos_user.resetting.controller:checkEmailAction', '_route' => 'fos_user_resetting_check_email',);
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_fos_user_resetting_check_email;
}
return $ret;
}
not_fos_user_resetting_check_email:
}
elseif (0 === strpos($pathinfo, '/_')) {
// _twig_error_test
if (0 === strpos($pathinfo, '/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_twig_error_test')), array ( '_controller' => 'twig.controller.preview_error:previewErrorPageAction', '_format' => 'html',));
}
// _wdt
if (0 === strpos($pathinfo, '/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_wdt')), array ( '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
}
if (0 === strpos($pathinfo, '/_profiler')) {
// _profiler_home
if ('/_profiler' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'web_profiler.controller.profiler:homeAction', '_route' => '_profiler_home',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not__profiler_home;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', '_profiler_home'));
}
return $ret;
}
not__profiler_home:
if (0 === strpos($pathinfo, '/_profiler/search')) {
// _profiler_search
if ('/_profiler/search' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:searchAction', '_route' => '_profiler_search',);
}
// _profiler_search_bar
if ('/_profiler/search_bar' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:searchBarAction', '_route' => '_profiler_search_bar',);
}
}
// _profiler_phpinfo
if ('/_profiler/phpinfo' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:phpinfoAction', '_route' => '_profiler_phpinfo',);
}
// _profiler_search_results
if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_search_results')), array ( '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
}
// _profiler_open_file
if ('/_profiler/open' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:openAction', '_route' => '_profiler_open_file',);
}
// _profiler
if (preg_match('#^/_profiler/(?P<token>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler')), array ( '_controller' => 'web_profiler.controller.profiler:panelAction',));
}
// _profiler_router
if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_router')), array ( '_controller' => 'web_profiler.controller.router:panelAction',));
}
// _profiler_exception
if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception')), array ( '_controller' => 'web_profiler.controller.exception:showAction',));
}
// _profiler_exception_css
if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception_css')), array ( '_controller' => 'web_profiler.controller.exception:cssAction',));
}
}
}
// homepage
if ('' === $trimmedPathinfo) {
$ret = array ( 'template' => 'home/homepage.html.twig', '_locale' => 'en', '_controller' => 'App\\Controller\\HomeController::homepage', '_route' => 'homepage',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_homepage;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'homepage'));
}
return $ret;
}
not_homepage:
if ('/' === $pathinfo) {
throw new Symfony\Component\Routing\Exception\NoConfigurationException();
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}