<?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, '/a')) {
if (0 === strpos($pathinfo, '/api')) {
if (0 === strpos($pathinfo, '/api/product')) {
// food_airway_api_product_listing
if ('/api/product/listing' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\ProductController::listingAction', '_route' => 'food_airway_api_product_listing',);
}
// food_airway_api_product_tiffin_listing
if ('/api/product/tiffin/listing' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\ProductController::tiffinListingAction', '_route' => 'food_airway_api_product_tiffin_listing',);
}
// food_airway_api_product_tiffin_detail
if (0 === strpos($pathinfo, '/api/product/tiffin/detail') && preg_match('#^/api/product/tiffin/detail/(?P<productId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_product_tiffin_detail']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\ProductController::tiffinDetailAction',));
}
// food_airway_api_product_food_types
if ('/api/product/food-types' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\ProductController::foodTypesAction', '_route' => 'food_airway_api_product_food_types',);
}
}
elseif (0 === strpos($pathinfo, '/api/l')) {
// food_airway_api_login
if (0 === strpos($pathinfo, '/api/login') && preg_match('#^/api/login/(?P<username>[^/]++)/(?P<pwd>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_login']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\DefaultController::loginAction',));
}
// food_airway_api_live_streaming_url
if ('/api/live-steaming' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\DefaultController::liveSteamingUrlAction', '_route' => 'food_airway_api_live_streaming_url',);
}
// deliveryteam_list_images
if ('/api/list/team/images' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\DefaultController::listTeamImagesAction', '_route' => 'deliveryteam_list_images',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_deliveryteam_list_images;
}
return $ret;
}
not_deliveryteam_list_images:
}
// food_airway_api_fetch_area_detail
if ('/api/area/search' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\DefaultController::areaSearchAction', '_route' => 'food_airway_api_fetch_area_detail',);
}
// food_airway_api_create_account
if (0 === strpos($pathinfo, '/api/create/account') && preg_match('#^/api/create/account/(?P<fullName>[^/]++)/(?P<mobile>[^/]++)/(?P<email>[^/]++)/(?P<pwd>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_create_account']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\DefaultController::createAccountAction',));
}
// food_airway_api_check_user_exists
if (0 === strpos($pathinfo, '/api/check/user/exists') && preg_match('#^/api/check/user/exists/(?P<username>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_check_user_exists']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\DefaultController::checkUserExistsAction',));
}
if (0 === strpos($pathinfo, '/api/get/user')) {
// food_airway_api_user_address
if (0 === strpos($pathinfo, '/api/get/user/address') && preg_match('#^/api/get/user/address/(?P<userId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_user_address']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\UserAddressController::userAddressesAction',));
}
// food_airway_api_user_active_address
if (0 === strpos($pathinfo, '/api/get/user/active/address') && preg_match('#^/api/get/user/active/address/(?P<userId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_user_active_address']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\UserAddressController::userActiveAddressAction',));
}
// food_airway_api_user_coupon_codes
if (0 === strpos($pathinfo, '/api/get/user/coupon/codes') && preg_match('#^/api/get/user/coupon/codes/(?P<userId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_user_coupon_codes']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\UserController::couponCodesAction',));
}
// food_airway_api_user_banners
if (0 === strpos($pathinfo, '/api/get/user/banners') && preg_match('#^/api/get/user/banners/(?P<userId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_user_banners']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\UserController::bannersAction',));
}
}
// food_airway_api_get_order_by_id
if (0 === strpos($pathinfo, '/api/get/order') && preg_match('#^/api/get/order/(?P<orderId>[^/]++)/(?P<userId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_get_order_by_id']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\OrderController::fetchAction',));
}
// food_airway_api_save_user_address
if ('/api/save/user/address' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\UserAddressController::saveUserAddressAction', '_route' => 'food_airway_api_save_user_address',);
}
if (0 === strpos($pathinfo, '/api/send/user')) {
// food_airway_api_user_send_registeration_otp
if (0 === strpos($pathinfo, '/api/send/user/verification/code') && preg_match('#^/api/send/user/verification/code/(?P<securityKey>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_user_send_registeration_otp']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\UserController::sendVerificationCodeAction',));
}
// food_airway_api_user_send_forgot_password_verification_code
if (0 === strpos($pathinfo, '/api/send/user/forgot/password/verification/code') && preg_match('#^/api/send/user/forgot/password/verification/code/(?P<securityKey>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_user_send_forgot_password_verification_code']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\UserController::sendForgotPasswordVerificationCodeAction',));
}
// food_airway_api_user_update_password
if (0 === strpos($pathinfo, '/api/send/user/update/user/password') && preg_match('#^/api/send/user/update/user/password/(?P<securityKey>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_user_update_password']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\UserController::updateUserPasswordAction',));
}
}
elseif (0 === strpos($pathinfo, '/api/order')) {
// food_airway_api_order_place
if ('/api/order/place' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\OrderController::createAction', '_route' => 'food_airway_api_order_place',);
}
// food_airway_api_order_pending
if (0 === strpos($pathinfo, '/api/order/pending') && preg_match('#^/api/order/pending/(?P<userId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_order_pending']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\OrderController::pendingAction',));
}
// food_airway_api_order_listing
if (0 === strpos($pathinfo, '/api/order/listing') && preg_match('#^/api/order/listing/(?P<userId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_order_listing']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\OrderController::listingAction',));
}
// food_airway_api_order_status_update
if ('/api/order/status/update' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\OrderController::statusUpdateAction', '_route' => 'food_airway_api_order_status_update',);
}
// food_airway_api_order_delivery_status_update
if ('/api/order/update/delivery/status' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\OrderController::deliveryStatusUpdateAction', '_route' => 'food_airway_api_order_delivery_status_update',);
}
// food_airway_api_order_pause_unpause_update
if ('/api/order/update/paused/status' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\OrderController::pausedStatusUpdateAction', '_route' => 'food_airway_api_order_pause_unpause_update',);
}
if (0 === strpos($pathinfo, '/api/order/tiffin')) {
// food_airway_api_order_tiffin_mark_as_deliver
if (0 === strpos($pathinfo, '/api/order/tiffin/mark-as-deliver') && preg_match('#^/api/order/tiffin/mark\\-as\\-deliver/(?P<tiffinOrderDetailId>[^/]++)/(?P<userId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_order_tiffin_mark_as_deliver']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\OrderController::tiffinMarkAsDeliverAction',));
}
// food_airway_api_order_tiffin_subscription
if (0 === strpos($pathinfo, '/api/order/tiffin/subscription/listing') && preg_match('#^/api/order/tiffin/subscription/listing/(?P<userId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_order_tiffin_subscription']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\OrderController::tiffinSubscriptionAction',));
}
// food_airway_api_order_tiffin_subscription_detail
if ('/api/order/tiffin/subscription/detail' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\OrderController::tiffinSubscriptionDetailAction', '_route' => 'food_airway_api_order_tiffin_subscription_detail',);
}
}
// food_airway_api_order_assigned_delivery_partner
if ('/api/order/assigned/delivery/partner' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\OrderController::assignDeliveryPartnerAction', '_route' => 'food_airway_api_order_assigned_delivery_partner',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_food_airway_api_order_assigned_delivery_partner;
}
return $ret;
}
not_food_airway_api_order_assigned_delivery_partner:
}
// food_airway_api_update_user_profile
if ('/api/user/update' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\DefaultController::updateUserProfileAction', '_route' => 'food_airway_api_update_user_profile',);
}
// food_airway_api_update_user_active_address
if (0 === strpos($pathinfo, '/api/update/user/active/address') && preg_match('#^/api/update/user/active/address/(?P<securityKey>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_update_user_active_address']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\UserAddressController::updateUserActiveAddressAction',));
}
// food_airway_api_display_image_file
if (0 === strpos($pathinfo, '/api/display/image/file') && preg_match('#^/api/display/image/file/(?P<fileId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_api_display_image_file']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\FilesController::displayImageFileAction',));
}
// deliveryteam_partner_list
if (0 === strpos($pathinfo, '/api/delivery/partner/listing') && preg_match('#^/api/delivery/partner/listing/(?P<userId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'deliveryteam_partner_list']), array ( '_controller' => 'FoodAirwayApiBundle\\Controller\\DefaultController::deliveryPartnerListAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_deliveryteam_partner_list;
}
return $ret;
}
not_deliveryteam_partner_list:
}
// food_airway_site_about
if ('/about' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\DefaultController::aboutAction', '_route' => 'food_airway_site_about',);
}
if (0 === strpos($pathinfo, '/admin')) {
if (0 === strpos($pathinfo, '/admin/inventories')) {
// inventories_index
if ('/admin/inventories' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\InventoryItemsController::indexAction', '_route' => 'inventories_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_inventories_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'inventories_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_inventories_index;
}
return $ret;
}
not_inventories_index:
// inventories_show
if (preg_match('#^/admin/inventories/(?P<id>[^/]++)/show$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'inventories_show']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\InventoryItemsController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_inventories_show;
}
return $ret;
}
not_inventories_show:
// inventories_new
if ('/admin/inventories/new' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\InventoryItemsController::newAction', '_route' => 'inventories_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_inventories_new;
}
return $ret;
}
not_inventories_new:
// inventories_edit
if (preg_match('#^/admin/inventories/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'inventories_edit']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\InventoryItemsController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_inventories_edit;
}
return $ret;
}
not_inventories_edit:
// inventories_delete
if (preg_match('#^/admin/inventories/(?P<id>[^/]++)/delete$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'inventories_delete']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\InventoryItemsController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_inventories_delete;
}
return $ret;
}
not_inventories_delete:
// inventories_new_stock
if ('/admin/inventories/new/stock' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\InventoryItemsController::newStockAction', '_route' => 'inventories_new_stock',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_inventories_new_stock;
}
return $ret;
}
not_inventories_new_stock:
// inventories_stock_out
if ('/admin/inventories/stock/out' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\InventoryItemsController::stockOutAction', '_route' => 'inventories_stock_out',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_inventories_stock_out;
}
return $ret;
}
not_inventories_stock_out:
// inventories_generate_estimation
if ('/admin/inventories/generate/estimation' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\InventoryItemsController::generateEstimationAction', '_route' => 'inventories_generate_estimation',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_inventories_generate_estimation;
}
return $ret;
}
not_inventories_generate_estimation:
// inventories_generate_purchase_order
if ('/admin/inventories/generate/purchase/order' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\InventoryItemsController::generatePurchaseOrderAction', '_route' => 'inventories_generate_purchase_order',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_inventories_generate_purchase_order;
}
return $ret;
}
not_inventories_generate_purchase_order:
}
// food_airway_admin_homepage
if ('/admin' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DefaultController::indexAction', '_route' => 'food_airway_admin_homepage',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_food_airway_admin_homepage;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'food_airway_admin_homepage'));
}
return $ret;
}
not_food_airway_admin_homepage:
if (0 === strpos($pathinfo, '/admin/products')) {
// products_index
if ('/admin/products' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::indexAction', '_route' => 'products_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_products_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'products_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_products_index;
}
return $ret;
}
not_products_index:
if (0 === strpos($pathinfo, '/admin/products/update')) {
// products_add_edit
if (preg_match('#^/admin/products/update/(?P<categoryId>[^/]++)(?:/(?P<productId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'products_add_edit']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::addEditAction', 'productId' => NULL,));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_products_add_edit;
}
return $ret;
}
not_products_add_edit:
// products_update
if (preg_match('#^/admin/products/update/(?P<categoryId>[^/]++)(?:/(?P<productId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'products_update']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::updateAction', 'productId' => NULL,));
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_products_update;
}
return $ret;
}
not_products_update:
if (0 === strpos($pathinfo, '/admin/products/update-stock')) {
// product_update_stock
if (preg_match('#^/admin/products/update\\-stock/(?P<productId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'product_update_stock']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::updateStockAction',));
}
// product_update_measurements
if (0 === strpos($pathinfo, '/admin/products/update-stock/measurements') && preg_match('#^/admin/products/update\\-stock/measurements/(?P<productId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'product_update_measurements']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::updateStockMeasurementsAction',));
}
// product_update_stock_packaging
if (0 === strpos($pathinfo, '/admin/products/update-stock/packaging') && preg_match('#^/admin/products/update\\-stock/packaging/(?P<productId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'product_update_stock_packaging']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::updateStockPackagingAction',));
}
}
}
// products_delete
if (0 === strpos($pathinfo, '/admin/products/delete') && preg_match('#^/admin/products/delete/(?P<categoryId>[^/]++)(?:/(?P<productId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'products_delete']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::deleteAction', 'productId' => NULL,));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_products_delete;
}
return $ret;
}
not_products_delete:
if (0 === strpos($pathinfo, '/admin/products/tiffin')) {
// product_tiffins_listing
if ('/admin/products/tiffin/active/listing' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::tiffinActiveListingAction', '_route' => 'product_tiffins_listing',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_product_tiffins_listing;
}
return $ret;
}
not_product_tiffins_listing:
// product_tiffins_assign_route
if (0 === strpos($pathinfo, '/admin/products/tiffin/assign/route') && preg_match('#^/admin/products/tiffin/assign/route/(?P<tiffinDetailId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'product_tiffins_assign_route']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::assignTifinRouteAction',));
}
// product_tiffins_stock_out
if (0 === strpos($pathinfo, '/admin/products/tiffin/stock/out') && preg_match('#^/admin/products/tiffin/stock/out/(?P<tiffinDetailId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'product_tiffins_stock_out']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::tiffinStockOutAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_product_tiffins_stock_out;
}
return $ret;
}
not_product_tiffins_stock_out:
// product_tiffins_stock_out_history
if (0 === strpos($pathinfo, '/admin/products/tiffin/stockout/history') && preg_match('#^/admin/products/tiffin/stockout/history/(?P<tiffinDetailId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'product_tiffins_stock_out_history']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::stockOutHistoryAction',));
}
// product_tiffins_daily_listing
if ('/admin/products/tiffin/daily/active/listing' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::tiffinDailyActiveListingAction', '_route' => 'product_tiffins_daily_listing',);
}
// product_tiffins_update_active_inactive
if (0 === strpos($pathinfo, '/admin/products/tiffin/update/active/status') && preg_match('#^/admin/products/tiffin/update/active/status(?:/(?P<tiffinOrderDetailId>[^/]++))?$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'product_tiffins_update_active_inactive']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::updateIsActiveAction', 'tiffinOrderDetailId' => NULL,));
}
// product_unpaused_tiffins_cron_jobs
if ('/admin/products/tiffin/unpaused/cron/jobs' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::unpausedTiffinsCronJobsAction', '_route' => 'product_unpaused_tiffins_cron_jobs',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_product_unpaused_tiffins_cron_jobs;
}
return $ret;
}
not_product_unpaused_tiffins_cron_jobs:
if (0 === strpos($pathinfo, '/admin/products/tiffin/p')) {
// product_tiffins_plans
if ('/admin/products/tiffin/plans' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::tiffinPlansAction', '_route' => 'product_tiffins_plans',);
}
// product_tiffins_plan_item_update
if (0 === strpos($pathinfo, '/admin/products/tiffin/plan/item/update') && preg_match('#^/admin/products/tiffin/plan/item/update/(?P<itemId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'product_tiffins_plan_item_update']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::tiffinPlanItemUpdateAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_product_tiffins_plan_item_update;
}
return $ret;
}
not_product_tiffins_plan_item_update:
if (0 === strpos($pathinfo, '/admin/products/tiffin/pause_unpause/view_till_when')) {
// product_tiffins_pause_unpause_view_till_when
if (preg_match('#^/admin/products/tiffin/pause_unpause/view_till_when/(?P<tiffinDetailId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'product_tiffins_pause_unpause_view_till_when']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::tiffinPauseUnpauseUntilWhenAction',));
}
// product_tiffins_pause_unpause_view_till_when_history
if (0 === strpos($pathinfo, '/admin/products/tiffin/pause_unpause/view_till_when_history') && preg_match('#^/admin/products/tiffin/pause_unpause/view_till_when_history/(?P<tiffinDetailId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'product_tiffins_pause_unpause_view_till_when_history']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::tiffinPauseUnpauseUntilWhenHistoryAction',));
}
}
}
// product_tiffins_edit_detail
if (0 === strpos($pathinfo, '/admin/products/tiffin/edit/detail') && preg_match('#^/admin/products/tiffin/edit/detail/(?P<tiffinDetailId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'product_tiffins_edit_detail']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::tiffinEditDetailAction',));
}
if (0 === strpos($pathinfo, '/admin/products/tiffin/history')) {
// product_tiffin_history
if ('/admin/products/tiffin/history' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::tiffinHistoryAction', '_route' => 'product_tiffin_history',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_product_tiffin_history;
}
return $ret;
}
not_product_tiffin_history:
// product_tiffin_cron_jobs
if ('/admin/products/tiffin/history/cron/jobs' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::tiffinHistoryCronJobsAction', '_route' => 'product_tiffin_cron_jobs',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_product_tiffin_cron_jobs;
}
return $ret;
}
not_product_tiffin_cron_jobs:
}
// product_tiffin_routes_history_cron_jobs
if ('/admin/products/tiffin/routes/history/cron/jobs' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::tiffinRoutesHistoryCronJobsAction', '_route' => 'product_tiffin_routes_history_cron_jobs',);
}
}
// product_sort_order
if ('/admin/products/sort/order' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::sortOrderAction', '_route' => 'product_sort_order',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_product_sort_order;
}
return $ret;
}
not_product_sort_order:
// product_view_pricing
if (0 === strpos($pathinfo, '/admin/products/view/pricing') && preg_match('#^/admin/products/view/pricing/(?P<productId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'product_view_pricing']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ProductController::viewPricingAction',));
}
}
elseif (0 === strpos($pathinfo, '/admin/paymenthistory')) {
// paymentHistory_index
if ('/admin/paymenthistory' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\PaymentHistoryController::indexAction', '_route' => 'paymentHistory_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_paymentHistory_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'paymentHistory_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_paymentHistory_index;
}
return $ret;
}
not_paymentHistory_index:
// paymentHistory_new
if (0 === strpos($pathinfo, '/admin/paymenthistory/new') && preg_match('#^/admin/paymenthistory/new(?:/(?P<paymentHistoryId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'paymentHistory_new']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\PaymentHistoryController::newAction', 'paymentHistoryId' => NULL,));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_paymentHistory_new;
}
return $ret;
}
not_paymentHistory_new:
// paymentHistory_update
if ('/admin/paymenthistory/update' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\PaymentHistoryController::updateAction', '_route' => 'paymentHistory_update',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_paymentHistory_update;
}
return $ret;
}
not_paymentHistory_update:
}
elseif (0 === strpos($pathinfo, '/admin/c')) {
if (0 === strpos($pathinfo, '/admin/categories')) {
// category_new
if (0 === strpos($pathinfo, '/admin/categories/new') && preg_match('#^/admin/categories/new(?:/(?P<categoryId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'category_new']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\CategoryController::newAction', 'categoryId' => NULL,));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_category_new;
}
return $ret;
}
not_category_new:
// category_update
if (0 === strpos($pathinfo, '/admin/categories/update') && preg_match('#^/admin/categories/update(?:/(?P<categoryId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'category_update']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\CategoryController::updateAction', 'categoryId' => NULL,));
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_category_update;
}
return $ret;
}
not_category_update:
// category_delete
if (0 === strpos($pathinfo, '/admin/categories/delete') && preg_match('#^/admin/categories/delete/(?P<categoryId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'category_delete']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\CategoryController::deleteAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_category_delete;
}
return $ret;
}
not_category_delete:
// category_sort_order
if ('/admin/categories/sort/order' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\CategoryController::sortOrderAction', '_route' => 'category_sort_order',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_category_sort_order;
}
return $ret;
}
not_category_sort_order:
}
elseif (0 === strpos($pathinfo, '/admin/coupons')) {
// coupons_index
if ('/admin/coupons' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\CouponsController::indexAction', '_route' => 'coupons_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_coupons_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'coupons_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_coupons_index;
}
return $ret;
}
not_coupons_index:
// coupons_new
if (0 === strpos($pathinfo, '/admin/coupons/new') && preg_match('#^/admin/coupons/new(?:/(?P<couponId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'coupons_new']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\CouponsController::newAction', 'couponId' => NULL,));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_coupons_new;
}
return $ret;
}
not_coupons_new:
// coupons_update
if ('/admin/coupons/update' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\CouponsController::updateAction', '_route' => 'coupons_update',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_coupons_update;
}
return $ret;
}
not_coupons_update:
// coupons_delete
if (0 === strpos($pathinfo, '/admin/coupons/delete') && preg_match('#^/admin/coupons/delete/(?P<couponId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'coupons_delete']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\CouponsController::deleteAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_coupons_delete;
}
return $ret;
}
not_coupons_delete:
}
// food_airway_admin_change_kitchen
if (0 === strpos($pathinfo, '/admin/change/kitchen') && preg_match('#^/admin/change/kitchen/(?P<kitchenId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_admin_change_kitchen']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DefaultController::changeKitchenAction',));
}
}
elseif (0 === strpos($pathinfo, '/admin/foodtypes')) {
// foodtypes_index
if ('/admin/foodtypes' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\FoodTypesController::indexAction', '_route' => 'foodtypes_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_foodtypes_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'foodtypes_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_foodtypes_index;
}
return $ret;
}
not_foodtypes_index:
// foodtype_new
if (0 === strpos($pathinfo, '/admin/foodtypes/new') && preg_match('#^/admin/foodtypes/new(?:/(?P<foodTypeId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'foodtype_new']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\FoodTypesController::newAction', 'foodTypeId' => NULL,));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_foodtype_new;
}
return $ret;
}
not_foodtype_new:
// foodtype_update
if ('/admin/foodtypes/update' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\FoodTypesController::updateAction', '_route' => 'foodtype_update',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_foodtype_update;
}
return $ret;
}
not_foodtype_update:
// foodtype_delete
if (0 === strpos($pathinfo, '/admin/foodtypes/delete') && preg_match('#^/admin/foodtypes/delete/(?P<foodTypeId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'foodtype_delete']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\FoodTypesController::deleteAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_foodtype_delete;
}
return $ret;
}
not_foodtype_delete:
}
// food_airway_admin_feedbacks
if ('/admin/feedbacks' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DefaultController::feedbacksAction', '_route' => 'food_airway_admin_feedbacks',);
}
if (0 === strpos($pathinfo, '/admin/orders')) {
// orders_listing
if ('/admin/orders/index' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\OrdersController::indexAction', '_route' => 'orders_listing',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_orders_listing;
}
return $ret;
}
not_orders_listing:
// orders_update_status
if (0 === strpos($pathinfo, '/admin/orders/update/status') && preg_match('#^/admin/orders/update/status/(?P<orderId>[^/]++)/(?P<statusId>[^/]++)/(?P<userId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'orders_update_status']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\OrdersController::updateStatusAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_orders_update_status;
}
return $ret;
}
not_orders_update_status:
if (0 === strpos($pathinfo, '/admin/orders/all')) {
// orders_listing_all
if ('/admin/orders/all' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\OrdersController::allAction', '_route' => 'orders_listing_all',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_orders_listing_all;
}
return $ret;
}
not_orders_listing_all:
// orders_listing_all_ajax
if ('/admin/orders/all/ajax' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\OrdersController::allAjaxAction', '_route' => 'orders_listing_all_ajax',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_orders_listing_all_ajax;
}
return $ret;
}
not_orders_listing_all_ajax:
}
// orders_assign_delivery_partner
if (0 === strpos($pathinfo, '/admin/orders/assign/delivery/partner') && preg_match('#^/admin/orders/assign/delivery/partner/(?P<orderId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'orders_assign_delivery_partner']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\OrdersController::assignDeliveryPartnerAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_orders_assign_delivery_partner;
}
return $ret;
}
not_orders_assign_delivery_partner:
// orders_cancel
if (0 === strpos($pathinfo, '/admin/orders/cancel') && preg_match('#^/admin/orders/cancel/(?P<orderId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'orders_cancel']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\OrdersController::cancelAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_orders_cancel;
}
return $ret;
}
not_orders_cancel:
// orders_edit_udpate
if (0 === strpos($pathinfo, '/admin/orders/edit') && preg_match('#^/admin/orders/edit/(?P<orderId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'orders_edit_udpate']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\OrdersController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_orders_edit_udpate;
}
return $ret;
}
not_orders_edit_udpate:
}
elseif (0 === strpos($pathinfo, '/admin/advertisement-banners')) {
// advertisement_banner_index
if ('/admin/advertisement-banners' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AdvertisementBannersController::indexAction', '_route' => 'advertisement_banner_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_advertisement_banner_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'advertisement_banner_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_advertisement_banner_index;
}
return $ret;
}
not_advertisement_banner_index:
if (0 === strpos($pathinfo, '/admin/advertisement-banners/update')) {
// advertisement_banner_add_edit
if (preg_match('#^/admin/advertisement\\-banners/update(?:/(?P<advertisementBannerId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'advertisement_banner_add_edit']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AdvertisementBannersController::addEditAction', 'advertisementBannerId' => NULL,));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_advertisement_banner_add_edit;
}
return $ret;
}
not_advertisement_banner_add_edit:
// advertisement_banner_update
if (preg_match('#^/admin/advertisement\\-banners/update(?:/(?P<advertisementBannerId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'advertisement_banner_update']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AdvertisementBannersController::updateAction', 'advertisementBannerId' => NULL,));
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_advertisement_banner_update;
}
return $ret;
}
not_advertisement_banner_update:
}
// advertisement_banner_delete
if (0 === strpos($pathinfo, '/admin/advertisement-banners/delete') && preg_match('#^/admin/advertisement\\-banners/delete(?:/(?P<advertisementBannerId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'advertisement_banner_delete']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AdvertisementBannersController::deleteAction', 'advertisementBannerId' => NULL,));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_advertisement_banner_delete;
}
return $ret;
}
not_advertisement_banner_delete:
}
elseif (0 === strpos($pathinfo, '/admin/anayltics')) {
// anayltics_menu_report
if ('/admin/anayltics/menu-report' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AnaylticsController::menuReportAction', '_route' => 'anayltics_menu_report',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_anayltics_menu_report;
}
return $ret;
}
not_anayltics_menu_report:
// anayltics_recent_visitors
if ('/admin/anayltics/recent-visitors' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AnaylticsController::VisitorsAction', '_route' => 'anayltics_recent_visitors',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_anayltics_recent_visitors;
}
return $ret;
}
not_anayltics_recent_visitors:
if (0 === strpos($pathinfo, '/admin/anayltics/delivery/partner/cash')) {
// anayltics_delivery_partner_cash
if ('/admin/anayltics/delivery/partner/cash' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AnaylticsController::deliveryPartnerCashAction', '_route' => 'anayltics_delivery_partner_cash',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_anayltics_delivery_partner_cash;
}
return $ret;
}
not_anayltics_delivery_partner_cash:
// anayltics_delivery_partner_cash_detail
if (0 === strpos($pathinfo, '/admin/anayltics/delivery/partner/cash/detail') && preg_match('#^/admin/anayltics/delivery/partner/cash/detail(?:/(?P<deliveryPartnerId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'anayltics_delivery_partner_cash_detail']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AnaylticsController::deliveryPartnerCashDetailAction', 'deliveryPartnerId' => NULL,));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_anayltics_delivery_partner_cash_detail;
}
return $ret;
}
not_anayltics_delivery_partner_cash_detail:
}
elseif (0 === strpos($pathinfo, '/admin/anayltics/delivery/valet/performance')) {
// anayltics_delivery_valet_performance
if ('/admin/anayltics/delivery/valet/performance' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AnaylticsController::deliveryValetPerformanceAction', '_route' => 'anayltics_delivery_valet_performance',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_anayltics_delivery_valet_performance;
}
return $ret;
}
not_anayltics_delivery_valet_performance:
// anayltics_delivery_valet_performance_order_detail
if (0 === strpos($pathinfo, '/admin/anayltics/delivery/valet/performance/order/detail') && preg_match('#^/admin/anayltics/delivery/valet/performance/order/detail/(?P<orderDeliveryRouteId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'anayltics_delivery_valet_performance_order_detail']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AnaylticsController::deliveryValetPerformanceOrderDetailAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_anayltics_delivery_valet_performance_order_detail;
}
return $ret;
}
not_anayltics_delivery_valet_performance_order_detail:
// anayltics_delivery_valet_performance_order_routes
if (0 === strpos($pathinfo, '/admin/anayltics/delivery/valet/performance/order/routes') && preg_match('#^/admin/anayltics/delivery/valet/performance/order/routes/(?P<deliveryPartnerId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'anayltics_delivery_valet_performance_order_routes']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AnaylticsController::deliveryValetPerformanceOrderRoutesAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_anayltics_delivery_valet_performance_order_routes;
}
return $ret;
}
not_anayltics_delivery_valet_performance_order_routes:
// anayltics_delivery_valet_performance_tiffins_route_detail
if (0 === strpos($pathinfo, '/admin/anayltics/delivery/valet/performance/tiffins/route/detail') && preg_match('#^/admin/anayltics/delivery/valet/performance/tiffins/route/detail/(?P<deliveryPartnerId>[^/]++)/(?P<routeId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'anayltics_delivery_valet_performance_tiffins_route_detail']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AnaylticsController::deliveryValetPerformanceTiffinsRouteDetailAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_anayltics_delivery_valet_performance_tiffins_route_detail;
}
return $ret;
}
not_anayltics_delivery_valet_performance_tiffins_route_detail:
}
// anayltics_customer_detail
if ('/admin/anayltics/customer-detail' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AnaylticsController::CustomerDetailAction', '_route' => 'anayltics_customer_detail',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_anayltics_customer_detail;
}
return $ret;
}
not_anayltics_customer_detail:
// anayltics_update_user_addresses
if ('/admin/anayltics/update/user/addreses' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AnaylticsController::updateUserAddressesAction', '_route' => 'anayltics_update_user_addresses',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_anayltics_update_user_addresses;
}
return $ret;
}
not_anayltics_update_user_addresses:
// anayltics_inventory_stock_report
if ('/admin/anayltics/inventory/stock/report' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AnaylticsController::inventoryStockReportAction', '_route' => 'anayltics_inventory_stock_report',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_anayltics_inventory_stock_report;
}
return $ret;
}
not_anayltics_inventory_stock_report:
if (0 === strpos($pathinfo, '/admin/anayltics/order/history')) {
// anayltics_order_history
if ('/admin/anayltics/order/history' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AnaylticsController::orderHistoryAction', '_route' => 'anayltics_order_history',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_anayltics_order_history;
}
return $ret;
}
not_anayltics_order_history:
// anayltics_order_history_ajax
if ('/admin/anayltics/order/history/ajax' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\AnaylticsController::orderHistoryAjaxAction', '_route' => 'anayltics_order_history_ajax',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_anayltics_order_history_ajax;
}
return $ret;
}
not_anayltics_order_history_ajax:
}
}
elseif (0 === strpos($pathinfo, '/admin/deliveryteams')) {
// deliveryteam_index
if ('/admin/deliveryteams' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DeliveryTeamController::indexAction', '_route' => 'deliveryteam_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_deliveryteam_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'deliveryteam_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_deliveryteam_index;
}
return $ret;
}
not_deliveryteam_index:
// deliveryteam_new
if (0 === strpos($pathinfo, '/admin/deliveryteams/new') && preg_match('#^/admin/deliveryteams/new(?:/(?P<deliveryTeamId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'deliveryteam_new']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DeliveryTeamController::newAction', 'deliveryTeamId' => NULL,));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_deliveryteam_new;
}
return $ret;
}
not_deliveryteam_new:
// deliveryteam_update
if ('/admin/deliveryteams/update' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DeliveryTeamController::updateAction', '_route' => 'deliveryteam_update',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_deliveryteam_update;
}
return $ret;
}
not_deliveryteam_update:
// deliveryteam_delete
if (0 === strpos($pathinfo, '/admin/deliveryteams/delete') && preg_match('#^/admin/deliveryteams/delete/(?P<deliveryTeamId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'deliveryteam_delete']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DeliveryTeamController::deleteAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_deliveryteam_delete;
}
return $ret;
}
not_deliveryteam_delete:
if (0 === strpos($pathinfo, '/admin/deliveryteams/timesheet')) {
// deliveryteam_timesheet
if ('/admin/deliveryteams/timesheet' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DeliveryTeamController::timesheetAction', '_route' => 'deliveryteam_timesheet',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_deliveryteam_timesheet;
}
return $ret;
}
not_deliveryteam_timesheet:
// deliveryteam_timesheet_checkin_checkout
if (0 === strpos($pathinfo, '/admin/deliveryteams/timesheet/checkin-checkout/history') && preg_match('#^/admin/deliveryteams/timesheet/checkin\\-checkout/history/(?P<deliveryTeamId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'deliveryteam_timesheet_checkin_checkout']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DeliveryTeamController::timesheetCheckInCheckoutHistoryAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_deliveryteam_timesheet_checkin_checkout;
}
return $ret;
}
not_deliveryteam_timesheet_checkin_checkout:
// deliveryteam_timesheet_reports
if ('/admin/deliveryteams/timesheet/reports' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DeliveryTeamController::timesheetReportsAction', '_route' => 'deliveryteam_timesheet_reports',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_deliveryteam_timesheet_reports;
}
return $ret;
}
not_deliveryteam_timesheet_reports:
}
// deliveryteam_add_shifts
if (0 === strpos($pathinfo, '/admin/deliveryteams/add/shifts') && preg_match('#^/admin/deliveryteams/add/shifts/(?P<deliveryTeamId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'deliveryteam_add_shifts']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DeliveryTeamController::addShiftsAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_deliveryteam_add_shifts;
}
return $ret;
}
not_deliveryteam_add_shifts:
// deliveryteam_add_accessories
if (0 === strpos($pathinfo, '/admin/deliveryteams/add/accessories') && preg_match('#^/admin/deliveryteams/add/accessories/(?P<deliveryTeamId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'deliveryteam_add_accessories']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DeliveryTeamController::addAccessoriesAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_deliveryteam_add_accessories;
}
return $ret;
}
not_deliveryteam_add_accessories:
}
elseif (0 === strpos($pathinfo, '/admin/dutyshifts')) {
// dutyShifts_index
if ('/admin/dutyshifts' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DutyShiftsController::indexAction', '_route' => 'dutyShifts_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_dutyShifts_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'dutyShifts_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_dutyShifts_index;
}
return $ret;
}
not_dutyShifts_index:
// dutyShifts_new
if (0 === strpos($pathinfo, '/admin/dutyshifts/new') && preg_match('#^/admin/dutyshifts/new(?:/(?P<dutyShiftId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'dutyShifts_new']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DutyShiftsController::newAction', 'dutyShiftId' => NULL,));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_dutyShifts_new;
}
return $ret;
}
not_dutyShifts_new:
// dutyShifts_update
if ('/admin/dutyshifts/update' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DutyShiftsController::updateAction', '_route' => 'dutyShifts_update',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_dutyShifts_update;
}
return $ret;
}
not_dutyShifts_update:
}
elseif (0 === strpos($pathinfo, '/admin/expenesestype')) {
// expensestype_index
if ('/admin/expenesestype' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ExpensesTypeController::indexAction', '_route' => 'expensestype_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_expensestype_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'expensestype_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_expensestype_index;
}
return $ret;
}
not_expensestype_index:
// expensestype_new
if (0 === strpos($pathinfo, '/admin/expenesestype/new') && preg_match('#^/admin/expenesestype/new(?:/(?P<expensesTypeId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'expensestype_new']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ExpensesTypeController::newAction', 'expensesTypeId' => NULL,));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_expensestype_new;
}
return $ret;
}
not_expensestype_new:
// expensestype_update
if ('/admin/expenesestype/update' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ExpensesTypeController::updateAction', '_route' => 'expensestype_update',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_expensestype_update;
}
return $ret;
}
not_expensestype_update:
}
elseif (0 === strpos($pathinfo, '/admin/tiffin-routes')) {
// tiffin_routes_index
if ('/admin/tiffin-routes' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\TiffinRoutesController::indexAction', '_route' => 'tiffin_routes_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_tiffin_routes_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'tiffin_routes_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_tiffin_routes_index;
}
return $ret;
}
not_tiffin_routes_index:
if (0 === strpos($pathinfo, '/admin/tiffin-routes/update')) {
// tiffin_routes_add_edit
if (preg_match('#^/admin/tiffin\\-routes/update(?:/(?P<tiffinRouteId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'tiffin_routes_add_edit']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\TiffinRoutesController::addEditAction', 'tiffinRouteId' => NULL,));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_tiffin_routes_add_edit;
}
return $ret;
}
not_tiffin_routes_add_edit:
// tiffin_routes_update
if (preg_match('#^/admin/tiffin\\-routes/update(?:/(?P<tiffinRouteId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'tiffin_routes_update']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\TiffinRoutesController::updateAction', 'tiffinRouteId' => NULL,));
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_tiffin_routes_update;
}
return $ret;
}
not_tiffin_routes_update:
}
// tiffin_routes_delete
if (0 === strpos($pathinfo, '/admin/tiffin-routes/delete') && preg_match('#^/admin/tiffin\\-routes/delete(?:/(?P<tiffinRouteId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'tiffin_routes_delete']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\TiffinRoutesController::deleteAction', 'tiffinRouteId' => NULL,));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_tiffin_routes_delete;
}
return $ret;
}
not_tiffin_routes_delete:
// tiffin_routes_view
if (0 === strpos($pathinfo, '/admin/tiffin-routes/view') && preg_match('#^/admin/tiffin\\-routes/view(?:/(?P<tiffinRouteId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'tiffin_routes_view']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\TiffinRoutesController::viewAction', 'tiffinRouteId' => NULL,));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_tiffin_routes_view;
}
return $ret;
}
not_tiffin_routes_view:
}
// food_airway_admin_team_feedbacks
if ('/admin/team/feedbacks' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DefaultController::teamFeedbackAction', '_route' => 'food_airway_admin_team_feedbacks',);
}
// food_airway_admin_salary
if ('/admin/salaries' === $pathinfo) {
return array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\DefaultController::salaryAction', '_route' => 'food_airway_admin_salary',);
}
if (0 === strpos($pathinfo, '/admin/reports')) {
// reports_sales
if ('/admin/reports/sales' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ReportsController::salesAction', '_route' => 'reports_sales',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_reports_sales;
}
return $ret;
}
not_reports_sales:
if (0 === strpos($pathinfo, '/admin/reports/users')) {
// reports_users
if ('/admin/reports/users' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ReportsController::usersAction', '_route' => 'reports_users',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_reports_users;
}
return $ret;
}
not_reports_users:
// reports_users_ajax
if ('/admin/reports/users/ajax' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ReportsController::usersAjaxAction', '_route' => 'reports_users_ajax',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_reports_users_ajax;
}
return $ret;
}
not_reports_users_ajax:
}
// reports_user_timeline
if ('/admin/reports/user/timeline' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\ReportsController::userTimelineAction', '_route' => 'reports_user_timeline',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_reports_user_timeline;
}
return $ret;
}
not_reports_user_timeline:
}
elseif (0 === strpos($pathinfo, '/admin/vendors')) {
// vendors_index
if ('/admin/vendors' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\VendorsController::indexAction', '_route' => 'vendors_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_vendors_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'vendors_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_vendors_index;
}
return $ret;
}
not_vendors_index:
// vendors_new
if (0 === strpos($pathinfo, '/admin/vendors/new') && preg_match('#^/admin/vendors/new(?:/(?P<vendorId>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'vendors_new']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\VendorsController::newAction', 'vendorId' => NULL,));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_vendors_new;
}
return $ret;
}
not_vendors_new:
// vendors_update
if ('/admin/vendors/update' === $pathinfo) {
$ret = array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\VendorsController::updateAction', '_route' => 'vendors_update',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_vendors_update;
}
return $ret;
}
not_vendors_update:
// vendors_delete
if (0 === strpos($pathinfo, '/admin/vendors/delete') && preg_match('#^/admin/vendors/delete/(?P<vendorId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'vendors_delete']), array ( '_controller' => 'FoodAirwayAdminBundle\\Controller\\VendorsController::deleteAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_vendors_delete;
}
return $ret;
}
not_vendors_delete:
}
}
}
// food_airway_site_homepage
if ('' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\DefaultController::indexAction', '_route' => 'food_airway_site_homepage',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_food_airway_site_homepage;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'food_airway_site_homepage'));
}
return $ret;
}
not_food_airway_site_homepage:
// food_airway_site_staff
if ('/staff' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\DefaultController::staffAction', '_route' => 'food_airway_site_staff',);
}
if (0 === strpos($pathinfo, '/watch-us')) {
// food_airway_site_watch_us
if ('/watch-us' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\DefaultController::watchUsAction', '_route' => 'food_airway_site_watch_us',);
}
// food_airway_site_watch_us_mobile
if ('/watch-us-mobile' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\DefaultController::watchUsForIphoneAction', '_route' => 'food_airway_site_watch_us_mobile',);
}
}
elseif (0 === strpos($pathinfo, '/pr')) {
// food_airway_site_privacy_policy
if ('/privacy-policy' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\DefaultController::privacyPolicyAction', '_route' => 'food_airway_site_privacy_policy',);
}
// food_airway_site_product_listing
if ('/product/listing' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\ProductController::listingAction', '_route' => 'food_airway_site_product_listing',);
}
// food_airway_site_product_offers
if ('/product/offers' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\ProductController::offerAction', '_route' => 'food_airway_site_product_offers',);
}
// preparing_order_screen
if ('/preparing-orders-screen' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\DefaultController::preparingOrdersScreenAction', '_route' => 'preparing_order_screen',);
}
}
// food_airway_site_google_verification
if ('/google6fec763a38f4b25e.html' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\DefaultController::googleVerificationAction', '_route' => 'food_airway_site_google_verification',);
}
// food_airway_site_google_fetch_address
if ('/google-fetch-address' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\DefaultController::googleFetchAddressAction', '_route' => 'food_airway_site_google_fetch_address',);
}
// food_airway_site_logout
if ('/logout' === $pathinfo) {
return ['_route' => 'food_airway_site_logout'];
}
// security_login_check
if ('/login_check' === $pathinfo) {
return ['_route' => 'security_login_check'];
}
if (0 === strpos($pathinfo, '/c')) {
if (0 === strpos($pathinfo, '/cart')) {
// food_airway_site_cart_update
if ('/cart/update' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\CartController::updateAction', '_route' => 'food_airway_site_cart_update',);
}
// food_airway_site_cart_display
if ('/cart/display' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\CartController::displayAction', '_route' => 'food_airway_site_cart_display',);
}
// food_airway_site_cart_checkout
if ('/cart/checkout' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\CartController::checkoutAction', '_route' => 'food_airway_site_cart_checkout',);
}
}
elseif (0 === strpos($pathinfo, '/connect/facebook')) {
// connect_facebook_start
if ('/connect/facebook' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\FacebookController::connectAction', '_route' => 'connect_facebook_start',);
}
// connect_facebook_check
if ('/connect/facebook/check' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\FacebookController::connectCheckAction', '_route' => 'connect_facebook_check',);
}
}
elseif (0 === strpos($pathinfo, '/connect/google')) {
// connect_google_start
if ('/connect/google' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\GoogleController::connectAction', '_route' => 'connect_google_start',);
}
// connect_google_check
if ('/connect/google/check' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\GoogleController::connectCheckAction', '_route' => 'connect_google_check',);
}
}
}
elseif (0 === strpos($pathinfo, '/order')) {
// food_airway_track_order
if (0 === strpos($pathinfo, '/order/track') && preg_match('#^/order/track/(?P<orderId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_track_order']), array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\OrderController::trackAction',));
}
// food_airway_order_listing
if ('/order/listing' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\OrderController::listingAction', '_route' => 'food_airway_order_listing',);
}
// food_airway_order_create
if (0 === strpos($pathinfo, '/order/create') && preg_match('#^/order/create/(?P<orderStatus>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_order_create']), array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\OrderController::createAction',));
}
// food_airway_order_status_update
if ('/order/status/update' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\OrderController::statusUpdateAction', '_route' => 'food_airway_order_status_update',);
}
// food_airway_invoice_order
if (0 === strpos($pathinfo, '/order/invoice') && preg_match('#^/order/invoice/(?P<orderId>[^/]++)/(?P<secretKey>[^/]++)/(?P<userId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_invoice_order']), array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\OrderController::invoiceAction',));
}
}
// food_airway_site_mobile_verification
if ('/mobile/verification' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\UserController::mobileVerificationAction', '_route' => 'food_airway_site_mobile_verification',);
}
if (0 === strpos($pathinfo, '/user')) {
// food_airway_site_user_create_account
if ('/user/create-account' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\UserController::createAccountAction', '_route' => 'food_airway_site_user_create_account',);
}
// food_airway_site_user_verify_otp
if ('/user/verify-otp' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\UserController::verifyOtpAction', '_route' => 'food_airway_site_user_verify_otp',);
}
// login
if ('/user/login' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\UserController::loginAction', '_route' => 'login',);
}
if (0 === strpos($pathinfo, '/useraddress')) {
// food_airway_site_user_address_add_update
if (0 === strpos($pathinfo, '/useraddress/add-update') && preg_match('#^/useraddress/add\\-update(?:/(?P<userAddressId>[^/]++))?$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_site_user_address_add_update']), array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\UserAddressController::addUpdateAction', 'userAddressId' => NULL,));
}
// food_airway_site_user_address_update_active_address
if (0 === strpos($pathinfo, '/useraddress/update-active-address') && preg_match('#^/useraddress/update\\-active\\-address/(?P<userAddressId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_site_user_address_update_active_address']), array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\UserAddressController::updateActiveAddressAction',));
}
// food_airway_site_user_address_listing
if ('/useraddress/listing' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\UserAddressController::listingAction', '_route' => 'food_airway_site_user_address_listing',);
}
// food_airway_site_user_address_view
if ('/useraddress/view' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\UserAddressController::viewAction', '_route' => 'food_airway_site_user_address_view',);
}
// food_airway_site_user_address_delete
if (0 === strpos($pathinfo, '/useraddress/delete') && preg_match('#^/useraddress/delete/(?P<userAddressId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_site_user_address_delete']), array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\UserAddressController::deleteAction',));
}
}
// survey_form
if ('/user/survey/form' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\UserController::surveyFormAction', '_route' => 'survey_form',);
}
}
elseif (0 === strpos($pathinfo, '/t')) {
// food_airway_site_tiffin_box_add
if ('/tiffinbox/add' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\TiffinBoxController::addAction', '_route' => 'food_airway_site_tiffin_box_add',);
}
// food_airway_site_tiffin_box_detail
if (0 === strpos($pathinfo, '/tiffinbox/detail') && preg_match('#^/tiffinbox/detail/(?P<productId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'food_airway_site_tiffin_box_detail']), array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\TiffinBoxController::detailAction',));
}
// food_airway_team_members_attendance_login
if ('/team/members/attendance/login' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\TeamMembersController::attendanceLoginAction', '_route' => 'food_airway_team_members_attendance_login',);
}
// team_feedback
if ('/team/feedback/form' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\UserController::teamFeedbackAction', '_route' => 'team_feedback',);
}
}
// food_airway_site_redirect_user
if ('/redirect/user/to/device' === $pathinfo) {
return array ( '_controller' => 'FoodAirwaySiteBundle\\Controller\\DefaultController::redirectUserToDeviceAction', '_route' => 'food_airway_site_redirect_user',);
}
if ('/' === $pathinfo && !$allow) {
throw new Symfony\Component\Routing\Exception\NoConfigurationException();
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}