var/cache/dev/srcDevDebugProjectContainerUrlMatcher.php line 50

Open in your IDE?
  1. <?php
  2. use Symfony\Component\Routing\Exception\MethodNotAllowedException;
  3. use Symfony\Component\Routing\Exception\ResourceNotFoundException;
  4. use Symfony\Component\Routing\RequestContext;
  5. /**
  6.  * This class has been auto-generated
  7.  * by the Symfony Routing Component.
  8.  */
  9. class srcDevDebugProjectContainerUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
  10. {
  11.     public function __construct(RequestContext $context)
  12.     {
  13.         $this->context $context;
  14.     }
  15.     public function match($pathinfo)
  16.     {
  17.         $allow $allowSchemes = array();
  18.         if ($ret $this->doMatch($pathinfo$allow$allowSchemes)) {
  19.             return $ret;
  20.         }
  21.         if ($allow) {
  22.             throw new MethodNotAllowedException(array_keys($allow));
  23.         }
  24.         if (!in_array($this->context->getMethod(), array('HEAD''GET'), true)) {
  25.             // no-op
  26.         } elseif ($allowSchemes) {
  27.             redirect_scheme:
  28.             $scheme $this->context->getScheme();
  29.             $this->context->setScheme(key($allowSchemes));
  30.             try {
  31.                 if ($ret $this->doMatch($pathinfo)) {
  32.                     return $this->redirect($pathinfo$ret['_route'], $this->context->getScheme()) + $ret;
  33.                 }
  34.             } finally {
  35.                 $this->context->setScheme($scheme);
  36.             }
  37.         } elseif ('/' !== $pathinfo) {
  38.             $pathinfo '/' !== $pathinfo[-1] ? $pathinfo.'/' substr($pathinfo0, -1);
  39.             if ($ret $this->doMatch($pathinfo$allow$allowSchemes)) {
  40.                 return $this->redirect($pathinfo$ret['_route']) + $ret;
  41.             }
  42.             if ($allowSchemes) {
  43.                 goto redirect_scheme;
  44.             }
  45.         }
  46.         throw new ResourceNotFoundException();
  47.     }
  48.     private function doMatch(string $rawPathinfo, array &$allow = array(), array &$allowSchemes = array()): ?array
  49.     {
  50.         $allow $allowSchemes = array();
  51.         $pathinfo rawurldecode($rawPathinfo);
  52.         $context $this->context;
  53.         $requestMethod $canonicalMethod $context->getMethod();
  54.         if ('HEAD' === $requestMethod) {
  55.             $canonicalMethod 'GET';
  56.         }
  57.         switch ($pathinfo) {
  58.             case '/api/member':
  59.                 // app_api_member_create
  60.                 $ret = array('_route' => 'app_api_member_create''_controller' => 'App\\Controller\\Api\\MemberController::create');
  61.                 if (!isset(($a = array('POST' => 0))[$requestMethod])) {
  62.                     $allow += $a;
  63.                     goto not_app_api_member_create;
  64.                 }
  65.                 return $ret;
  66.                 not_app_api_member_create:
  67.                 // app_api_member_update
  68.                 $ret = array('_route' => 'app_api_member_update''_controller' => 'App\\Controller\\Api\\MemberController::update');
  69.                 if (!isset(($a = array('PUT' => 0))[$requestMethod])) {
  70.                     $allow += $a;
  71.                     goto not_app_api_member_update;
  72.                 }
  73.                 return $ret;
  74.                 not_app_api_member_update:
  75.                 break;
  76.             default:
  77.                 $routes = array(
  78.                     '/api/flight/autocomplete' => array(array('_route' => 'app_api_flight_autocomplete''_controller' => 'App\\Controller\\Api\\FlightController::autocomplete'), null, array('POST' => 0), null),
  79.                     '/api/flight/search' => array(array('_route' => 'app_api_flight_search''_controller' => 'App\\Controller\\Api\\FlightController::search'), null, array('POST' => 0), null),
  80.                     '/api/flight/select' => array(array('_route' => 'app_api_flight_select''_controller' => 'App\\Controller\\Api\\FlightController::select'), null, array('POST' => 0), null),
  81.                     '/api/flight/update-passengers' => array(array('_route' => 'app_api_flight_updatepassengers''_controller' => 'App\\Controller\\Api\\FlightController::updatePassengers'), null, array('POST' => 0), null),
  82.                     '/api/locale/change-currency-language' => array(array('_route' => 'app_api_locale_changecurrencylanguage''_controller' => 'App\\Controller\\Api\\LocaleController::changeCurrencyLanguage'), null, array('POST' => 0), null),
  83.                     '/api/member/check-facebook' => array(array('_route' => 'app_api_member_checkfacebook''_controller' => 'App\\Controller\\Api\\MemberController::checkFacebook'), nullnullnull),
  84.                     '/api/member/login' => array(array('_route' => 'app_api_member_login''_controller' => 'App\\Controller\\Api\\MemberController::login'), nullnullnull),
  85.                     '/api/member/logout' => array(array('_route' => 'app_api_member_logout''_controller' => 'App\\Controller\\Api\\MemberController::logout'), nullnullnull),
  86.                     '/api/member/change-password' => array(array('_route' => 'app_api_member_changepassword''_controller' => 'App\\Controller\\Api\\MemberController::changePassword'), nullnullnull),
  87.                     '/api/member/change-email' => array(array('_route' => 'app_api_member_changeemail''_controller' => 'App\\Controller\\Api\\MemberController::changeEmail'), nullnullnull),
  88.                     '/api/member/passenger' => array(array('_route' => 'app_api_member_addpassenger''_controller' => 'App\\Controller\\Api\\MemberController::addPassenger'), null, array('POST' => 0), null),
  89.                     '/api/member/passengers' => array(array('_route' => 'app_api_member_getpassengers''_controller' => 'App\\Controller\\Api\\MemberController::getPassengers'), null, array('GET' => 0), null),
  90.                     '/api/payment/threeds-init' => array(array('_route' => 'app_api_payment_threedsinit''_controller' => 'App\\Controller\\Api\\PaymentController::threedsInit'), null, array('POST' => 0), null),
  91.                     '/api/payment/threeds-callback' => array(array('_route' => 'app_api_payment_threedscallback''_controller' => 'App\\Controller\\Api\\PaymentController::threedsCallback'), null, array('POST' => 0), null),
  92.                     '/api/payment/threeds-pay' => array(array('_route' => 'app_api_payment_threedspay''_controller' => 'App\\Controller\\Api\\PaymentController::threedsPay'), null, array('POST' => 0), null),
  93.                     '/api/shopping/get-file' => array(array('_route' => 'app_api_shopping_getfile''_controller' => 'App\\Controller\\Api\\ShoppingController::getFile'), null, array('POST' => 0), null),
  94.                     '/api/shopping/finalize' => array(array('_route' => 'app_api_shopping_finalize''_controller' => 'App\\Controller\\Api\\ShoppingController::finalize'), null, array('POST' => 0), null),
  95.                     '/api/static/countries' => array(array('_route' => 'app_api_static_getall''_controller' => 'App\\Controller\\Api\\StaticController::getAll'), null, array('GET' => 0), null),
  96.                     '/tr/hakkimizda' => array(array('_route' => 'aboutUs''_controller' => 'App\\Controller\\Pages\\AboutUsController::aboutUs''_locale' => 'tr'), nullnullnull),
  97.                     '/en/about-us' => array(array('_route' => 'aboutUs''_controller' => 'App\\Controller\\Pages\\AboutUsController::aboutUs''_locale' => 'en'), nullnullnull),
  98.                     '/' => array(array('_route' => 'app_pages_index_redirecttolocale''_controller' => 'App\\Controller\\Pages\\IndexController::redirectToLocale'), nullnullnull),
  99.                     '/tr' => array(array('_route' => 'index''_controller' => 'App\\Controller\\Pages\\IndexController::index''_locale' => 'tr'), nullnullnull),
  100.                     '/en' => array(array('_route' => 'index''_controller' => 'App\\Controller\\Pages\\IndexController::index''_locale' => 'en'), nullnullnull),
  101.                     '/tr/uyelik/fatura-bilgisi-ekle' => array(array('_route' => 'addBillingInformation''_controller' => 'App\\Controller\\Pages\\Member\\AddBillingInformationController::addBillingInformation''_locale' => 'tr'), nullnullnull),
  102.                     '/en/member/add-billing-information' => array(array('_route' => 'addBillingInformation''_controller' => 'App\\Controller\\Pages\\Member\\AddBillingInformationController::addBillingInformation''_locale' => 'en'), nullnullnull),
  103.                     '/tr/uyelik/yolcu-ekle' => array(array('_route' => 'addPassenger''_controller' => 'App\\Controller\\Pages\\Member\\AddPassengerController::addPassenger''_locale' => 'tr'), nullnullnull),
  104.                     '/en/member/add-passenger' => array(array('_route' => 'addPassenger''_controller' => 'App\\Controller\\Pages\\Member\\AddPassengerController::addPassenger''_locale' => 'en'), nullnullnull),
  105.                     '/tr/uyelik/fatura-bilgileri' => array(array('_route' => 'billingInformation''_controller' => 'App\\Controller\\Pages\\Member\\BillingInformationController::billingInformation''_locale' => 'tr'), nullnullnull),
  106.                     '/en/member/billing-information' => array(array('_route' => 'billingInformation''_controller' => 'App\\Controller\\Pages\\Member\\BillingInformationController::billingInformation''_locale' => 'en'), nullnullnull),
  107.                     '/tr/uyelik/email-degistir' => array(array('_route' => 'changeEmail''_controller' => 'App\\Controller\\Pages\\Member\\ChangeEmailController::changeEmail''_locale' => 'tr'), nullnullnull),
  108.                     '/en/member/change-email' => array(array('_route' => 'changeEmail''_controller' => 'App\\Controller\\Pages\\Member\\ChangeEmailController::changeEmail''_locale' => 'en'), nullnullnull),
  109.                     '/tr/uyelik/sifre-degistir' => array(array('_route' => 'changePassword''_controller' => 'App\\Controller\\Pages\\Member\\ChangePasswordController::changePassword''_locale' => 'tr'), nullnullnull),
  110.                     '/en/member/change-password' => array(array('_route' => 'changePassword''_controller' => 'App\\Controller\\Pages\\Member\\ChangePasswordController::changePassword''_locale' => 'en'), nullnullnull),
  111.                     '/tr/uyelik/fatura-bilgisi-duzenle' => array(array('_route' => 'editBillingInformation''_controller' => 'App\\Controller\\Pages\\Member\\EditBillingInformationController::editBillingInformation''_locale' => 'tr'), nullnullnull),
  112.                     '/en/member/edit-billing-information' => array(array('_route' => 'editBillingInformation''_controller' => 'App\\Controller\\Pages\\Member\\EditBillingInformationController::editBillingInformation''_locale' => 'en'), nullnullnull),
  113.                     '/tr/uyelik/yolcu-duzenle' => array(array('_route' => 'editPassenger''_controller' => 'App\\Controller\\Pages\\Member\\EditPassengerController::editPassenger''_locale' => 'tr'), nullnullnull),
  114.                     '/en/member/edit-passenger' => array(array('_route' => 'editPassenger''_controller' => 'App\\Controller\\Pages\\Member\\EditPassengerController::editPassenger''_locale' => 'en'), nullnullnull),
  115.                     '/tr/uyelik/baglan' => array(array('_route' => 'login''_controller' => 'App\\Controller\\Pages\\Member\\LoginController::login''_locale' => 'tr'), nullnullnull),
  116.                     '/en/member/login' => array(array('_route' => 'login''_controller' => 'App\\Controller\\Pages\\Member\\LoginController::login''_locale' => 'en'), nullnullnull),
  117.                     '/tr/uyelik/cikis' => array(array('_route' => 'logout''_controller' => 'App\\Controller\\Pages\\Member\\LogoutController::logout''_locale' => 'tr'), nullnullnull),
  118.                     '/en/member/logout' => array(array('_route' => 'logout''_controller' => 'App\\Controller\\Pages\\Member\\LogoutController::logout''_locale' => 'en'), nullnullnull),
  119.                     '/tr/uyelik/yolcular' => array(array('_route' => 'passengers''_controller' => 'App\\Controller\\Pages\\Member\\PassengersController::passengers''_locale' => 'tr'), nullnullnull),
  120.                     '/en/member/passengers' => array(array('_route' => 'passengers''_controller' => 'App\\Controller\\Pages\\Member\\PassengersController::passengers''_locale' => 'en'), nullnullnull),
  121.                     '/tr/uyelik/profil' => array(array('_route' => 'profile''_controller' => 'App\\Controller\\Pages\\Member\\ProfileController::profile''_locale' => 'tr'), nullnullnull),
  122.                     '/en/member/profile' => array(array('_route' => 'profile''_controller' => 'App\\Controller\\Pages\\Member\\ProfileController::profile''_locale' => 'en'), nullnullnull),
  123.                     '/tr/uyelik/aramalar' => array(array('_route' => 'searches''_controller' => 'App\\Controller\\Pages\\Member\\SearchesController::searches''_locale' => 'tr'), nullnullnull),
  124.                     '/en/member/searches' => array(array('_route' => 'searches''_controller' => 'App\\Controller\\Pages\\Member\\SearchesController::searches''_locale' => 'en'), nullnullnull),
  125.                     '/tr/uyelik/biletler' => array(array('_route' => 'tickets''_controller' => 'App\\Controller\\Pages\\Member\\TicketsController::tickets''_locale' => 'tr'), nullnullnull),
  126.                     '/en/member/tickets' => array(array('_route' => 'tickets''_controller' => 'App\\Controller\\Pages\\Member\\TicketsController::tickets''_locale' => 'en'), nullnullnull),
  127.                     '/tr/odeme' => array(array('_route' => 'payment''_controller' => 'App\\Controller\\Pages\\PaymentController::payment''_locale' => 'tr'), nullnullnull),
  128.                     '/en/payment' => array(array('_route' => 'payment''_controller' => 'App\\Controller\\Pages\\PaymentController::payment''_locale' => 'en'), nullnullnull),
  129.                     '/tr/rezervasyon-tamamlandi' => array(array('_route' => 'reservationComplete''_controller' => 'App\\Controller\\Pages\\ReservationCompleteController::reservationComplete''_locale' => 'tr'), nullnullnull),
  130.                     '/en/reservation-complete' => array(array('_route' => 'reservationComplete''_controller' => 'App\\Controller\\Pages\\ReservationCompleteController::reservationComplete''_locale' => 'en'), nullnullnull),
  131.                     '/tr/rezervasyon' => array(array('_route' => 'reservation''_controller' => 'App\\Controller\\Pages\\ReservationController::reservation''_locale' => 'tr'), nullnullnull),
  132.                     '/en/reservation' => array(array('_route' => 'reservation''_controller' => 'App\\Controller\\Pages\\ReservationController::reservation''_locale' => 'en'), nullnullnull),
  133.                     '/_profiler/' => array(array('_route' => '_profiler_home''_controller' => 'web_profiler.controller.profiler::homeAction'), nullnullnull),
  134.                     '/_profiler/search' => array(array('_route' => '_profiler_search''_controller' => 'web_profiler.controller.profiler::searchAction'), nullnullnull),
  135.                     '/_profiler/search_bar' => array(array('_route' => '_profiler_search_bar''_controller' => 'web_profiler.controller.profiler::searchBarAction'), nullnullnull),
  136.                     '/_profiler/phpinfo' => array(array('_route' => '_profiler_phpinfo''_controller' => 'web_profiler.controller.profiler::phpinfoAction'), nullnullnull),
  137.                     '/_profiler/open' => array(array('_route' => '_profiler_open_file''_controller' => 'web_profiler.controller.profiler::openAction'), nullnullnull),
  138.                 );
  139.                 if (!isset($routes[$pathinfo])) {
  140.                     break;
  141.                 }
  142.                 list($ret$requiredHost$requiredMethods$requiredSchemes) = $routes[$pathinfo];
  143.                 $hasRequiredScheme = !$requiredSchemes || isset($requiredSchemes[$context->getScheme()]);
  144.                 if ($requiredMethods && !isset($requiredMethods[$canonicalMethod]) && !isset($requiredMethods[$requestMethod])) {
  145.                     if ($hasRequiredScheme) {
  146.                         $allow += $requiredMethods;
  147.                     }
  148.                     break;
  149.                 }
  150.                 if (!$hasRequiredScheme) {
  151.                     $allowSchemes += $requiredSchemes;
  152.                     break;
  153.                 }
  154.                 return $ret;
  155.         }
  156.         $matchedPathinfo $pathinfo;
  157.         $regexList = array(
  158.             => '{^(?'
  159.                     .'|/api/member/(?'
  160.                         .'|get/([^/]++)(*:34)'
  161.                         .'|passenger/([^/]++)(*:59)'
  162.                     .')'
  163.                     .'|/tr/ucak\\-bileti/([^/]++)(?'
  164.                         .'|(*:95)'
  165.                         .'|/(*:103)'
  166.                     .')'
  167.                     .'|/en/flight\\-tickets/([^/]++)(?'
  168.                         .'|(*:143)'
  169.                         .'|/(*:152)'
  170.                     .')'
  171.                     .'|/_(?'
  172.                         .'|error/(\\d+)(?:\\.([^/]++))?(*:192)'
  173.                         .'|wdt/([^/]++)(*:212)'
  174.                         .'|profiler/([^/]++)(?'
  175.                             .'|/(?'
  176.                                 .'|search/results(*:258)'
  177.                                 .'|router(*:272)'
  178.                                 .'|exception(?'
  179.                                     .'|(*:292)'
  180.                                     .'|\\.css(*:305)'
  181.                                 .')'
  182.                             .')'
  183.                             .'|(*:315)'
  184.                         .')'
  185.                     .')'
  186.                 .')$}sD',
  187.         );
  188.         foreach ($regexList as $offset => $regex) {
  189.             while (preg_match($regex$matchedPathinfo$matches)) {
  190.                 switch ($m = (int) $matches['MARK']) {
  191.                     default:
  192.                         $routes = array(
  193.                             34 => array(array('_route' => 'app_api_member_getmember''_controller' => 'App\\Controller\\Api\\MemberController::getMember'), array('id'), nullnull),
  194.                             59 => array(array('_route' => 'app_api_member_getpassenger''_controller' => 'App\\Controller\\Api\\MemberController::getPassenger'), array('id'), array('GET' => 0), null),
  195.                             95 => array(array('_route' => 'destinationDetails''_controller' => 'App\\Controller\\Pages\\DestinationDetailsController::destinationDetails''_locale' => 'tr'), array('slug'), nullnull),
  196.                             103 => array(array('_route' => 'searchResults''destination' => null'_controller' => 'App\\Controller\\Pages\\SearchResultsController::searchResults''_locale' => 'tr'), array('destination'), nullnull),
  197.                             143 => array(array('_route' => 'destinationDetails''_controller' => 'App\\Controller\\Pages\\DestinationDetailsController::destinationDetails''_locale' => 'en'), array('slug'), nullnull),
  198.                             152 => array(array('_route' => 'searchResults''destination' => null'_controller' => 'App\\Controller\\Pages\\SearchResultsController::searchResults''_locale' => 'en'), array('destination'), nullnull),
  199.                             192 => array(array('_route' => '_twig_error_test''_controller' => 'twig.controller.preview_error::previewErrorPageAction''_format' => 'html'), array('code''_format'), nullnull),
  200.                             212 => array(array('_route' => '_wdt''_controller' => 'web_profiler.controller.profiler::toolbarAction'), array('token'), nullnull),
  201.                             258 => array(array('_route' => '_profiler_search_results''_controller' => 'web_profiler.controller.profiler::searchResultsAction'), array('token'), nullnull),
  202.                             272 => array(array('_route' => '_profiler_router''_controller' => 'web_profiler.controller.router::panelAction'), array('token'), nullnull),
  203.                             292 => array(array('_route' => '_profiler_exception''_controller' => 'web_profiler.controller.exception::showAction'), array('token'), nullnull),
  204.                             305 => array(array('_route' => '_profiler_exception_css''_controller' => 'web_profiler.controller.exception::cssAction'), array('token'), nullnull),
  205.                             315 => array(array('_route' => '_profiler''_controller' => 'web_profiler.controller.profiler::panelAction'), array('token'), nullnull),
  206.                         );
  207.                         list($ret$vars$requiredMethods$requiredSchemes) = $routes[$m];
  208.                         foreach ($vars as $i => $v) {
  209.                             if (isset($matches[$i])) {
  210.                                 $ret[$v] = $matches[$i];
  211.                             }
  212.                         }
  213.                         $hasRequiredScheme = !$requiredSchemes || isset($requiredSchemes[$context->getScheme()]);
  214.                         if ($requiredMethods && !isset($requiredMethods[$canonicalMethod]) && !isset($requiredMethods[$requestMethod])) {
  215.                             if ($hasRequiredScheme) {
  216.                                 $allow += $requiredMethods;
  217.                             }
  218.                             break;
  219.                         }
  220.                         if (!$hasRequiredScheme) {
  221.                             $allowSchemes += $requiredSchemes;
  222.                             break;
  223.                         }
  224.                         return $ret;
  225.                 }
  226.                 if (315 === $m) {
  227.                     break;
  228.                 }
  229.                 $regex substr_replace($regex'F'$m $offsetstrlen($m));
  230.                 $offset += strlen($m);
  231.             }
  232.         }
  233.         if ('/' === $pathinfo && !$allow && !$allowSchemes) {
  234.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  235.         }
  236.         return null;
  237.     }
  238. }