<?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 = [];
$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, '/_')) {
// _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, ['_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, ['_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, ['_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, ['_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, ['_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, ['_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, ['_route' => '_profiler_exception_css']), array ( '_controller' => 'web_profiler.controller.exception:cssAction',));
}
}
}
elseif (0 === strpos($pathinfo, '/category')) {
// category_index
if ('/category' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\CategoryController::index', '_route' => 'category_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_category_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'category_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_category_index;
}
return $ret;
}
not_category_index:
// category_new
if ('/category/new' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\CategoryController::new', '_route' => 'category_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_category_new;
}
return $ret;
}
not_category_new:
// category_show
if (preg_match('#^/category/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'category_show']), array ( '_controller' => 'App\\Controller\\CategoryController::show',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_category_show;
}
return $ret;
}
not_category_show:
// category_edit
if (preg_match('#^/category/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'category_edit']), array ( '_controller' => 'App\\Controller\\CategoryController::edit',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_category_edit;
}
return $ret;
}
not_category_edit:
// category_delete
if (preg_match('#^/category/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'category_delete']), array ( '_controller' => 'App\\Controller\\CategoryController::delete',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_category_delete;
}
return $ret;
}
not_category_delete:
}
// index
if ('' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\IndexController::indexAction', '_route' => 'index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'index'));
}
return $ret;
}
not_index:
if (0 === strpos($pathinfo, '/product')) {
// product_index
if ('/product' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ProductController::index', '_route' => 'product_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_product_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'product_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_product_index;
}
return $ret;
}
not_product_index:
// fillCategories
if ('/product/fill-categories' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ProductController::fillCategories', '_route' => 'fillCategories',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_fillCategories;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'fillCategories'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_fillCategories;
}
return $ret;
}
not_fillCategories:
// product_new
if ('/product/new' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ProductController::new', '_route' => 'product_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_product_new;
}
return $ret;
}
not_product_new:
// product_show
if (preg_match('#^/product/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'product_show']), array ( '_controller' => 'App\\Controller\\ProductController::show',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_product_show;
}
return $ret;
}
not_product_show:
// product_edit
if (preg_match('#^/product/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'product_edit']), array ( '_controller' => 'App\\Controller\\ProductController::edit',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_product_edit;
}
return $ret;
}
not_product_edit:
// product_delete
if (preg_match('#^/product/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'product_delete']), array ( '_controller' => 'App\\Controller\\ProductController::delete',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_product_delete;
}
return $ret;
}
not_product_delete:
if (0 === strpos($pathinfo, '/product/d')) {
// downloadBatiments
if (0 === strpos($pathinfo, '/product/download-batiments') && preg_match('#^/product/download\\-batiments/(?P<product_id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'downloadBatiments']), array ( '_controller' => 'App\\Controller\\ProductController::downloadBatiments',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_downloadBatiments;
}
return $ret;
}
not_downloadBatiments:
// downloadImages
if (0 === strpos($pathinfo, '/product/download-images') && preg_match('#^/product/download\\-images/(?P<product_id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'downloadImages']), array ( '_controller' => 'App\\Controller\\ProductController::downloadImages',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_downloadImages;
}
return $ret;
}
not_downloadImages:
if (0 === strpos($pathinfo, '/product/delete-')) {
// delete-image-operation
if ('/product/delete-image-operation' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ProductController::delete_image_operation', '_route' => 'delete-image-operation',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_deleteimageoperation;
}
return $ret;
}
not_deleteimageoperation:
// delete-image-session
if ('/product/delete-image-session' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ProductController::delete_image_session', '_route' => 'delete-image-session',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_deleteimagesession;
}
return $ret;
}
not_deleteimagesession:
// delete-main-image
if ('/product/delete-main-image' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ProductController::delete_main_image', '_route' => 'delete-main-image',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_deletemainimage;
}
return $ret;
}
not_deletemainimage:
}
}
// upload-main-image
if ('/product/upload-main-image' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ProductController::upload_main_image', '_route' => 'upload-main-image',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_uploadmainimage;
}
return $ret;
}
not_uploadmainimage:
// upload-image-product
if ('/product/upload-image-product' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ProductController::upload_image_product', '_route' => 'upload-image-product',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_uploadimageproduct;
}
return $ret;
}
not_uploadimageproduct:
// show-main-image
if ('/product/show-main-image' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ProductController::show_main_image', '_route' => 'show-main-image',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_showmainimage;
}
return $ret;
}
not_showmainimage:
if (0 === strpos($pathinfo, '/product/show-images')) {
// show-images
if ('/product/show-images' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ProductController::show_images', '_route' => 'show-images',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_showimages;
}
return $ret;
}
not_showimages:
// show-images-session
if ('/product/show-images-session' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ProductController::show_images_session', '_route' => 'show-images-session',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_showimagessession;
}
return $ret;
}
not_showimagessession:
}
// batiments-name-change
if ('/product/batiments-name-change' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ProductController::batiments_names_change', '_route' => 'batiments-name-change',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_batimentsnamechange;
}
return $ret;
}
not_batimentsnamechange:
}
elseif (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, ['GET'])) {
$allow = array_merge($allow, ['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, ['GET', 'POST'])) {
$allow = array_merge($allow, ['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, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_fos_user_change_password;
}
return $ret;
}
not_fos_user_change_password:
}
elseif (0 === strpos($pathinfo, '/re')) {
if (0 === strpos($pathinfo, '/report')) {
// report_index
if ('/report' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ReportController::index', '_route' => 'report_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_report_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'report_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_report_index;
}
return $ret;
}
not_report_index:
// report_csv
if ('/report/csv' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ReportController::csv', '_route' => 'report_csv',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_report_csv;
}
return $ret;
}
not_report_csv:
// report_new
if (0 === strpos($pathinfo, '/report/new') && preg_match('#^/report/new(?:/(?P<id>[^/]++))?$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'report_new']), array ( 'id' => NULL, '_controller' => 'App\\Controller\\ReportController::report',));
}
// fill-products
if ('/report/fill-products' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ReportController::getProductsSelect', '_route' => 'fill-products',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_fillproducts;
}
return $ret;
}
not_fillproducts:
// app_webservice_report
if ('/report' === $pathinfo) {
$ret = array ( '_format' => 'json', '_controller' => 'App\\Controller\\WebserviceController::reportAction', '_route' => 'app_webservice_report',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_app_webservice_report;
}
return $ret;
}
not_app_webservice_report:
}
// app_webservice_refresh
if ('/refresh' === $pathinfo) {
$ret = array ( '_format' => 'json', '_controller' => 'App\\Controller\\WebserviceController::refreshAction', '_route' => 'app_webservice_refresh',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_app_webservice_refresh;
}
return $ret;
}
not_app_webservice_refresh:
if (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, ['GET', 'POST'])) {
$allow = array_merge($allow, ['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, ['GET'])) {
$allow = array_merge($allow, ['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, ['_route' => 'fos_user_registration_confirm']), array ( '_controller' => 'fos_user.registration.controller:confirmAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['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, ['GET'])) {
$allow = array_merge($allow, ['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, ['GET'])) {
$allow = array_merge($allow, ['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, ['_route' => 'fos_user_resetting_reset']), array ( '_controller' => 'fos_user.resetting.controller:resetAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['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, ['POST'])) {
$allow = array_merge($allow, ['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, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_fos_user_resetting_check_email;
}
return $ret;
}
not_fos_user_resetting_check_email:
}
}
elseif (0 === strpos($pathinfo, '/slider')) {
// slider_index
if ('/slider' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\SliderController::index', '_route' => 'slider_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_slider_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'slider_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_slider_index;
}
return $ret;
}
not_slider_index:
// slider_new
if ('/slider/new' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\SliderController::new', '_route' => 'slider_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_slider_new;
}
return $ret;
}
not_slider_new:
// slider_show
if (preg_match('#^/slider/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'slider_show']), array ( '_controller' => 'App\\Controller\\SliderController::show',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_slider_show;
}
return $ret;
}
not_slider_show:
// slider_edit
if (preg_match('#^/slider/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'slider_edit']), array ( '_controller' => 'App\\Controller\\SliderController::edit',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_slider_edit;
}
return $ret;
}
not_slider_edit:
// slider_delete
if (preg_match('#^/slider/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'slider_delete']), array ( '_controller' => 'App\\Controller\\SliderController::delete',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_slider_delete;
}
return $ret;
}
not_slider_delete:
// slider_sort
if ('/slider/sort' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\SliderController::sort', '_route' => 'slider_sort',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_slider_sort;
}
return $ret;
}
not_slider_sort:
}
elseif (0 === strpos($pathinfo, '/user')) {
// user_index
if ('/user' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\UserController::index', '_route' => 'user_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_user_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'user_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_user_index;
}
return $ret;
}
not_user_index:
// user_new
if ('/user/new' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\UserController::new', '_route' => 'user_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_user_new;
}
return $ret;
}
not_user_new:
// user_import
if ('/user/import' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\UserController::import', '_route' => 'user_import',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_user_import;
}
return $ret;
}
not_user_import:
// user_show
if (preg_match('#^/user/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'user_show']), array ( '_controller' => 'App\\Controller\\UserController::show',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_user_show;
}
return $ret;
}
not_user_show:
// user_edit
if (preg_match('#^/user/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'user_edit']), array ( '_controller' => 'App\\Controller\\UserController::edit',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_user_edit;
}
return $ret;
}
not_user_edit:
// user_delete
if (preg_match('#^/user/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'user_delete']), array ( '_controller' => 'App\\Controller\\UserController::delete',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_user_delete;
}
return $ret;
}
not_user_delete:
}
elseif (0 === strpos($pathinfo, '/login')) {
// app_webservice_login
if ('/login' === $pathinfo) {
$ret = array ( '_format' => 'json', '_controller' => 'App\\Controller\\WebserviceController::loginAction', '_route' => 'app_webservice_login',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_app_webservice_login;
}
return $ret;
}
not_app_webservice_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, ['GET', 'POST'])) {
$allow = array_merge($allow, ['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, ['POST'])) {
$allow = array_merge($allow, ['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, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_fos_user_security_logout;
}
return $ret;
}
not_fos_user_security_logout:
// app_webservice_getdata
if ('/getdata' === $pathinfo) {
$ret = array ( '_format' => 'json', '_controller' => 'App\\Controller\\WebserviceController::getdataAction', '_route' => 'app_webservice_getdata',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_app_webservice_getdata;
}
return $ret;
}
not_app_webservice_getdata:
// nelmio_api_doc_index
if (0 === strpos($pathinfo, '/api/doc') && preg_match('#^/api/doc(?:/(?P<view>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'nelmio_api_doc_index']), array ( '_controller' => 'Nelmio\\ApiDocBundle\\Controller\\ApiDocController::indexAction', 'view' => 'default',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_nelmio_api_doc_index;
}
return $ret;
}
not_nelmio_api_doc_index:
// fos_oauth_server_token
if ('/oauth/v2/token' === $pathinfo) {
$ret = array ( '_controller' => 'fos_oauth_server.controller.token:tokenAction', '_route' => 'fos_oauth_server_token',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_fos_oauth_server_token;
}
return $ret;
}
not_fos_oauth_server_token:
// fos_oauth_server_authorize
if ('/oauth/v2/auth' === $pathinfo) {
$ret = array ( '_controller' => 'fos_oauth_server.controller.authorize:authorizeAction', '_route' => 'fos_oauth_server_authorize',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_fos_oauth_server_authorize;
}
return $ret;
}
not_fos_oauth_server_authorize:
if (0 === strpos($pathinfo, '/ws')) {
// login
if (0 === strpos($pathinfo, '/ws/login') && preg_match('#^/ws/login(?:\\.(?P<_format>json|xml|html))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'login']), array ( '_controller' => 'App\\Controller\\WebserviceController:loginAction', '_format' => 'json',));
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_login;
}
return $ret;
}
not_login:
// refresh
if (0 === strpos($pathinfo, '/ws/refresh') && preg_match('#^/ws/refresh(?:\\.(?P<_format>json|xml|html))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'refresh']), array ( '_controller' => 'App\\Controller\\WebserviceController:refreshAction', '_format' => 'json',));
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_refresh;
}
return $ret;
}
not_refresh:
// report
if (0 === strpos($pathinfo, '/ws/report') && preg_match('#^/ws/report(?:\\.(?P<_format>json|xml|html))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'report']), array ( '_controller' => 'App\\Controller\\WebserviceController:reportAction', '_format' => 'json',));
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_report;
}
return $ret;
}
not_report:
// getdata
if (0 === strpos($pathinfo, '/ws/getdata') && preg_match('#^/ws/getdata(?:\\.(?P<_format>json|xml|html))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'getdata']), array ( '_controller' => 'App\\Controller\\WebserviceController:getdataAction', '_format' => 'json',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_getdata;
}
return $ret;
}
not_getdata:
}
if ('/' === $pathinfo && !$allow) {
throw new Symfony\Component\Routing\Exception\NoConfigurationException();
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}