var/cache/dev/appDevDebugProjectContainerUrlMatcher.php line 725

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 appDevDebugProjectContainerUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
  10. {
  11.     public function __construct(RequestContext $context)
  12.     {
  13.         $this->context $context;
  14.     }
  15.     public function match($rawPathinfo)
  16.     {
  17.         $allow = [];
  18.         $pathinfo rawurldecode($rawPathinfo);
  19.         $trimmedPathinfo rtrim($pathinfo'/');
  20.         $context $this->context;
  21.         $request $this->request ?: $this->createRequest($pathinfo);
  22.         $requestMethod $canonicalMethod $context->getMethod();
  23.         if ('HEAD' === $requestMethod) {
  24.             $canonicalMethod 'GET';
  25.         }
  26.         if (=== strpos($pathinfo'/_')) {
  27.             // _wdt
  28.             if (=== strpos($pathinfo'/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  29.                 return $this->mergeDefaults(array_replace($matches, ['_route' => '_wdt']), array (  '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
  30.             }
  31.             if (=== strpos($pathinfo'/_profiler')) {
  32.                 // _profiler_home
  33.                 if ('/_profiler' === $trimmedPathinfo) {
  34.                     $ret = array (  '_controller' => 'web_profiler.controller.profiler:homeAction',  '_route' => '_profiler_home',);
  35.                     if ('/' === substr($pathinfo, -1)) {
  36.                         // no-op
  37.                     } elseif ('GET' !== $canonicalMethod) {
  38.                         goto not__profiler_home;
  39.                     } else {
  40.                         return array_replace($ret$this->redirect($rawPathinfo.'/''_profiler_home'));
  41.                     }
  42.                     return $ret;
  43.                 }
  44.                 not__profiler_home:
  45.                 if (=== strpos($pathinfo'/_profiler/search')) {
  46.                     // _profiler_search
  47.                     if ('/_profiler/search' === $pathinfo) {
  48.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchAction',  '_route' => '_profiler_search',);
  49.                     }
  50.                     // _profiler_search_bar
  51.                     if ('/_profiler/search_bar' === $pathinfo) {
  52.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchBarAction',  '_route' => '_profiler_search_bar',);
  53.                     }
  54.                 }
  55.                 // _profiler_phpinfo
  56.                 if ('/_profiler/phpinfo' === $pathinfo) {
  57.                     return array (  '_controller' => 'web_profiler.controller.profiler:phpinfoAction',  '_route' => '_profiler_phpinfo',);
  58.                 }
  59.                 // _profiler_search_results
  60.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#sD'$pathinfo$matches)) {
  61.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_search_results']), array (  '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
  62.                 }
  63.                 // _profiler_open_file
  64.                 if ('/_profiler/open' === $pathinfo) {
  65.                     return array (  '_controller' => 'web_profiler.controller.profiler:openAction',  '_route' => '_profiler_open_file',);
  66.                 }
  67.                 // _profiler
  68.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  69.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler']), array (  '_controller' => 'web_profiler.controller.profiler:panelAction',));
  70.                 }
  71.                 // _profiler_router
  72.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#sD'$pathinfo$matches)) {
  73.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_router']), array (  '_controller' => 'web_profiler.controller.router:panelAction',));
  74.                 }
  75.                 // _profiler_exception
  76.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#sD'$pathinfo$matches)) {
  77.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_exception']), array (  '_controller' => 'web_profiler.controller.exception:showAction',));
  78.                 }
  79.                 // _profiler_exception_css
  80.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#sD'$pathinfo$matches)) {
  81.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_exception_css']), array (  '_controller' => 'web_profiler.controller.exception:cssAction',));
  82.                 }
  83.             }
  84.             // _twig_error_test
  85.             if (=== strpos($pathinfo'/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  86.                 return $this->mergeDefaults(array_replace($matches, ['_route' => '_twig_error_test']), array (  '_controller' => 'twig.controller.preview_error:previewErrorPageAction',  '_format' => 'html',));
  87.             }
  88.         }
  89.         elseif (=== strpos($pathinfo'/c')) {
  90.             if (=== strpos($pathinfo'/connect')) {
  91.                 // hwi_oauth_service_redirect
  92.                 if (preg_match('#^/connect/(?P<service>[^/]++)$#sD'$pathinfo$matches)) {
  93.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'hwi_oauth_service_redirect']), array (  '_controller' => 'HWI\\Bundle\\OAuthBundle\\Controller\\ConnectController::redirectToServiceAction',));
  94.                 }
  95.                 // hwi_oauth_connect_service
  96.                 if (=== strpos($pathinfo'/connect/service') && preg_match('#^/connect/service/(?P<service>[^/]++)$#sD'$pathinfo$matches)) {
  97.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'hwi_oauth_connect_service']), array (  '_controller' => 'HWI\\Bundle\\OAuthBundle\\Controller\\ConnectController::connectServiceAction',));
  98.                 }
  99.                 // hwi_oauth_connect_registration
  100.                 if (=== strpos($pathinfo'/connect/registration') && preg_match('#^/connect/registration/(?P<key>[^/]++)$#sD'$pathinfo$matches)) {
  101.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'hwi_oauth_connect_registration']), array (  '_controller' => 'HWI\\Bundle\\OAuthBundle\\Controller\\ConnectController::registrationAction',));
  102.                 }
  103.             }
  104.             // comments
  105.             if (=== strpos($pathinfo'/comments') && preg_match('#^/comments(?:/(?P<item>[^/]++))?$#sD'$pathinfo$matches)) {
  106.                 return $this->mergeDefaults(array_replace($matches, ['_route' => 'comments']), array (  'item' => false,  '_controller' => 'AppBundle\\Controller\\MessageController::commentsAction',));
  107.             }
  108.             // cron
  109.             if ('/cron' === $pathinfo) {
  110.                 return array (  '_controller' => 'AppBundle\\Controller\\OpenFDAController::cronAction',  '_route' => 'cron',);
  111.             }
  112.         }
  113.         elseif (=== strpos($pathinfo'/ologin')) {
  114.             // hwi_oauth_connect
  115.             if ('/ologin' === $trimmedPathinfo) {
  116.                 $ret = array (  '_controller' => 'HWI\\Bundle\\OAuthBundle\\Controller\\ConnectController::connectAction',  '_route' => 'hwi_oauth_connect',);
  117.                 if ('/' === substr($pathinfo, -1)) {
  118.                     // no-op
  119.                 } elseif ('GET' !== $canonicalMethod) {
  120.                     goto not_hwi_oauth_connect;
  121.                 } else {
  122.                     return array_replace($ret$this->redirect($rawPathinfo.'/''hwi_oauth_connect'));
  123.                 }
  124.                 return $ret;
  125.             }
  126.             not_hwi_oauth_connect:
  127.             // ologin
  128.             if ('/ologin' === $pathinfo) {
  129.                 return array (  '_controller' => 'AppBundle\\Controller\\SecurityController::loginAction',  '_route' => 'ologin',);
  130.             }
  131.             // facebook_login
  132.             if ('/ologin/check-facebook' === $pathinfo) {
  133.                 return ['_route' => 'facebook_login'];
  134.             }
  135.             // google_login
  136.             if ('/ologin/check-google' === $pathinfo) {
  137.                 return ['_route' => 'google_login'];
  138.             }
  139.         }
  140.         elseif (=== strpos($pathinfo'/a')) {
  141.             if (=== strpos($pathinfo'/admin')) {
  142.                 // easyadmin
  143.                 if ('/admin' === $trimmedPathinfo) {
  144.                     $ret = array (  '_controller' => 'EasyCorp\\Bundle\\EasyAdminBundle\\Controller\\AdminController::indexAction',  '_route' => 'easyadmin',);
  145.                     if ('/' === substr($pathinfo, -1)) {
  146.                         // no-op
  147.                     } elseif ('GET' !== $canonicalMethod) {
  148.                         goto not_easyadmin;
  149.                     } else {
  150.                         return array_replace($ret$this->redirect($rawPathinfo.'/''easyadmin'));
  151.                     }
  152.                     return $ret;
  153.                 }
  154.                 not_easyadmin:
  155.                 // admin
  156.                 if ('/admin' === $trimmedPathinfo) {
  157.                     $ret = array (  '_controller' => 'EasyCorp\\Bundle\\EasyAdminBundle\\Controller\\AdminController::indexAction',  '_route' => 'admin',);
  158.                     if ('/' === substr($pathinfo, -1)) {
  159.                         // no-op
  160.                     } elseif ('GET' !== $canonicalMethod) {
  161.                         goto not_admin;
  162.                     } else {
  163.                         return array_replace($ret$this->redirect($rawPathinfo.'/''admin'));
  164.                     }
  165.                     return $ret;
  166.                 }
  167.                 not_admin:
  168.                 // admin-import
  169.                 if ('/admin-import' === $pathinfo) {
  170.                     return array (  '_controller' => 'AppBundle\\Controller\\OpenFDAController::importAction',  '_route' => 'admin-import',);
  171.                 }
  172.             }
  173.             // adduser
  174.             if ('/adduser' === $pathinfo) {
  175.                 return array (  '_controller' => 'AppBundle\\Controller\\SecurityController::addUser',  '_route' => 'adduser',);
  176.             }
  177.             // app-api
  178.             if (=== strpos($pathinfo'/app-api') && preg_match('#^/app\\-api(?:/(?P<item>[^/]++))?$#sD'$pathinfo$matches)) {
  179.                 return $this->mergeDefaults(array_replace($matches, ['_route' => 'app-api']), array (  'item' => false,  '_controller' => 'AppBundle\\Controller\\ApiController::apiAction',));
  180.             }
  181.             // api
  182.             if (=== strpos($pathinfo'/api') && preg_match('#^/api(?:/(?P<item>[^/]++))?$#sD'$pathinfo$matches)) {
  183.                 return $this->mergeDefaults(array_replace($matches, ['_route' => 'api']), array (  'item' => false,  '_controller' => 'AppBundle\\Controller\\OpenFDAController::apiAction',));
  184.             }
  185.         }
  186.         elseif (=== strpos($pathinfo'/de')) {
  187.             if (=== strpos($pathinfo'/devices')) {
  188.                 // devices
  189.                 if ('/devices' === $pathinfo) {
  190.                     return array (  '_controller' => 'AppBundle\\Controller\\DeviceEnforcementController::devicesAction',  '_route' => 'devices',);
  191.                 }
  192.                 // save-devices
  193.                 if ('/devices/save' === $pathinfo) {
  194.                     return array (  '_controller' => 'AppBundle\\Controller\\PatientController::devicesSaveAction',  '_route' => 'save-devices',);
  195.                 }
  196.             }
  197.             // deauth
  198.             if ('/deauth' === $pathinfo) {
  199.                 return array (  '_controller' => 'AppBundle\\Controller\\OpenFDAController::deauthAction',  '_route' => 'deauth',);
  200.             }
  201.             // delete
  202.             if ('/delete' === $pathinfo) {
  203.                 return array (  '_controller' => 'AppBundle\\Controller\\OpenFDAController::deleteAction',  '_route' => 'delete',);
  204.             }
  205.         }
  206.         // dvc_mail
  207.         if ('/dvc_mail' === $pathinfo) {
  208.             return array (  '_controller' => 'AppBundle\\Controller\\OpenFDAController::deviceMailAction',  '_route' => 'dvc_mail',);
  209.         }
  210.         if (=== strpos($pathinfo'/p')) {
  211.             // parse
  212.             if ('/parse' === $pathinfo) {
  213.                 return array (  '_controller' => 'AppBundle\\Controller\\DeviceEnforcementController::parseAction',  '_route' => 'parse',);
  214.             }
  215.             if (=== strpos($pathinfo'/patient')) {
  216.                 // save-patient
  217.                 if ('/patient/save' === $pathinfo) {
  218.                     return array (  '_controller' => 'AppBundle\\Controller\\PatientController::patientSaveAction',  '_route' => 'save-patient',);
  219.                 }
  220.                 // new-patient
  221.                 if ('/patient/new' === $pathinfo) {
  222.                     return array (  '_controller' => 'AppBundle\\Controller\\PatientController::patientNewAction',  '_route' => 'new-patient',);
  223.                 }
  224.                 // edit-patient
  225.                 if (=== strpos($pathinfo'/patient/edit') && preg_match('#^/patient/edit(?:/(?P<item>[^/]++))?$#sD'$pathinfo$matches)) {
  226.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'edit-patient']), array (  'item' => false,  '_controller' => 'AppBundle\\Controller\\PatientController::patientEditAction',));
  227.                 }
  228.                 // manage-patient
  229.                 if ('/patient/manage' === $pathinfo) {
  230.                     return array (  '_controller' => 'AppBundle\\Controller\\PatientController::patientManageAction',  '_route' => 'manage-patient',);
  231.                 }
  232.             }
  233.             // post
  234.             if (=== strpos($pathinfo'/post') && preg_match('#^/post(?:/(?P<item>[^/]++))?$#sD'$pathinfo$matches)) {
  235.                 return $this->mergeDefaults(array_replace($matches, ['_route' => 'post']), array (  'item' => NULL,  '_controller' => 'AppBundle\\Controller\\MessageController::postAction',));
  236.             }
  237.             if (=== strpos($pathinfo'/profile')) {
  238.                 // fos_user_profile_show
  239.                 if ('/profile' === $trimmedPathinfo) {
  240.                     $ret = array (  '_controller' => 'fos_user.profile.controller:showAction',  '_route' => 'fos_user_profile_show',);
  241.                     if ('/' === substr($pathinfo, -1)) {
  242.                         // no-op
  243.                     } elseif ('GET' !== $canonicalMethod) {
  244.                         goto not_fos_user_profile_show;
  245.                     } else {
  246.                         return array_replace($ret$this->redirect($rawPathinfo.'/''fos_user_profile_show'));
  247.                     }
  248.                     if (!in_array($canonicalMethod, ['GET'])) {
  249.                         $allow array_merge($allow, ['GET']);
  250.                         goto not_fos_user_profile_show;
  251.                     }
  252.                     return $ret;
  253.                 }
  254.                 not_fos_user_profile_show:
  255.                 // fos_user_profile_edit
  256.                 if ('/profile/edit' === $pathinfo) {
  257.                     $ret = array (  '_controller' => 'fos_user.profile.controller:editAction',  '_route' => 'fos_user_profile_edit',);
  258.                     if (!in_array($canonicalMethod, ['GET''POST'])) {
  259.                         $allow array_merge($allow, ['GET''POST']);
  260.                         goto not_fos_user_profile_edit;
  261.                     }
  262.                     return $ret;
  263.                 }
  264.                 not_fos_user_profile_edit:
  265.                 // fos_user_change_password
  266.                 if ('/profile/change-password' === $pathinfo) {
  267.                     $ret = array (  '_controller' => 'fos_user.change_password.controller:changePasswordAction',  '_route' => 'fos_user_change_password',);
  268.                     if (!in_array($canonicalMethod, ['GET''POST'])) {
  269.                         $allow array_merge($allow, ['GET''POST']);
  270.                         goto not_fos_user_change_password;
  271.                     }
  272.                     return $ret;
  273.                 }
  274.                 not_fos_user_change_password:
  275.             }
  276.         }
  277.         elseif (=== strpos($pathinfo'/epic-c')) {
  278.             // epic-call
  279.             if ('/epic-call' === $pathinfo) {
  280.                 return array (  '_controller' => 'AppBundle\\Controller\\EpicController::epicCallAction',  '_route' => 'epic-call',);
  281.             }
  282.             // epic-connect
  283.             if (=== strpos($pathinfo'/epic-connect') && preg_match('#^/epic\\-connect/(?P<item>[^/]++)$#sD'$pathinfo$matches)) {
  284.                 return $this->mergeDefaults(array_replace($matches, ['_route' => 'epic-connect']), array (  '_controller' => 'AppBundle\\Controller\\EpicController::loginAction',));
  285.             }
  286.             // epic-create
  287.             if ('/epic-create' === $pathinfo) {
  288.                 return array (  '_controller' => 'AppBundle\\Controller\\EpicController::createPatient',  '_route' => 'epic-create',);
  289.             }
  290.         }
  291.         // epic-redirect
  292.         if (=== strpos($pathinfo'/epic-redirect') && preg_match('#^/epic\\-redirect/(?P<item>[^/]++)$#sD'$pathinfo$matches)) {
  293.             return $this->mergeDefaults(array_replace($matches, ['_route' => 'epic-redirect']), array (  '_controller' => 'AppBundle\\Controller\\EpicController::redirectAction',));
  294.         }
  295.         if (=== strpos($pathinfo'/upload')) {
  296.             // upload
  297.             if (preg_match('#^/upload(?:/(?P<item>[^/]++))?$#sD'$pathinfo$matches)) {
  298.                 return $this->mergeDefaults(array_replace($matches, ['_route' => 'upload']), array (  'item' => false,  '_controller' => 'AppBundle\\Controller\\FileController::fileAction',));
  299.             }
  300.             // uploader
  301.             if (=== strpos($pathinfo'/uploader') && preg_match('#^/uploader(?:/(?P<item>[^/]++))?$#sD'$pathinfo$matches)) {
  302.                 return $this->mergeDefaults(array_replace($matches, ['_route' => 'uploader']), array (  'item' => false,  '_controller' => 'AppBundle\\Controller\\FileController::uploaderAction',));
  303.             }
  304.         }
  305.         // updateuser
  306.         if ('/updateuser' === $pathinfo) {
  307.             return array (  '_controller' => 'AppBundle\\Controller\\SecurityController::updateUser',  '_route' => 'updateuser',);
  308.         }
  309.         if (=== strpos($pathinfo'/f')) {
  310.             if (=== strpos($pathinfo'/fm')) {
  311.                 // app_file_fm
  312.                 if ('/fm' === $pathinfo) {
  313.                     return array (  '_controller' => 'AppBundle\\Controller\\FileController::fmAction',  '_route' => 'app_file_fm',);
  314.                 }
  315.                 // app_file_fm2
  316.                 if ('/fm' === $trimmedPathinfo) {
  317.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\FileController::fm2Action',  '_route' => 'app_file_fm2',);
  318.                     if ('/' === substr($pathinfo, -1)) {
  319.                         // no-op
  320.                     } elseif ('GET' !== $canonicalMethod) {
  321.                         goto not_app_file_fm2;
  322.                     } else {
  323.                         return array_replace($ret$this->redirect($rawPathinfo.'/''app_file_fm2'));
  324.                     }
  325.                     return $ret;
  326.                 }
  327.                 not_app_file_fm2:
  328.             }
  329.             // save-freetext
  330.             if ('/freetext/save' === $pathinfo) {
  331.                 return array (  '_controller' => 'AppBundle\\Controller\\PatientController::freetextSaveAction',  '_route' => 'save-freetext',);
  332.             }
  333.             // faqs
  334.             if ('/faqs' === $pathinfo) {
  335.                 return array (  '_controller' => 'AppBundle\\Controller\\ShowController::faqAction',  '_route' => 'faqs',);
  336.             }
  337.         }
  338.         // messages
  339.         if (=== strpos($pathinfo'/messages') && preg_match('#^/messages(?:/(?P<item>[^/]++))?$#sD'$pathinfo$matches)) {
  340.             return $this->mergeDefaults(array_replace($matches, ['_route' => 'messages']), array (  'item' => false,  '_controller' => 'AppBundle\\Controller\\MessageController::messagesAction',));
  341.         }
  342.         if (=== strpos($pathinfo'/s')) {
  343.             // send
  344.             if (=== strpos($pathinfo'/send') && preg_match('#^/send(?:/(?P<item>[^/]++))?$#sD'$pathinfo$matches)) {
  345.                 return $this->mergeDefaults(array_replace($matches, ['_route' => 'send']), array (  'item' => '4',  '_controller' => 'AppBundle\\Controller\\MessageController::sendAction',));
  346.             }
  347.             if (=== strpos($pathinfo'/store-')) {
  348.                 // app_oauth_storetoken
  349.                 if (=== strpos($pathinfo'/store-token') && preg_match('#^/store\\-token/(?P<service>[^/]++)/(?P<user>[^/]++)$#sD'$pathinfo$matches)) {
  350.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'app_oauth_storetoken']), array (  '_controller' => 'AppBundle\\Controller\\OAuthController::StoreTokenAction',));
  351.                 }
  352.                 // app_oauth_storepatient
  353.                 if (=== strpos($pathinfo'/store-patient') && preg_match('#^/store\\-patient/(?P<service>[^/]++)/(?P<user>[^/]++)$#sD'$pathinfo$matches)) {
  354.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'app_oauth_storepatient']), array (  '_controller' => 'AppBundle\\Controller\\OAuthController::StorePatientAction',));
  355.                 }
  356.                 // app_oauth_storemedication
  357.                 if (=== strpos($pathinfo'/store-medication') && preg_match('#^/store\\-medication/(?P<service>[^/]++)/(?P<user>[^/]++)$#sD'$pathinfo$matches)) {
  358.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'app_oauth_storemedication']), array (  '_controller' => 'AppBundle\\Controller\\OAuthController::StoreMedicationAction',));
  359.                 }
  360.                 // app_oauth_storedevice
  361.                 if (=== strpos($pathinfo'/store-device') && preg_match('#^/store\\-device/(?P<service>[^/]++)/(?P<user>[^/]++)$#sD'$pathinfo$matches)) {
  362.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'app_oauth_storedevice']), array (  '_controller' => 'AppBundle\\Controller\\OAuthController::StoreDeviceAction',));
  363.                 }
  364.             }
  365.             // scan
  366.             if ('/scan' === $pathinfo) {
  367.                 return array (  '_controller' => 'AppBundle\\Controller\\OpenFDAController::scanAction',  '_route' => 'scan',);
  368.             }
  369.         }
  370.         // welcome_email
  371.         if (=== strpos($pathinfo'/welcome_email') && preg_match('#^/welcome_email(?:/(?P<item>[^/]++))?$#sD'$pathinfo$matches)) {
  372.             return $this->mergeDefaults(array_replace($matches, ['_route' => 'welcome_email']), array (  'item' => false,  '_controller' => 'AppBundle\\Controller\\MessageController::welcomeAction',));
  373.         }
  374.         // wel_mail
  375.         if ('/wel_mail' === $pathinfo) {
  376.             return array (  '_controller' => 'AppBundle\\Controller\\OpenFDAController::mailAction',  '_route' => 'wel_mail',);
  377.         }
  378.         // app_oauth_gettoken
  379.         if (=== strpos($pathinfo'/get-token') && preg_match('#^/get\\-token/(?P<service>[^/]++)/(?P<user>[^/]++)$#sD'$pathinfo$matches)) {
  380.             return $this->mergeDefaults(array_replace($matches, ['_route' => 'app_oauth_gettoken']), array (  '_controller' => 'AppBundle\\Controller\\OAuthController::GetToken',));
  381.         }
  382.         // homepage
  383.         if ('/homepage' === $pathinfo) {
  384.             return array (  '_controller' => 'AppBundle\\Controller\\OpenFDAController::homepageAction',  '_route' => 'homepage',);
  385.         }
  386.         // default
  387.         if ('' === $trimmedPathinfo) {
  388.             $ret = array (  '_controller' => 'AppBundle\\Controller\\OpenFDAController::indexAction',  '_route' => 'default',);
  389.             if ('/' === substr($pathinfo, -1)) {
  390.                 // no-op
  391.             } elseif ('GET' !== $canonicalMethod) {
  392.                 goto not_default;
  393.             } else {
  394.                 return array_replace($ret$this->redirect($rawPathinfo.'/''default'));
  395.             }
  396.             return $ret;
  397.         }
  398.         not_default:
  399.         // join
  400.         if ('/join' === $pathinfo) {
  401.             return array (  '_controller' => 'AppBundle\\Controller\\OpenFDAController::joinAction',  '_route' => 'join',);
  402.         }
  403.         if (=== strpos($pathinfo'/re')) {
  404.             // recall_mail
  405.             if ('/recall_mail' === $pathinfo) {
  406.                 return array (  '_controller' => 'AppBundle\\Controller\\OpenFDAController::dailyRecallsMailAction',  '_route' => 'recall_mail',);
  407.             }
  408.             // recalls
  409.             if ('/recalls' === $pathinfo) {
  410.                 return array (  '_controller' => 'AppBundle\\Controller\\RecallController::recallsAction',  '_route' => 'recalls',);
  411.             }
  412.             if (=== strpos($pathinfo'/register')) {
  413.                 // fos_user.registration
  414.                 if ('/register' === $trimmedPathinfo) {
  415.                     $ret = array (  '_controller' => 'FOS\\UserExtensionBundle\\Controller\\RegistrationController::registerAction',  '_route' => 'fos_user.registration',);
  416.                     if ('/' === substr($pathinfo, -1)) {
  417.                         // no-op
  418.                     } elseif ('GET' !== $canonicalMethod) {
  419.                         goto not_fos_userregistration;
  420.                     } else {
  421.                         return array_replace($ret$this->redirect($rawPathinfo.'/''fos_user.registration'));
  422.                     }
  423.                     if (!in_array($canonicalMethod, ['GET''POST'])) {
  424.                         $allow array_merge($allow, ['GET''POST']);
  425.                         goto not_fos_userregistration;
  426.                     }
  427.                     return $ret;
  428.                 }
  429.                 not_fos_userregistration:
  430.                 // fos_user_registration_register
  431.                 if ('/register' === $trimmedPathinfo) {
  432.                     $ret = array (  '_controller' => 'fos_user.registration.controller:registerAction',  '_route' => 'fos_user_registration_register',);
  433.                     if ('/' === substr($pathinfo, -1)) {
  434.                         // no-op
  435.                     } elseif ('GET' !== $canonicalMethod) {
  436.                         goto not_fos_user_registration_register;
  437.                     } else {
  438.                         return array_replace($ret$this->redirect($rawPathinfo.'/''fos_user_registration_register'));
  439.                     }
  440.                     if (!in_array($canonicalMethod, ['GET''POST'])) {
  441.                         $allow array_merge($allow, ['GET''POST']);
  442.                         goto not_fos_user_registration_register;
  443.                     }
  444.                     return $ret;
  445.                 }
  446.                 not_fos_user_registration_register:
  447.                 // fos_user_registration_check_email
  448.                 if ('/register/check-email' === $pathinfo) {
  449.                     $ret = array (  '_controller' => 'fos_user.registration.controller:checkEmailAction',  '_route' => 'fos_user_registration_check_email',);
  450.                     if (!in_array($canonicalMethod, ['GET'])) {
  451.                         $allow array_merge($allow, ['GET']);
  452.                         goto not_fos_user_registration_check_email;
  453.                     }
  454.                     return $ret;
  455.                 }
  456.                 not_fos_user_registration_check_email:
  457.                 if (=== strpos($pathinfo'/register/confirm')) {
  458.                     // fos_user_registration_confirm
  459.                     if (preg_match('#^/register/confirm/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  460.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'fos_user_registration_confirm']), array (  '_controller' => 'fos_user.registration.controller:confirmAction',));
  461.                         if (!in_array($canonicalMethod, ['GET'])) {
  462.                             $allow array_merge($allow, ['GET']);
  463.                             goto not_fos_user_registration_confirm;
  464.                         }
  465.                         return $ret;
  466.                     }
  467.                     not_fos_user_registration_confirm:
  468.                     // fos_user_registration_confirmed
  469.                     if ('/register/confirmed' === $pathinfo) {
  470.                         $ret = array (  '_controller' => 'fos_user.registration.controller:confirmedAction',  '_route' => 'fos_user_registration_confirmed',);
  471.                         if (!in_array($canonicalMethod, ['GET'])) {
  472.                             $allow array_merge($allow, ['GET']);
  473.                             goto not_fos_user_registration_confirmed;
  474.                         }
  475.                         return $ret;
  476.                     }
  477.                     not_fos_user_registration_confirmed:
  478.                 }
  479.             }
  480.             elseif (=== strpos($pathinfo'/resetting')) {
  481.                 // fos_user_resetting_request
  482.                 if ('/resetting/request' === $pathinfo) {
  483.                     $ret = array (  '_controller' => 'fos_user.resetting.controller:requestAction',  '_route' => 'fos_user_resetting_request',);
  484.                     if (!in_array($canonicalMethod, ['GET'])) {
  485.                         $allow array_merge($allow, ['GET']);
  486.                         goto not_fos_user_resetting_request;
  487.                     }
  488.                     return $ret;
  489.                 }
  490.                 not_fos_user_resetting_request:
  491.                 // fos_user_resetting_reset
  492.                 if (=== strpos($pathinfo'/resetting/reset') && preg_match('#^/resetting/reset/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  493.                     $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'fos_user_resetting_reset']), array (  '_controller' => 'fos_user.resetting.controller:resetAction',));
  494.                     if (!in_array($canonicalMethod, ['GET''POST'])) {
  495.                         $allow array_merge($allow, ['GET''POST']);
  496.                         goto not_fos_user_resetting_reset;
  497.                     }
  498.                     return $ret;
  499.                 }
  500.                 not_fos_user_resetting_reset:
  501.                 // fos_user_resetting_send_email
  502.                 if ('/resetting/send-email' === $pathinfo) {
  503.                     $ret = array (  '_controller' => 'fos_user.resetting.controller:sendEmailAction',  '_route' => 'fos_user_resetting_send_email',);
  504.                     if (!in_array($requestMethod, ['POST'])) {
  505.                         $allow array_merge($allow, ['POST']);
  506.                         goto not_fos_user_resetting_send_email;
  507.                     }
  508.                     return $ret;
  509.                 }
  510.                 not_fos_user_resetting_send_email:
  511.                 // fos_user_resetting_check_email
  512.                 if ('/resetting/check-email' === $pathinfo) {
  513.                     $ret = array (  '_controller' => 'fos_user.resetting.controller:checkEmailAction',  '_route' => 'fos_user_resetting_check_email',);
  514.                     if (!in_array($canonicalMethod, ['GET'])) {
  515.                         $allow array_merge($allow, ['GET']);
  516.                         goto not_fos_user_resetting_check_email;
  517.                     }
  518.                     return $ret;
  519.                 }
  520.                 not_fos_user_resetting_check_email:
  521.             }
  522.         }
  523.         // xlogout
  524.         if ('/xlogout' === $pathinfo) {
  525.             return array (  '_controller' => 'AppBundle\\Controller\\SecurityController::logoutAction',  '_route' => 'xlogout',);
  526.         }
  527.         if (=== strpos($pathinfo'/l')) {
  528.             // listusers
  529.             if ('/listusers' === $pathinfo) {
  530.                 return array (  '_controller' => 'AppBundle\\Controller\\SecurityController::listUsers',  '_route' => 'listusers',);
  531.             }
  532.             if (=== strpos($pathinfo'/logout')) {
  533.                 // logout
  534.                 if ('/logout' === $pathinfo) {
  535.                     return ['_route' => 'logout'];
  536.                 }
  537.                 // fos_user_security_logout
  538.                 if ('/logout' === $pathinfo) {
  539.                     $ret = array (  '_controller' => 'fos_user.security.controller:logoutAction',  '_route' => 'fos_user_security_logout',);
  540.                     if (!in_array($canonicalMethod, ['GET''POST'])) {
  541.                         $allow array_merge($allow, ['GET''POST']);
  542.                         goto not_fos_user_security_logout;
  543.                     }
  544.                     return $ret;
  545.                 }
  546.                 not_fos_user_security_logout:
  547.             }
  548.             elseif (=== strpos($pathinfo'/login')) {
  549.                 // fos_user_security_login
  550.                 if ('/login' === $pathinfo) {
  551.                     $ret = array (  '_controller' => 'fos_user.security.controller:loginAction',  '_route' => 'fos_user_security_login',);
  552.                     if (!in_array($canonicalMethod, ['GET''POST'])) {
  553.                         $allow array_merge($allow, ['GET''POST']);
  554.                         goto not_fos_user_security_login;
  555.                     }
  556.                     return $ret;
  557.                 }
  558.                 not_fos_user_security_login:
  559.                 // fos_user_security_check
  560.                 if ('/login_check' === $pathinfo) {
  561.                     $ret = array (  '_controller' => 'fos_user.security.controller:checkAction',  '_route' => 'fos_user_security_check',);
  562.                     if (!in_array($requestMethod, ['POST'])) {
  563.                         $allow array_merge($allow, ['POST']);
  564.                         goto not_fos_user_security_check;
  565.                     }
  566.                     return $ret;
  567.                 }
  568.                 not_fos_user_security_check:
  569.             }
  570.         }
  571.         elseif (=== strpos($pathinfo'/view')) {
  572.             // view
  573.             if (preg_match('#^/view(?:/(?P<item>[^/]++))?$#sD'$pathinfo$matches)) {
  574.                 return $this->mergeDefaults(array_replace($matches, ['_route' => 'view']), array (  'item' => false,  '_controller' => 'AppBundle\\Controller\\ShowController::viewAction',));
  575.             }
  576.             // viewed
  577.             if (=== strpos($pathinfo'/viewed') && preg_match('#^/viewed(?:/(?P<item>[^/]++))?$#sD'$pathinfo$matches)) {
  578.                 return $this->mergeDefaults(array_replace($matches, ['_route' => 'viewed']), array (  'item' => false,  '_controller' => 'AppBundle\\Controller\\ShowController::viewedAction',));
  579.             }
  580.         }
  581.         if ('/' === $pathinfo && !$allow) {
  582.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  583.         }
  584.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  585.     }
  586. }