var/cache/dev/appDevDebugProjectContainerUrlMatcher.php line 2103

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.         $host $context->getHost();
  90.         if (preg_match('#^(?P<domain>auth.unda.co|auth.hona.mx)$#sDi'$host$hostMatches)) {
  91.             if (=== strpos($pathinfo'/authorize')) {
  92.                 // authorize
  93.                 if ('/authorize' === $pathinfo) {
  94.                     return $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'authorize']), array (  '_controller' => 'Hona\\AuthBundle\\Controller\\AuthorizeController::indexAction',));
  95.                 }
  96.                 // authorize_accepted
  97.                 if ('/authorize/accepted' === $pathinfo) {
  98.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'authorize_accepted']), array (  '_controller' => 'Hona\\AuthBundle\\Controller\\AuthorizeController::acceptedAction',));
  99.                     if (!in_array($requestMethod, ['POST'])) {
  100.                         $allow array_merge($allow, ['POST']);
  101.                         goto not_authorize_accepted;
  102.                     }
  103.                     return $ret;
  104.                 }
  105.                 not_authorize_accepted:
  106.             }
  107.             // home
  108.             if ('' === $trimmedPathinfo) {
  109.                 $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'home']), array (  '_controller' => 'Hona\\AuthBundle\\Controller\\HomeController::indexAction',));
  110.                 if ('/' === substr($pathinfo, -1)) {
  111.                     // no-op
  112.                 } elseif ('GET' !== $canonicalMethod) {
  113.                     goto not_home;
  114.                 } else {
  115.                     return array_replace($ret$this->redirect($rawPathinfo.'/''home'));
  116.                 }
  117.                 return $ret;
  118.             }
  119.             not_home:
  120.             // login
  121.             if ('/login' === $pathinfo) {
  122.                 $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'login']), array (  '_controller' => 'Hona\\AuthBundle\\Controller\\LoginController::indexAction',));
  123.                 if (!in_array($requestMethod, ['POST'])) {
  124.                     $allow array_merge($allow, ['POST']);
  125.                     goto not_login;
  126.                 }
  127.                 return $ret;
  128.             }
  129.             not_login:
  130.             // logout
  131.             if ('/logout' === $pathinfo) {
  132.                 return $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'logout']), array (  '_controller' => 'Hona\\AuthBundle\\Controller\\LogoutController::indexAction',));
  133.             }
  134.             // oauth2_token
  135.             if ('/oauth2/token' === $pathinfo) {
  136.                 $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'oauth2_token']), array (  '_controller' => 'Hona\\AuthBundle\\Controller\\OauthController::tokenAction',));
  137.                 if (!in_array($requestMethod, ['POST'])) {
  138.                     $allow array_merge($allow, ['POST']);
  139.                     goto not_oauth2_token;
  140.                 }
  141.                 return $ret;
  142.             }
  143.             not_oauth2_token:
  144.             if (=== strpos($pathinfo'/oauth2/authorize')) {
  145.                 // oauth2_authorize
  146.                 if ('/oauth2/authorize' === $pathinfo) {
  147.                     return $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'oauth2_authorize']), array (  '_controller' => 'Hona\\AuthBundle\\Controller\\OauthController::authorizeAction',));
  148.                 }
  149.                 // oauth2_authorize_accepted
  150.                 if ('/oauth2/authorize/accepted' === $pathinfo) {
  151.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'oauth2_authorize_accepted']), array (  '_controller' => 'Hona\\AuthBundle\\Controller\\OauthController::authorizeAcceptedAction',));
  152.                     if (!in_array($requestMethod, ['POST'])) {
  153.                         $allow array_merge($allow, ['POST']);
  154.                         goto not_oauth2_authorize_accepted;
  155.                     }
  156.                     return $ret;
  157.                 }
  158.                 not_oauth2_authorize_accepted:
  159.             }
  160.             // sms_request_create_post_uuid
  161.             if ('/sms_request/create' === $pathinfo) {
  162.                 $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'sms_request_create_post_uuid']), array (  '_controller' => 'Hona\\AuthBundle\\Controller\\SmsRequestController::smsRequestCreatePOSTAction',));
  163.                 if (!in_array($requestMethod, ['POST'])) {
  164.                     $allow array_merge($allow, ['POST']);
  165.                     goto not_sms_request_create_post_uuid;
  166.                 }
  167.                 return $ret;
  168.             }
  169.             not_sms_request_create_post_uuid:
  170.             // token
  171.             if ('/token' === $pathinfo) {
  172.                 $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'token']), array (  '_controller' => 'Hona\\AuthBundle\\Controller\\TokenController::indexAction',));
  173.                 if (!in_array($requestMethod, ['POST'])) {
  174.                     $allow array_merge($allow, ['POST']);
  175.                     goto not_token;
  176.                 }
  177.                 return $ret;
  178.             }
  179.             not_token:
  180.             // user_reset_password_post
  181.             if ('/user/reset/password' === $pathinfo) {
  182.                 $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'user_reset_password_post']), array (  '_controller' => 'Hona\\AuthBundle\\Controller\\UserController::userResetPasswordPOSTAction',));
  183.                 if (!in_array($requestMethod, ['POST'])) {
  184.                     $allow array_merge($allow, ['POST']);
  185.                     goto not_user_reset_password_post;
  186.                 }
  187.                 return $ret;
  188.             }
  189.             not_user_reset_password_post:
  190.         }
  191.         if (preg_match('#^admin\\.unda\\.co$#sDi'$host$hostMatches)) {
  192.             if (=== strpos($pathinfo'/access_history')) {
  193.                 // access_history_list
  194.                 if (=== strpos($pathinfo'/access_history/list') && preg_match('#^/access_history/list(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  195.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'access_history_list']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\AdminBundle\\Controller\\AccessHistoryController::accessHistoryListAction',));
  196.                 }
  197.                 // access_history_form
  198.                 if (preg_match('#^/access_history(?:/(?P<uuid>[^/]++))?$#sD'$pathinfo$matches)) {
  199.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'access_history_form']), array (  'uuid' => NULL,  '_controller' => 'Hona\\AdminBundle\\Controller\\AccessHistoryController::accessHistoryFormAction',));
  200.                 }
  201.             }
  202.             elseif (=== strpos($pathinfo'/address')) {
  203.                 // address_list
  204.                 if (=== strpos($pathinfo'/address/list') && preg_match('#^/address/list(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  205.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'address_list']), array (  'size' => 100,  'page' => 0,  '_controller' => 'Hona\\AdminBundle\\Controller\\AddressController::addressListAction',));
  206.                 }
  207.                 // address_form
  208.                 if (preg_match('#^/address(?:/(?P<uuid>[^/]++))?$#sD'$pathinfo$matches)) {
  209.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'address_form']), array (  'uuid' => NULL,  '_controller' => 'Hona\\AdminBundle\\Controller\\AddressController::addressFormAction',));
  210.                 }
  211.                 // hona_admin_address_statususeraddress
  212.                 if ('/address/user/action/status' === $pathinfo) {
  213.                     return array (  '_controller' => 'Hona\\AdminBundle\\Controller\\AddressController::statusUserAddressAction',  '_route' => 'hona_admin_address_statususeraddress',);
  214.                 }
  215.                 // hona_admin_address_adduseraddress
  216.                 if ('/address/user/add' === $pathinfo) {
  217.                     return array (  '_controller' => 'Hona\\AdminBundle\\Controller\\AddressController::addUserAddressAction',  '_route' => 'hona_admin_address_adduseraddress',);
  218.                 }
  219.             }
  220.             elseif (=== strpos($pathinfo'/control_gate')) {
  221.                 // control_gate_list
  222.                 if (=== strpos($pathinfo'/control_gate/list') && preg_match('#^/control_gate/list(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  223.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'control_gate_list']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\AdminBundle\\Controller\\ControlGateController::controlGateListAction',));
  224.                 }
  225.                 // control_gate_form
  226.                 if (preg_match('#^/control_gate(?:/(?P<uuid>[^/]++))?$#sD'$pathinfo$matches)) {
  227.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'control_gate_form']), array (  'uuid' => NULL,  '_controller' => 'Hona\\AdminBundle\\Controller\\ControlGateController::controlGateFormAction',));
  228.                 }
  229.                 // hona_admin_controlgate_addusercontrolgate
  230.                 if ('/control_gate/user/add' === $pathinfo) {
  231.                     return array (  '_controller' => 'Hona\\AdminBundle\\Controller\\ControlGateController::addUserControlGateAction',  '_route' => 'hona_admin_controlgate_addusercontrolgate',);
  232.                 }
  233.                 // hona_admin_controlgate_statususercontrolgate
  234.                 if ('/control_gate/user/action/status' === $pathinfo) {
  235.                     return array (  '_controller' => 'Hona\\AdminBundle\\Controller\\ControlGateController::statusUserControlGateAction',  '_route' => 'hona_admin_controlgate_statususercontrolgate',);
  236.                 }
  237.             }
  238.             // hona_admin_default_index
  239.             if ('' === $trimmedPathinfo) {
  240.                 $ret = array (  '_controller' => 'Hona\\AdminBundle\\Controller\\DefaultController::indexAction',  '_route' => 'hona_admin_default_index',);
  241.                 if ('/' === substr($pathinfo, -1)) {
  242.                     // no-op
  243.                 } elseif ('GET' !== $canonicalMethod) {
  244.                     goto not_hona_admin_default_index;
  245.                 } else {
  246.                     return array_replace($ret$this->redirect($rawPathinfo.'/''hona_admin_default_index'));
  247.                 }
  248.                 return $ret;
  249.             }
  250.             not_hona_admin_default_index:
  251.             // hona_admin_login_index
  252.             if ('/login' === $pathinfo) {
  253.                 return array (  '_controller' => 'Hona\\AdminBundle\\Controller\\LoginController::indexAction',  '_route' => 'hona_admin_login_index',);
  254.             }
  255.             // hona_admin_logout_index
  256.             if ('/logout' === $pathinfo) {
  257.                 return array (  '_controller' => 'Hona\\AdminBundle\\Controller\\LogoutController::indexAction',  '_route' => 'hona_admin_logout_index',);
  258.             }
  259.             if (=== strpos($pathinfo'/news')) {
  260.                 // news_list
  261.                 if (=== strpos($pathinfo'/news/list') && preg_match('#^/news/list(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  262.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'news_list']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\AdminBundle\\Controller\\NewsController::newsListAction',));
  263.                 }
  264.                 // news_form
  265.                 if (preg_match('#^/news(?:/(?P<uuid>[^/]++))?$#sD'$pathinfo$matches)) {
  266.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'news_form']), array (  'uuid' => NULL,  '_controller' => 'Hona\\AdminBundle\\Controller\\NewsController::newsFormAction',));
  267.                 }
  268.             }
  269.             elseif (=== strpos($pathinfo'/residential')) {
  270.                 // residential_list
  271.                 if (=== strpos($pathinfo'/residential/list') && preg_match('#^/residential/list(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  272.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'residential_list']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\AdminBundle\\Controller\\ResidentialController::residentialListAction',));
  273.                 }
  274.                 // residential_form
  275.                 if (preg_match('#^/residential(?:/(?P<uuid>[^/]++))?$#sD'$pathinfo$matches)) {
  276.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'residential_form']), array (  'uuid' => NULL,  '_controller' => 'Hona\\AdminBundle\\Controller\\ResidentialController::residentialFormAction',));
  277.                 }
  278.             }
  279.             // upload_media
  280.             if ('/upload/media' === $pathinfo) {
  281.                 return array (  '_controller' => 'Hona\\AdminBundle\\Controller\\UploadController::userListAction',  '_route' => 'upload_media',);
  282.             }
  283.             if (=== strpos($pathinfo'/user')) {
  284.                 // user_list
  285.                 if (=== strpos($pathinfo'/user/list') && preg_match('#^/user/list(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  286.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'user_list']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\AdminBundle\\Controller\\UserController::userListAction',));
  287.                 }
  288.                 // user_form
  289.                 if (preg_match('#^/user(?:/(?P<uuid>[^/]++))?$#sD'$pathinfo$matches)) {
  290.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'user_form']), array (  'uuid' => NULL,  '_controller' => 'Hona\\AdminBundle\\Controller\\UserController::userFormAction',));
  291.                 }
  292.                 // hona_admin_user_sendconfirmationemail
  293.                 if ('/user/send/confirmation' === $pathinfo) {
  294.                     return array (  '_controller' => 'Hona\\AdminBundle\\Controller\\UserController::sendConfirmationEmailAction',  '_route' => 'hona_admin_user_sendconfirmationemail',);
  295.                 }
  296.             }
  297.             elseif (=== strpos($pathinfo'/guard')) {
  298.                 // guard_list
  299.                 if (=== strpos($pathinfo'/guard/list') && preg_match('#^/guard/list(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  300.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'guard_list']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\AdminBundle\\Controller\\UserController::guardListAction',));
  301.                 }
  302.                 // guard_form
  303.                 if (preg_match('#^/guard(?:/(?P<uuid>[^/]++))?$#sD'$pathinfo$matches)) {
  304.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'guard_form']), array (  'uuid' => NULL,  '_controller' => 'Hona\\AdminBundle\\Controller\\UserController::guardFormAction',));
  305.                 }
  306.             }
  307.         }
  308.         if (preg_match('#^(?P<domain>api.unda.co|api.hona.mx)$#sDi'$host$hostMatches)) {
  309.             if (=== strpos($pathinfo'/access_history')) {
  310.                 // access_history_get_uuid
  311.                 if (preg_match('#^/access_history/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  312.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'access_history_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\AccessHistoryController::accessHistoryGETAction',));
  313.                     if (!in_array($canonicalMethod, ['GET'])) {
  314.                         $allow array_merge($allow, ['GET']);
  315.                         goto not_access_history_get_uuid;
  316.                     }
  317.                     return $ret;
  318.                 }
  319.                 not_access_history_get_uuid:
  320.                 // access_history_post_uuid
  321.                 if ('/access_history' === $pathinfo) {
  322.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'access_history_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\AccessHistoryController::accessHistoryPOSTAction',));
  323.                     if (!in_array($requestMethod, ['POST'])) {
  324.                         $allow array_merge($allow, ['POST']);
  325.                         goto not_access_history_post_uuid;
  326.                     }
  327.                     return $ret;
  328.                 }
  329.                 not_access_history_post_uuid:
  330.                 // access_history_put_uuid
  331.                 if (preg_match('#^/access_history/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  332.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'access_history_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\AccessHistoryController::accessHistoryPUTAction',));
  333.                     if (!in_array($requestMethod, ['PUT'])) {
  334.                         $allow array_merge($allow, ['PUT']);
  335.                         goto not_access_history_put_uuid;
  336.                     }
  337.                     return $ret;
  338.                 }
  339.                 not_access_history_put_uuid:
  340.                 // access_history_delete_uuid
  341.                 if (preg_match('#^/access_history/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  342.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'access_history_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\AccessHistoryController::accessHistoryDELETEAction',));
  343.                     if (!in_array($requestMethod, ['DELETE'])) {
  344.                         $allow array_merge($allow, ['DELETE']);
  345.                         goto not_access_history_delete_uuid;
  346.                     }
  347.                     return $ret;
  348.                 }
  349.                 not_access_history_delete_uuid:
  350.             }
  351.             elseif (=== strpos($pathinfo'/address')) {
  352.                 // address_get_uuid_news
  353.                 if (preg_match('#^/address/(?P<uuid>[^/]++)/news(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  354.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'address_get_uuid_news']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\AddressController::addressNewsGETAction',));
  355.                     if (!in_array($canonicalMethod, ['GET'])) {
  356.                         $allow array_merge($allow, ['GET']);
  357.                         goto not_address_get_uuid_news;
  358.                     }
  359.                     return $ret;
  360.                 }
  361.                 not_address_get_uuid_news:
  362.                 // address_get_uuid_user_uuid_history
  363.                 if (preg_match('#^/address/(?P<uuid>[^/]++)/user/(?P<user_uuid>[^/]++)/history(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  364.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'address_get_uuid_user_uuid_history']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\AddressController::addressUserHistoryGETAction',));
  365.                     if (!in_array($canonicalMethod, ['GET'])) {
  366.                         $allow array_merge($allow, ['GET']);
  367.                         goto not_address_get_uuid_user_uuid_history;
  368.                     }
  369.                     return $ret;
  370.                 }
  371.                 not_address_get_uuid_user_uuid_history:
  372.                 // address_get_uuid_user_uuid_invitation
  373.                 if (preg_match('#^/address/(?P<uuid>[^/]++)/user/(?P<user_uuid>[^/]++)/invitation(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  374.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'address_get_uuid_user_uuid_invitation']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\AddressController::addressUserInvitationGETAction',));
  375.                     if (!in_array($canonicalMethod, ['GET'])) {
  376.                         $allow array_merge($allow, ['GET']);
  377.                         goto not_address_get_uuid_user_uuid_invitation;
  378.                     }
  379.                     return $ret;
  380.                 }
  381.                 not_address_get_uuid_user_uuid_invitation:
  382.                 // address_get_uuid_user_uuid_event_history
  383.                 if (preg_match('#^/address/(?P<uuid>[^/]++)/user/(?P<user_uuid>[^/]++)/event/history(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  384.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'address_get_uuid_user_uuid_event_history']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\AddressController::addressUserEventHistoryGETAction',));
  385.                     if (!in_array($canonicalMethod, ['GET'])) {
  386.                         $allow array_merge($allow, ['GET']);
  387.                         goto not_address_get_uuid_user_uuid_event_history;
  388.                     }
  389.                     return $ret;
  390.                 }
  391.                 not_address_get_uuid_user_uuid_event_history:
  392.                 // address_get_uuid_user_uuid_event
  393.                 if (preg_match('#^/address/(?P<uuid>[^/]++)/user/(?P<user_uuid>[^/]++)/event(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  394.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'address_get_uuid_user_uuid_event']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\AddressController::addressUserEventGETAction',));
  395.                     if (!in_array($canonicalMethod, ['GET'])) {
  396.                         $allow array_merge($allow, ['GET']);
  397.                         goto not_address_get_uuid_user_uuid_event;
  398.                     }
  399.                     return $ret;
  400.                 }
  401.                 not_address_get_uuid_user_uuid_event:
  402.                 // address_get_uuid_user
  403.                 if (preg_match('#^/address/(?P<uuid>[^/]++)/user(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  404.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'address_get_uuid_user']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\AddressController::addressUserGETAction',));
  405.                     if (!in_array($canonicalMethod, ['GET'])) {
  406.                         $allow array_merge($allow, ['GET']);
  407.                         goto not_address_get_uuid_user;
  408.                     }
  409.                     return $ret;
  410.                 }
  411.                 not_address_get_uuid_user:
  412.                 // address_get_uuid_history
  413.                 if (preg_match('#^/address/(?P<uuid>[^/]++)/history(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  414.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'address_get_uuid_history']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\AddressController::addressHistoryGETAction',));
  415.                     if (!in_array($canonicalMethod, ['GET'])) {
  416.                         $allow array_merge($allow, ['GET']);
  417.                         goto not_address_get_uuid_history;
  418.                     }
  419.                     return $ret;
  420.                 }
  421.                 not_address_get_uuid_history:
  422.                 // address_get_uuid_invitation
  423.                 if (preg_match('#^/address/(?P<uuid>[^/]++)/invitation(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  424.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'address_get_uuid_invitation']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\AddressController::addressInvitationGETAction',));
  425.                     if (!in_array($canonicalMethod, ['GET'])) {
  426.                         $allow array_merge($allow, ['GET']);
  427.                         goto not_address_get_uuid_invitation;
  428.                     }
  429.                     return $ret;
  430.                 }
  431.                 not_address_get_uuid_invitation:
  432.                 // address_get_uuid_historic_event
  433.                 if (preg_match('#^/address/(?P<uuid>[^/]++)/event/history(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  434.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'address_get_uuid_historic_event']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\AddressController::addressEventHistoryGETAction',));
  435.                     if (!in_array($canonicalMethod, ['GET'])) {
  436.                         $allow array_merge($allow, ['GET']);
  437.                         goto not_address_get_uuid_historic_event;
  438.                     }
  439.                     return $ret;
  440.                 }
  441.                 not_address_get_uuid_historic_event:
  442.                 // address_get_uuid_event
  443.                 if (preg_match('#^/address/(?P<uuid>[^/]++)/event(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  444.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'address_get_uuid_event']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\AddressController::addressEventGETAction',));
  445.                     if (!in_array($canonicalMethod, ['GET'])) {
  446.                         $allow array_merge($allow, ['GET']);
  447.                         goto not_address_get_uuid_event;
  448.                     }
  449.                     return $ret;
  450.                 }
  451.                 not_address_get_uuid_event:
  452.                 // address_get_uuid
  453.                 if (preg_match('#^/address/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  454.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'address_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\AddressController::addressGETAction',));
  455.                     if (!in_array($canonicalMethod, ['GET'])) {
  456.                         $allow array_merge($allow, ['GET']);
  457.                         goto not_address_get_uuid;
  458.                     }
  459.                     return $ret;
  460.                 }
  461.                 not_address_get_uuid:
  462.                 // address_post_uuid
  463.                 if ('/address' === $pathinfo) {
  464.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'address_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\AddressController::addressPOSTAction',));
  465.                     if (!in_array($requestMethod, ['POST'])) {
  466.                         $allow array_merge($allow, ['POST']);
  467.                         goto not_address_post_uuid;
  468.                     }
  469.                     return $ret;
  470.                 }
  471.                 not_address_post_uuid:
  472.                 // address_put_uuid
  473.                 if (preg_match('#^/address/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  474.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'address_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\AddressController::addressPUTAction',));
  475.                     if (!in_array($requestMethod, ['PUT'])) {
  476.                         $allow array_merge($allow, ['PUT']);
  477.                         goto not_address_put_uuid;
  478.                     }
  479.                     return $ret;
  480.                 }
  481.                 not_address_put_uuid:
  482.                 // address_delete_uuid
  483.                 if (preg_match('#^/address/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  484.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'address_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\AddressController::addressDELETEAction',));
  485.                     if (!in_array($requestMethod, ['DELETE'])) {
  486.                         $allow array_merge($allow, ['DELETE']);
  487.                         goto not_address_delete_uuid;
  488.                     }
  489.                     return $ret;
  490.                 }
  491.                 not_address_delete_uuid:
  492.             }
  493.             elseif (=== strpos($pathinfo'/control_gate')) {
  494.                 // control_gate_get_uuid_providers
  495.                 if (preg_match('#^/control_gate/(?P<uuid>[^/]++)/providers$#sD'$pathinfo$matches)) {
  496.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'control_gate_get_uuid_providers']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\ControlGateController::controlGateProvidersGETAction',));
  497.                     if (!in_array($canonicalMethod, ['GET'])) {
  498.                         $allow array_merge($allow, ['GET']);
  499.                         goto not_control_gate_get_uuid_providers;
  500.                     }
  501.                     return $ret;
  502.                 }
  503.                 not_control_gate_get_uuid_providers:
  504.                 // control_gate_get_uuid_tree
  505.                 if (preg_match('#^/control_gate/(?P<uuid>[^/]++)/tree$#sD'$pathinfo$matches)) {
  506.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'control_gate_get_uuid_tree']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\ControlGateController::controlGateTreeGETAction',));
  507.                     if (!in_array($canonicalMethod, ['GET'])) {
  508.                         $allow array_merge($allow, ['GET']);
  509.                         goto not_control_gate_get_uuid_tree;
  510.                     }
  511.                     return $ret;
  512.                 }
  513.                 not_control_gate_get_uuid_tree:
  514.                 // control_gate_get_uuid_news
  515.                 if (preg_match('#^/control_gate/(?P<uuid>[^/]++)/news(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  516.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'control_gate_get_uuid_news']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\ControlGateController::controlGateNewsGETAction',));
  517.                     if (!in_array($canonicalMethod, ['GET'])) {
  518.                         $allow array_merge($allow, ['GET']);
  519.                         goto not_control_gate_get_uuid_news;
  520.                     }
  521.                     return $ret;
  522.                 }
  523.                 not_control_gate_get_uuid_news:
  524.                 // control_gate_get_uuid_need_exit
  525.                 if (preg_match('#^/control_gate/(?P<uuid>[^/]++)/need/exit(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  526.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'control_gate_get_uuid_need_exit']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\ControlGateController::controlGateNeedExitGETAction',));
  527.                     if (!in_array($canonicalMethod, ['GET'])) {
  528.                         $allow array_merge($allow, ['GET']);
  529.                         goto not_control_gate_get_uuid_need_exit;
  530.                     }
  531.                     return $ret;
  532.                 }
  533.                 not_control_gate_get_uuid_need_exit:
  534.                 // control_gate_registry_access
  535.                 if ('/control_gate/registry/access' === $pathinfo) {
  536.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'control_gate_registry_access']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\ControlGateController::controlGateRegistyAccessAction',));
  537.                     if (!in_array($requestMethod, ['POST'])) {
  538.                         $allow array_merge($allow, ['POST']);
  539.                         goto not_control_gate_registry_access;
  540.                     }
  541.                     return $ret;
  542.                 }
  543.                 not_control_gate_registry_access:
  544.                 // control_gate_registry_exit
  545.                 if ('/control_gate/registry/exit' === $pathinfo) {
  546.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'control_gate_registry_exit']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\ControlGateController::controlGateRegistyExitAction',));
  547.                     if (!in_array($requestMethod, ['POST'])) {
  548.                         $allow array_merge($allow, ['POST']);
  549.                         goto not_control_gate_registry_exit;
  550.                     }
  551.                     return $ret;
  552.                 }
  553.                 not_control_gate_registry_exit:
  554.                 // control_gate_get_uuid
  555.                 if (preg_match('#^/control_gate/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  556.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'control_gate_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\ControlGateController::controlGateGETAction',));
  557.                     if (!in_array($canonicalMethod, ['GET'])) {
  558.                         $allow array_merge($allow, ['GET']);
  559.                         goto not_control_gate_get_uuid;
  560.                     }
  561.                     return $ret;
  562.                 }
  563.                 not_control_gate_get_uuid:
  564.                 // control_gate_post_uuid
  565.                 if ('/control_gate' === $pathinfo) {
  566.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'control_gate_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\ControlGateController::controlGatePOSTAction',));
  567.                     if (!in_array($requestMethod, ['POST'])) {
  568.                         $allow array_merge($allow, ['POST']);
  569.                         goto not_control_gate_post_uuid;
  570.                     }
  571.                     return $ret;
  572.                 }
  573.                 not_control_gate_post_uuid:
  574.                 // control_gate_put_uuid
  575.                 if (preg_match('#^/control_gate/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  576.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'control_gate_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\ControlGateController::controlGatePUTAction',));
  577.                     if (!in_array($requestMethod, ['PUT'])) {
  578.                         $allow array_merge($allow, ['PUT']);
  579.                         goto not_control_gate_put_uuid;
  580.                     }
  581.                     return $ret;
  582.                 }
  583.                 not_control_gate_put_uuid:
  584.                 // control_gate_delete_uuid
  585.                 if (preg_match('#^/control_gate/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  586.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'control_gate_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\ControlGateController::controlGateDELETEAction',));
  587.                     if (!in_array($requestMethod, ['DELETE'])) {
  588.                         $allow array_merge($allow, ['DELETE']);
  589.                         goto not_control_gate_delete_uuid;
  590.                     }
  591.                     return $ret;
  592.                 }
  593.                 not_control_gate_delete_uuid:
  594.             }
  595.             elseif (=== strpos($pathinfo'/device')) {
  596.                 // device_get_uuid
  597.                 if (preg_match('#^/device/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  598.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'device_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\DeviceController::deviceGETAction',));
  599.                     if (!in_array($canonicalMethod, ['GET'])) {
  600.                         $allow array_merge($allow, ['GET']);
  601.                         goto not_device_get_uuid;
  602.                     }
  603.                     return $ret;
  604.                 }
  605.                 not_device_get_uuid:
  606.                 // device_post_uuid
  607.                 if ('/device' === $pathinfo) {
  608.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'device_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\DeviceController::devicePOSTAction',));
  609.                     if (!in_array($requestMethod, ['POST'])) {
  610.                         $allow array_merge($allow, ['POST']);
  611.                         goto not_device_post_uuid;
  612.                     }
  613.                     return $ret;
  614.                 }
  615.                 not_device_post_uuid:
  616.                 // device_put_uuid
  617.                 if (preg_match('#^/device/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  618.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'device_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\DeviceController::devicePUTAction',));
  619.                     if (!in_array($requestMethod, ['PUT'])) {
  620.                         $allow array_merge($allow, ['PUT']);
  621.                         goto not_device_put_uuid;
  622.                     }
  623.                     return $ret;
  624.                 }
  625.                 not_device_put_uuid:
  626.                 // device_delete_uuid
  627.                 if (preg_match('#^/device/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  628.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'device_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\DeviceController::deviceDELETEAction',));
  629.                     if (!in_array($requestMethod, ['DELETE'])) {
  630.                         $allow array_merge($allow, ['DELETE']);
  631.                         goto not_device_delete_uuid;
  632.                     }
  633.                     return $ret;
  634.                 }
  635.                 not_device_delete_uuid:
  636.                 if (=== strpos($pathinfo'/device/notification/publish')) {
  637.                     // device_uuid_publish2
  638.                     if ('/device/notification/publish2' === $pathinfo) {
  639.                         $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'device_uuid_publish2']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\DeviceController::devicePublish2Action',));
  640.                         if (!in_array($requestMethod, ['POST'])) {
  641.                             $allow array_merge($allow, ['POST']);
  642.                             goto not_device_uuid_publish2;
  643.                         }
  644.                         return $ret;
  645.                     }
  646.                     not_device_uuid_publish2:
  647.                     // device_uuid_user_publish
  648.                     if (preg_match('#^/device/notification/publish/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  649.                         $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'device_uuid_user_publish']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\DeviceController::devicePublishUserAction',));
  650.                         if (!in_array($requestMethod, ['POST'])) {
  651.                             $allow array_merge($allow, ['POST']);
  652.                             goto not_device_uuid_user_publish;
  653.                         }
  654.                         return $ret;
  655.                     }
  656.                     not_device_uuid_user_publish:
  657.                     // device_uuid_publish
  658.                     if ('/device/notification/publish' === $pathinfo) {
  659.                         $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'device_uuid_publish']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\DeviceController::devicePublishAction',));
  660.                         if (!in_array($requestMethod, ['POST'])) {
  661.                             $allow array_merge($allow, ['POST']);
  662.                             goto not_device_uuid_publish;
  663.                         }
  664.                         return $ret;
  665.                     }
  666.                     not_device_uuid_publish:
  667.                 }
  668.                 // device_has_topic_get_uuid
  669.                 if (preg_match('#^/device/(?P<device_uuid>[^/]++)/topic/(?P<topic_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  670.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'device_has_topic_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\DeviceHasTopicController::deviceHasTopicGETAction',));
  671.                     if (!in_array($canonicalMethod, ['GET'])) {
  672.                         $allow array_merge($allow, ['GET']);
  673.                         goto not_device_has_topic_get_uuid;
  674.                     }
  675.                     return $ret;
  676.                 }
  677.                 not_device_has_topic_get_uuid:
  678.                 // device_has_topic_post_uuid
  679.                 if (preg_match('#^/device/(?P<device_uuid>[^/]++)/topic/(?P<topic_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  680.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'device_has_topic_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\DeviceHasTopicController::deviceHasTopicPOSTAction',));
  681.                     if (!in_array($requestMethod, ['POST'])) {
  682.                         $allow array_merge($allow, ['POST']);
  683.                         goto not_device_has_topic_post_uuid;
  684.                     }
  685.                     return $ret;
  686.                 }
  687.                 not_device_has_topic_post_uuid:
  688.                 // device_has_topic_put_uuid
  689.                 if (preg_match('#^/device/(?P<device_uuid>[^/]++)/topic/(?P<topic_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  690.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'device_has_topic_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\DeviceHasTopicController::deviceHasTopicPUTAction',));
  691.                     if (!in_array($requestMethod, ['PUT'])) {
  692.                         $allow array_merge($allow, ['PUT']);
  693.                         goto not_device_has_topic_put_uuid;
  694.                     }
  695.                     return $ret;
  696.                 }
  697.                 not_device_has_topic_put_uuid:
  698.                 // device_has_topic_delete_uuid
  699.                 if (preg_match('#^/device/(?P<device_uuid>[^/]++)/topic/(?P<topic_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  700.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'device_has_topic_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\DeviceHasTopicController::deviceHasTopicDELETEAction',));
  701.                     if (!in_array($requestMethod, ['DELETE'])) {
  702.                         $allow array_merge($allow, ['DELETE']);
  703.                         goto not_device_has_topic_delete_uuid;
  704.                     }
  705.                     return $ret;
  706.                 }
  707.                 not_device_has_topic_delete_uuid:
  708.             }
  709.             elseif (=== strpos($pathinfo'/event')) {
  710.                 // event_get_uuid_invitation_request
  711.                 if (preg_match('#^/event/(?P<uuid>[^/]++)/invitation_request(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  712.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'event_get_uuid_invitation_request']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\EventController::eventInvitationRequestGETAction',));
  713.                     if (!in_array($canonicalMethod, ['GET'])) {
  714.                         $allow array_merge($allow, ['GET']);
  715.                         goto not_event_get_uuid_invitation_request;
  716.                     }
  717.                     return $ret;
  718.                 }
  719.                 not_event_get_uuid_invitation_request:
  720.                 // event_get_uuid_invitation
  721.                 if (preg_match('#^/event/(?P<uuid>[^/]++)/invitation(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  722.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'event_get_uuid_invitation']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\EventController::eventInvitationGETAction',));
  723.                     if (!in_array($canonicalMethod, ['GET'])) {
  724.                         $allow array_merge($allow, ['GET']);
  725.                         goto not_event_get_uuid_invitation;
  726.                     }
  727.                     return $ret;
  728.                 }
  729.                 not_event_get_uuid_invitation:
  730.                 // event_create
  731.                 if ('/event/create' === $pathinfo) {
  732.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'event_create']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\EventController::eventCreateAction',));
  733.                     if (!in_array($requestMethod, ['POST'])) {
  734.                         $allow array_merge($allow, ['POST']);
  735.                         goto not_event_create;
  736.                     }
  737.                     return $ret;
  738.                 }
  739.                 not_event_create:
  740.                 // event_get_uuid
  741.                 if (preg_match('#^/event/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  742.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'event_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\EventController::eventGETAction',));
  743.                     if (!in_array($canonicalMethod, ['GET'])) {
  744.                         $allow array_merge($allow, ['GET']);
  745.                         goto not_event_get_uuid;
  746.                     }
  747.                     return $ret;
  748.                 }
  749.                 not_event_get_uuid:
  750.                 // event_post_uuid
  751.                 if ('/event' === $pathinfo) {
  752.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'event_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\EventController::eventPOSTAction',));
  753.                     if (!in_array($requestMethod, ['POST'])) {
  754.                         $allow array_merge($allow, ['POST']);
  755.                         goto not_event_post_uuid;
  756.                     }
  757.                     return $ret;
  758.                 }
  759.                 not_event_post_uuid:
  760.                 // event_put_uuid
  761.                 if (preg_match('#^/event/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  762.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'event_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\EventController::eventPUTAction',));
  763.                     if (!in_array($requestMethod, ['PUT'])) {
  764.                         $allow array_merge($allow, ['PUT']);
  765.                         goto not_event_put_uuid;
  766.                     }
  767.                     return $ret;
  768.                 }
  769.                 not_event_put_uuid:
  770.                 // event_delete_uuid
  771.                 if (preg_match('#^/event/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  772.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'event_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\EventController::eventDELETEAction',));
  773.                     if (!in_array($requestMethod, ['DELETE'])) {
  774.                         $allow array_merge($allow, ['DELETE']);
  775.                         goto not_event_delete_uuid;
  776.                     }
  777.                     return $ret;
  778.                 }
  779.                 not_event_delete_uuid:
  780.             }
  781.             elseif (=== strpos($pathinfo'/interval')) {
  782.                 // interval_get_uuid
  783.                 if (preg_match('#^/interval/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  784.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'interval_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\IntervalController::intervalGETAction',));
  785.                     if (!in_array($canonicalMethod, ['GET'])) {
  786.                         $allow array_merge($allow, ['GET']);
  787.                         goto not_interval_get_uuid;
  788.                     }
  789.                     return $ret;
  790.                 }
  791.                 not_interval_get_uuid:
  792.                 // interval_post_uuid
  793.                 if ('/interval' === $pathinfo) {
  794.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'interval_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\IntervalController::intervalPOSTAction',));
  795.                     if (!in_array($requestMethod, ['POST'])) {
  796.                         $allow array_merge($allow, ['POST']);
  797.                         goto not_interval_post_uuid;
  798.                     }
  799.                     return $ret;
  800.                 }
  801.                 not_interval_post_uuid:
  802.                 // interval_put_uuid
  803.                 if (preg_match('#^/interval/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  804.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'interval_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\IntervalController::intervalPUTAction',));
  805.                     if (!in_array($requestMethod, ['PUT'])) {
  806.                         $allow array_merge($allow, ['PUT']);
  807.                         goto not_interval_put_uuid;
  808.                     }
  809.                     return $ret;
  810.                 }
  811.                 not_interval_put_uuid:
  812.                 // interval_delete_uuid
  813.                 if (preg_match('#^/interval/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  814.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'interval_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\IntervalController::intervalDELETEAction',));
  815.                     if (!in_array($requestMethod, ['DELETE'])) {
  816.                         $allow array_merge($allow, ['DELETE']);
  817.                         goto not_interval_delete_uuid;
  818.                     }
  819.                     return $ret;
  820.                 }
  821.                 not_interval_delete_uuid:
  822.             }
  823.             elseif (=== strpos($pathinfo'/invitation')) {
  824.                 // invitation_from_invitation_request_uuid
  825.                 if (=== strpos($pathinfo'/invitation/from/invitation_request') && preg_match('#^/invitation/from/invitation_request/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  826.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'invitation_from_invitation_request_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationController::invitationFromInvitationRequestAction',));
  827.                     if (!in_array($canonicalMethod, ['GET'])) {
  828.                         $allow array_merge($allow, ['GET']);
  829.                         goto not_invitation_from_invitation_request_uuid;
  830.                     }
  831.                     return $ret;
  832.                 }
  833.                 not_invitation_from_invitation_request_uuid:
  834.                 if (=== strpos($pathinfo'/invitation/c')) {
  835.                     // invitation_create
  836.                     if ('/invitation/create' === $pathinfo) {
  837.                         $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'invitation_create']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationController::invitationCreateAction',));
  838.                         if (!in_array($requestMethod, ['POST'])) {
  839.                             $allow array_merge($allow, ['POST']);
  840.                             goto not_invitation_create;
  841.                         }
  842.                         return $ret;
  843.                     }
  844.                     not_invitation_create:
  845.                     // invitation_check
  846.                     if ('/invitation/check' === $pathinfo) {
  847.                         $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'invitation_check']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationController::invitationCheckAction',));
  848.                         if (!in_array($requestMethod, ['POST'])) {
  849.                             $allow array_merge($allow, ['POST']);
  850.                             goto not_invitation_check;
  851.                         }
  852.                         return $ret;
  853.                     }
  854.                     not_invitation_check:
  855.                     // invitation_cancel
  856.                     if ('/invitation/cancel' === $pathinfo) {
  857.                         $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'invitation_cancel']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationController::invitationCancelAction',));
  858.                         if (!in_array($requestMethod, ['POST'])) {
  859.                             $allow array_merge($allow, ['POST']);
  860.                             goto not_invitation_cancel;
  861.                         }
  862.                         return $ret;
  863.                     }
  864.                     not_invitation_cancel:
  865.                 }
  866.                 // invitation_registry_access
  867.                 if ('/invitation/registry/access' === $pathinfo) {
  868.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'invitation_registry_access']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationController::invitationRegistyAccessAction',));
  869.                     if (!in_array($requestMethod, ['POST'])) {
  870.                         $allow array_merge($allow, ['POST']);
  871.                         goto not_invitation_registry_access;
  872.                     }
  873.                     return $ret;
  874.                 }
  875.                 not_invitation_registry_access:
  876.                 // invitation_registry_exit
  877.                 if ('/invitation/registry/exit' === $pathinfo) {
  878.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'invitation_registry_exit']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationController::invitationRegistyExitAction',));
  879.                     if (!in_array($requestMethod, ['POST'])) {
  880.                         $allow array_merge($allow, ['POST']);
  881.                         goto not_invitation_registry_exit;
  882.                     }
  883.                     return $ret;
  884.                 }
  885.                 not_invitation_registry_exit:
  886.                 // invitation_get_uuid
  887.                 if (preg_match('#^/invitation/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  888.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'invitation_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationController::invitationGETAction',));
  889.                     if (!in_array($canonicalMethod, ['GET'])) {
  890.                         $allow array_merge($allow, ['GET']);
  891.                         goto not_invitation_get_uuid;
  892.                     }
  893.                     return $ret;
  894.                 }
  895.                 not_invitation_get_uuid:
  896.                 // invitation_post_uuid
  897.                 if ('/invitation' === $pathinfo) {
  898.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'invitation_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationController::invitationPOSTAction',));
  899.                     if (!in_array($requestMethod, ['POST'])) {
  900.                         $allow array_merge($allow, ['POST']);
  901.                         goto not_invitation_post_uuid;
  902.                     }
  903.                     return $ret;
  904.                 }
  905.                 not_invitation_post_uuid:
  906.                 // invitation_put_uuid
  907.                 if (preg_match('#^/invitation/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  908.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'invitation_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationController::invitationPUTAction',));
  909.                     if (!in_array($requestMethod, ['PUT'])) {
  910.                         $allow array_merge($allow, ['PUT']);
  911.                         goto not_invitation_put_uuid;
  912.                     }
  913.                     return $ret;
  914.                 }
  915.                 not_invitation_put_uuid:
  916.                 // invitation_delete_uuid
  917.                 if (preg_match('#^/invitation/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  918.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'invitation_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationController::invitationDELETEAction',));
  919.                     if (!in_array($requestMethod, ['DELETE'])) {
  920.                         $allow array_merge($allow, ['DELETE']);
  921.                         goto not_invitation_delete_uuid;
  922.                     }
  923.                     return $ret;
  924.                 }
  925.                 not_invitation_delete_uuid:
  926.                 if (=== strpos($pathinfo'/invitation_request')) {
  927.                     // invitation_request_accept_uuid
  928.                     if (preg_match('#^/invitation_request/(?P<uuid>[^/]++)/accept$#sD'$pathinfo$matches)) {
  929.                         $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'invitation_request_accept_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationRequestController::invitationRequestAcceptAction',));
  930.                         if (!in_array($canonicalMethod, ['GET'])) {
  931.                             $allow array_merge($allow, ['GET']);
  932.                             goto not_invitation_request_accept_uuid;
  933.                         }
  934.                         return $ret;
  935.                     }
  936.                     not_invitation_request_accept_uuid:
  937.                     // invitation_request_get_uuid
  938.                     if (preg_match('#^/invitation_request/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  939.                         $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'invitation_request_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationRequestController::invitationRequestGETAction',));
  940.                         if (!in_array($canonicalMethod, ['GET'])) {
  941.                             $allow array_merge($allow, ['GET']);
  942.                             goto not_invitation_request_get_uuid;
  943.                         }
  944.                         return $ret;
  945.                     }
  946.                     not_invitation_request_get_uuid:
  947.                     // invitation_request_post_uuid
  948.                     if ('/invitation_request' === $pathinfo) {
  949.                         $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'invitation_request_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationRequestController::invitationRequestPOSTAction',));
  950.                         if (!in_array($requestMethod, ['POST'])) {
  951.                             $allow array_merge($allow, ['POST']);
  952.                             goto not_invitation_request_post_uuid;
  953.                         }
  954.                         return $ret;
  955.                     }
  956.                     not_invitation_request_post_uuid:
  957.                     // invitation_request_put_uuid
  958.                     if (preg_match('#^/invitation_request/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  959.                         $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'invitation_request_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationRequestController::invitationRequestPUTAction',));
  960.                         if (!in_array($requestMethod, ['PUT'])) {
  961.                             $allow array_merge($allow, ['PUT']);
  962.                             goto not_invitation_request_put_uuid;
  963.                         }
  964.                         return $ret;
  965.                     }
  966.                     not_invitation_request_put_uuid:
  967.                     // invitation_request_delete_uuid
  968.                     if (preg_match('#^/invitation_request/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  969.                         $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'invitation_request_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\InvitationRequestController::invitationRequestDELETEAction',));
  970.                         if (!in_array($requestMethod, ['DELETE'])) {
  971.                             $allow array_merge($allow, ['DELETE']);
  972.                             goto not_invitation_request_delete_uuid;
  973.                         }
  974.                         return $ret;
  975.                     }
  976.                     not_invitation_request_delete_uuid:
  977.                 }
  978.             }
  979.             elseif (=== strpos($pathinfo'/me')) {
  980.                 // me_get
  981.                 if ('/me' === $pathinfo) {
  982.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'me_get']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\MeController::meGETAction',));
  983.                     if (!in_array($canonicalMethod, ['GET'])) {
  984.                         $allow array_merge($allow, ['GET']);
  985.                         goto not_me_get;
  986.                     }
  987.                     return $ret;
  988.                 }
  989.                 not_me_get:
  990.                 // me_put
  991.                 if ('/me' === $pathinfo) {
  992.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'me_put']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\MeController::mePUTAction',));
  993.                     if (!in_array($requestMethod, ['PUT'])) {
  994.                         $allow array_merge($allow, ['PUT']);
  995.                         goto not_me_put;
  996.                     }
  997.                     return $ret;
  998.                 }
  999.                 not_me_put:
  1000.                 // me_delete
  1001.                 if ('/me' === $pathinfo) {
  1002.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'me_delete']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\MeController::meDELETEAction',));
  1003.                     if (!in_array($requestMethod, ['DELETE'])) {
  1004.                         $allow array_merge($allow, ['DELETE']);
  1005.                         goto not_me_delete;
  1006.                     }
  1007.                     return $ret;
  1008.                 }
  1009.                 not_me_delete:
  1010.                 if (=== strpos($pathinfo'/media')) {
  1011.                     // media_get_uuid
  1012.                     if (preg_match('#^/media/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1013.                         $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'media_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\MediaController::mediaGETAction',));
  1014.                         if (!in_array($canonicalMethod, ['GET'])) {
  1015.                             $allow array_merge($allow, ['GET']);
  1016.                             goto not_media_get_uuid;
  1017.                         }
  1018.                         return $ret;
  1019.                     }
  1020.                     not_media_get_uuid:
  1021.                     // media_post_uuid
  1022.                     if ('/media' === $pathinfo) {
  1023.                         $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'media_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\MediaController::mediaPOSTAction',));
  1024.                         if (!in_array($requestMethod, ['POST'])) {
  1025.                             $allow array_merge($allow, ['POST']);
  1026.                             goto not_media_post_uuid;
  1027.                         }
  1028.                         return $ret;
  1029.                     }
  1030.                     not_media_post_uuid:
  1031.                     // media_put_uuid
  1032.                     if (preg_match('#^/media/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1033.                         $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'media_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\MediaController::mediaPUTAction',));
  1034.                         if (!in_array($requestMethod, ['PUT'])) {
  1035.                             $allow array_merge($allow, ['PUT']);
  1036.                             goto not_media_put_uuid;
  1037.                         }
  1038.                         return $ret;
  1039.                     }
  1040.                     not_media_put_uuid:
  1041.                     // media_delete_uuid
  1042.                     if (preg_match('#^/media/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1043.                         $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'media_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\MediaController::mediaDELETEAction',));
  1044.                         if (!in_array($requestMethod, ['DELETE'])) {
  1045.                             $allow array_merge($allow, ['DELETE']);
  1046.                             goto not_media_delete_uuid;
  1047.                         }
  1048.                         return $ret;
  1049.                     }
  1050.                     not_media_delete_uuid:
  1051.                 }
  1052.             }
  1053.             elseif (=== strpos($pathinfo'/news')) {
  1054.                 // news_get_uuid
  1055.                 if (preg_match('#^/news/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1056.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'news_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NewsController::newsGETAction',));
  1057.                     if (!in_array($canonicalMethod, ['GET'])) {
  1058.                         $allow array_merge($allow, ['GET']);
  1059.                         goto not_news_get_uuid;
  1060.                     }
  1061.                     return $ret;
  1062.                 }
  1063.                 not_news_get_uuid:
  1064.                 // news_post_uuid
  1065.                 if ('/news' === $pathinfo) {
  1066.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'news_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NewsController::newsPOSTAction',));
  1067.                     if (!in_array($requestMethod, ['POST'])) {
  1068.                         $allow array_merge($allow, ['POST']);
  1069.                         goto not_news_post_uuid;
  1070.                     }
  1071.                     return $ret;
  1072.                 }
  1073.                 not_news_post_uuid:
  1074.                 // news_put_uuid
  1075.                 if (preg_match('#^/news/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1076.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'news_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NewsController::newsPUTAction',));
  1077.                     if (!in_array($requestMethod, ['PUT'])) {
  1078.                         $allow array_merge($allow, ['PUT']);
  1079.                         goto not_news_put_uuid;
  1080.                     }
  1081.                     return $ret;
  1082.                 }
  1083.                 not_news_put_uuid:
  1084.                 // news_delete_uuid
  1085.                 if (preg_match('#^/news/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1086.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'news_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NewsController::newsDELETEAction',));
  1087.                     if (!in_array($requestMethod, ['DELETE'])) {
  1088.                         $allow array_merge($allow, ['DELETE']);
  1089.                         goto not_news_delete_uuid;
  1090.                     }
  1091.                     return $ret;
  1092.                 }
  1093.                 not_news_delete_uuid:
  1094.                 // news_has_media_get_uuid
  1095.                 if (preg_match('#^/news/(?P<news_uuid>[^/]++)/media/(?P<media_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1096.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'news_has_media_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NewsHasMediaController::newsHasMediaGETAction',));
  1097.                     if (!in_array($canonicalMethod, ['GET'])) {
  1098.                         $allow array_merge($allow, ['GET']);
  1099.                         goto not_news_has_media_get_uuid;
  1100.                     }
  1101.                     return $ret;
  1102.                 }
  1103.                 not_news_has_media_get_uuid:
  1104.                 // news_has_media_post_uuid
  1105.                 if (preg_match('#^/news/(?P<news_uuid>[^/]++)/media/(?P<media_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1106.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'news_has_media_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NewsHasMediaController::newsHasMediaPOSTAction',));
  1107.                     if (!in_array($requestMethod, ['POST'])) {
  1108.                         $allow array_merge($allow, ['POST']);
  1109.                         goto not_news_has_media_post_uuid;
  1110.                     }
  1111.                     return $ret;
  1112.                 }
  1113.                 not_news_has_media_post_uuid:
  1114.                 // news_has_media_put_uuid
  1115.                 if (preg_match('#^/news/(?P<news_uuid>[^/]++)/media/(?P<media_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1116.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'news_has_media_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NewsHasMediaController::newsHasMediaPUTAction',));
  1117.                     if (!in_array($requestMethod, ['PUT'])) {
  1118.                         $allow array_merge($allow, ['PUT']);
  1119.                         goto not_news_has_media_put_uuid;
  1120.                     }
  1121.                     return $ret;
  1122.                 }
  1123.                 not_news_has_media_put_uuid:
  1124.                 // news_has_media_delete_uuid
  1125.                 if (preg_match('#^/news/(?P<news_uuid>[^/]++)/media/(?P<media_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1126.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'news_has_media_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NewsHasMediaController::newsHasMediaDELETEAction',));
  1127.                     if (!in_array($requestMethod, ['DELETE'])) {
  1128.                         $allow array_merge($allow, ['DELETE']);
  1129.                         goto not_news_has_media_delete_uuid;
  1130.                     }
  1131.                     return $ret;
  1132.                 }
  1133.                 not_news_has_media_delete_uuid:
  1134.             }
  1135.             elseif (=== strpos($pathinfo'/notification')) {
  1136.                 // notifications_get_uuid_user
  1137.                 if (=== strpos($pathinfo'/notification/user') && preg_match('#^/notification/user(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  1138.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'notifications_get_uuid_user']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\NotificationController::notificationsUserGETAction',));
  1139.                     if (!in_array($canonicalMethod, ['GET'])) {
  1140.                         $allow array_merge($allow, ['GET']);
  1141.                         goto not_notifications_get_uuid_user;
  1142.                     }
  1143.                     return $ret;
  1144.                 }
  1145.                 not_notifications_get_uuid_user:
  1146.                 // notification_send_post_uuid
  1147.                 if ('/notification/send' === $pathinfo) {
  1148.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'notification_send_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NotificationController::notificationSendPOSTAction',));
  1149.                     if (!in_array($requestMethod, ['POST'])) {
  1150.                         $allow array_merge($allow, ['POST']);
  1151.                         goto not_notification_send_post_uuid;
  1152.                     }
  1153.                     return $ret;
  1154.                 }
  1155.                 not_notification_send_post_uuid:
  1156.                 // notification_get_uuid
  1157.                 if (preg_match('#^/notification/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1158.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'notification_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NotificationController::notificationGETAction',));
  1159.                     if (!in_array($canonicalMethod, ['GET'])) {
  1160.                         $allow array_merge($allow, ['GET']);
  1161.                         goto not_notification_get_uuid;
  1162.                     }
  1163.                     return $ret;
  1164.                 }
  1165.                 not_notification_get_uuid:
  1166.                 // notification_post_uuid
  1167.                 if ('/notification' === $pathinfo) {
  1168.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'notification_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NotificationController::notificationPOSTAction',));
  1169.                     if (!in_array($requestMethod, ['POST'])) {
  1170.                         $allow array_merge($allow, ['POST']);
  1171.                         goto not_notification_post_uuid;
  1172.                     }
  1173.                     return $ret;
  1174.                 }
  1175.                 not_notification_post_uuid:
  1176.                 // notification_put_uuid
  1177.                 if (preg_match('#^/notification/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1178.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'notification_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NotificationController::notificationPUTAction',));
  1179.                     if (!in_array($requestMethod, ['PUT'])) {
  1180.                         $allow array_merge($allow, ['PUT']);
  1181.                         goto not_notification_put_uuid;
  1182.                     }
  1183.                     return $ret;
  1184.                 }
  1185.                 not_notification_put_uuid:
  1186.                 // notification_delete_uuid
  1187.                 if (preg_match('#^/notification/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1188.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'notification_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NotificationController::notificationDELETEAction',));
  1189.                     if (!in_array($requestMethod, ['DELETE'])) {
  1190.                         $allow array_merge($allow, ['DELETE']);
  1191.                         goto not_notification_delete_uuid;
  1192.                     }
  1193.                     return $ret;
  1194.                 }
  1195.                 not_notification_delete_uuid:
  1196.                 if (=== strpos($pathinfo'/notification_setting')) {
  1197.                     if (=== strpos($pathinfo'/notification_setting/user')) {
  1198.                         // notification_setting_user_get_uuid
  1199.                         if ('/notification_setting/user' === $pathinfo) {
  1200.                             $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'notification_setting_user_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NotificationSettingController::notificationSettingUserGETAction',));
  1201.                             if (!in_array($canonicalMethod, ['GET'])) {
  1202.                                 $allow array_merge($allow, ['GET']);
  1203.                                 goto not_notification_setting_user_get_uuid;
  1204.                             }
  1205.                             return $ret;
  1206.                         }
  1207.                         not_notification_setting_user_get_uuid:
  1208.                         // notification_setting_user_put_uuid
  1209.                         if ('/notification_setting/user' === $pathinfo) {
  1210.                             $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'notification_setting_user_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NotificationSettingController::notificationSettingUserPUTAction',));
  1211.                             if (!in_array($requestMethod, ['PUT'])) {
  1212.                                 $allow array_merge($allow, ['PUT']);
  1213.                                 goto not_notification_setting_user_put_uuid;
  1214.                             }
  1215.                             return $ret;
  1216.                         }
  1217.                         not_notification_setting_user_put_uuid:
  1218.                         if (=== strpos($pathinfo'/notification_setting/user/guard')) {
  1219.                             // notification_setting_user_guard_get_uuid
  1220.                             if ('/notification_setting/user/guard' === $pathinfo) {
  1221.                                 $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'notification_setting_user_guard_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NotificationSettingController::notificationSettingUserGuardGETAction',));
  1222.                                 if (!in_array($canonicalMethod, ['GET'])) {
  1223.                                     $allow array_merge($allow, ['GET']);
  1224.                                     goto not_notification_setting_user_guard_get_uuid;
  1225.                                 }
  1226.                                 return $ret;
  1227.                             }
  1228.                             not_notification_setting_user_guard_get_uuid:
  1229.                             // notification_setting_user_guard_put_uuid
  1230.                             if ('/notification_setting/user/guard' === $pathinfo) {
  1231.                                 $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'notification_setting_user_guard_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NotificationSettingController::notificationSettingUserGuardPUTAction',));
  1232.                                 if (!in_array($requestMethod, ['PUT'])) {
  1233.                                     $allow array_merge($allow, ['PUT']);
  1234.                                     goto not_notification_setting_user_guard_put_uuid;
  1235.                                 }
  1236.                                 return $ret;
  1237.                             }
  1238.                             not_notification_setting_user_guard_put_uuid:
  1239.                         }
  1240.                     }
  1241.                     // notification_setting_get_uuid
  1242.                     if (preg_match('#^/notification_setting/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1243.                         $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'notification_setting_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NotificationSettingController::notificationSettingGETAction',));
  1244.                         if (!in_array($canonicalMethod, ['GET'])) {
  1245.                             $allow array_merge($allow, ['GET']);
  1246.                             goto not_notification_setting_get_uuid;
  1247.                         }
  1248.                         return $ret;
  1249.                     }
  1250.                     not_notification_setting_get_uuid:
  1251.                     // notification_setting_post_uuid
  1252.                     if ('/notification_setting' === $pathinfo) {
  1253.                         $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'notification_setting_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NotificationSettingController::notificationSettingPOSTAction',));
  1254.                         if (!in_array($requestMethod, ['POST'])) {
  1255.                             $allow array_merge($allow, ['POST']);
  1256.                             goto not_notification_setting_post_uuid;
  1257.                         }
  1258.                         return $ret;
  1259.                     }
  1260.                     not_notification_setting_post_uuid:
  1261.                     // notification_setting_put_uuid
  1262.                     if (preg_match('#^/notification_setting/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1263.                         $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'notification_setting_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NotificationSettingController::notificationSettingPUTAction',));
  1264.                         if (!in_array($requestMethod, ['PUT'])) {
  1265.                             $allow array_merge($allow, ['PUT']);
  1266.                             goto not_notification_setting_put_uuid;
  1267.                         }
  1268.                         return $ret;
  1269.                     }
  1270.                     not_notification_setting_put_uuid:
  1271.                     // notification_setting_delete_uuid
  1272.                     if (preg_match('#^/notification_setting/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1273.                         $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'notification_setting_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\NotificationSettingController::notificationSettingDELETEAction',));
  1274.                         if (!in_array($requestMethod, ['DELETE'])) {
  1275.                             $allow array_merge($allow, ['DELETE']);
  1276.                             goto not_notification_setting_delete_uuid;
  1277.                         }
  1278.                         return $ret;
  1279.                     }
  1280.                     not_notification_setting_delete_uuid:
  1281.                 }
  1282.             }
  1283.             elseif (=== strpos($pathinfo'/residential')) {
  1284.                 // residential_get_uuid_providers
  1285.                 if (preg_match('#^/residential/(?P<uuid>[^/]++)/providers$#sD'$pathinfo$matches)) {
  1286.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'residential_get_uuid_providers']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\ResidentialController::residentialProvidersGETAction',));
  1287.                     if (!in_array($canonicalMethod, ['GET'])) {
  1288.                         $allow array_merge($allow, ['GET']);
  1289.                         goto not_residential_get_uuid_providers;
  1290.                     }
  1291.                     return $ret;
  1292.                 }
  1293.                 not_residential_get_uuid_providers:
  1294.                 // residential_get_uuid_tree
  1295.                 if (preg_match('#^/residential/(?P<uuid>[^/]++)/tree$#sD'$pathinfo$matches)) {
  1296.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'residential_get_uuid_tree']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\ResidentialController::residentialTreeGETAction',));
  1297.                     if (!in_array($canonicalMethod, ['GET'])) {
  1298.                         $allow array_merge($allow, ['GET']);
  1299.                         goto not_residential_get_uuid_tree;
  1300.                     }
  1301.                     return $ret;
  1302.                 }
  1303.                 not_residential_get_uuid_tree:
  1304.                 // residential_get_uuid_news
  1305.                 if (preg_match('#^/residential/(?P<uuid>[^/]++)/news(?:/(?P<type>[^/]++)(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?)?$#sD'$pathinfo$matches)) {
  1306.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'residential_get_uuid_news']), array (  'type' => 0,  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\ResidentialController::residentialNewsGETAction',));
  1307.                     if (!in_array($canonicalMethod, ['GET'])) {
  1308.                         $allow array_merge($allow, ['GET']);
  1309.                         goto not_residential_get_uuid_news;
  1310.                     }
  1311.                     return $ret;
  1312.                 }
  1313.                 not_residential_get_uuid_news:
  1314.                 // residential_get_uuid_need_exit
  1315.                 if (preg_match('#^/residential/(?P<uuid>[^/]++)/need/exit(?:/(?P<size>[^/]++)(?:/(?P<page>[^/]++))?)?$#sD'$pathinfo$matches)) {
  1316.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'residential_get_uuid_need_exit']), array (  'size' => 10,  'page' => 0,  '_controller' => 'Hona\\ApiBundle\\Controller\\ResidentialController::residentialNeedExitGETAction',));
  1317.                     if (!in_array($canonicalMethod, ['GET'])) {
  1318.                         $allow array_merge($allow, ['GET']);
  1319.                         goto not_residential_get_uuid_need_exit;
  1320.                     }
  1321.                     return $ret;
  1322.                 }
  1323.                 not_residential_get_uuid_need_exit:
  1324.                 // residential_get_uuid
  1325.                 if (preg_match('#^/residential/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1326.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'residential_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\ResidentialController::residentialGETAction',));
  1327.                     if (!in_array($canonicalMethod, ['GET'])) {
  1328.                         $allow array_merge($allow, ['GET']);
  1329.                         goto not_residential_get_uuid;
  1330.                     }
  1331.                     return $ret;
  1332.                 }
  1333.                 not_residential_get_uuid:
  1334.                 // residential_post_uuid
  1335.                 if ('/residential' === $pathinfo) {
  1336.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'residential_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\ResidentialController::residentialPOSTAction',));
  1337.                     if (!in_array($requestMethod, ['POST'])) {
  1338.                         $allow array_merge($allow, ['POST']);
  1339.                         goto not_residential_post_uuid;
  1340.                     }
  1341.                     return $ret;
  1342.                 }
  1343.                 not_residential_post_uuid:
  1344.                 // residential_put_uuid
  1345.                 if (preg_match('#^/residential/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1346.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'residential_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\ResidentialController::residentialPUTAction',));
  1347.                     if (!in_array($requestMethod, ['PUT'])) {
  1348.                         $allow array_merge($allow, ['PUT']);
  1349.                         goto not_residential_put_uuid;
  1350.                     }
  1351.                     return $ret;
  1352.                 }
  1353.                 not_residential_put_uuid:
  1354.                 // residential_delete_uuid
  1355.                 if (preg_match('#^/residential/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1356.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'residential_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\ResidentialController::residentialDELETEAction',));
  1357.                     if (!in_array($requestMethod, ['DELETE'])) {
  1358.                         $allow array_merge($allow, ['DELETE']);
  1359.                         goto not_residential_delete_uuid;
  1360.                     }
  1361.                     return $ret;
  1362.                 }
  1363.                 not_residential_delete_uuid:
  1364.             }
  1365.             elseif (=== strpos($pathinfo'/topic')) {
  1366.                 // topic_get_uuid
  1367.                 if (preg_match('#^/topic/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1368.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'topic_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\TopicController::topicGETAction',));
  1369.                     if (!in_array($canonicalMethod, ['GET'])) {
  1370.                         $allow array_merge($allow, ['GET']);
  1371.                         goto not_topic_get_uuid;
  1372.                     }
  1373.                     return $ret;
  1374.                 }
  1375.                 not_topic_get_uuid:
  1376.                 // topic_post_uuid
  1377.                 if ('/topic' === $pathinfo) {
  1378.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'topic_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\TopicController::topicPOSTAction',));
  1379.                     if (!in_array($requestMethod, ['POST'])) {
  1380.                         $allow array_merge($allow, ['POST']);
  1381.                         goto not_topic_post_uuid;
  1382.                     }
  1383.                     return $ret;
  1384.                 }
  1385.                 not_topic_post_uuid:
  1386.                 // topic_put_uuid
  1387.                 if (preg_match('#^/topic/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1388.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'topic_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\TopicController::topicPUTAction',));
  1389.                     if (!in_array($requestMethod, ['PUT'])) {
  1390.                         $allow array_merge($allow, ['PUT']);
  1391.                         goto not_topic_put_uuid;
  1392.                     }
  1393.                     return $ret;
  1394.                 }
  1395.                 not_topic_put_uuid:
  1396.                 // topic_delete_uuid
  1397.                 if (preg_match('#^/topic/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1398.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'topic_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\TopicController::topicDELETEAction',));
  1399.                     if (!in_array($requestMethod, ['DELETE'])) {
  1400.                         $allow array_merge($allow, ['DELETE']);
  1401.                         goto not_topic_delete_uuid;
  1402.                     }
  1403.                     return $ret;
  1404.                 }
  1405.                 not_topic_delete_uuid:
  1406.             }
  1407.             elseif (=== strpos($pathinfo'/user')) {
  1408.                 // user_get_uuid
  1409.                 if (preg_match('#^/user/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1410.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserController::userGETAction',));
  1411.                     if (!in_array($canonicalMethod, ['GET'])) {
  1412.                         $allow array_merge($allow, ['GET']);
  1413.                         goto not_user_get_uuid;
  1414.                     }
  1415.                     return $ret;
  1416.                 }
  1417.                 not_user_get_uuid:
  1418.                 // user_post_uuid
  1419.                 if ('/user' === $pathinfo) {
  1420.                     $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'user_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserController::userPOSTAction',));
  1421.                     if (!in_array($requestMethod, ['POST'])) {
  1422.                         $allow array_merge($allow, ['POST']);
  1423.                         goto not_user_post_uuid;
  1424.                     }
  1425.                     return $ret;
  1426.                 }
  1427.                 not_user_post_uuid:
  1428.                 if (=== strpos($pathinfo'/user/family/member')) {
  1429.                     // family_post_uuid
  1430.                     if ('/user/family/member/create' === $pathinfo) {
  1431.                         $ret $this->mergeDefaults(array_replace($hostMatches, ['_route' => 'family_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserController::userFamiliyPOSTAction',));
  1432.                         if (!in_array($requestMethod, ['POST'])) {
  1433.                             $allow array_merge($allow, ['POST']);
  1434.                             goto not_family_post_uuid;
  1435.                         }
  1436.                         return $ret;
  1437.                     }
  1438.                     not_family_post_uuid:
  1439.                     // family_put_uuid
  1440.                     if (preg_match('#^/user/family/member/(?P<uuid>[^/]++)/address/(?P<addressUuid>[^/]++)$#sD'$pathinfo$matches)) {
  1441.                         $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'family_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserController::userFamiliyPUTAction',));
  1442.                         if (!in_array($requestMethod, ['PUT'])) {
  1443.                             $allow array_merge($allow, ['PUT']);
  1444.                             goto not_family_put_uuid;
  1445.                         }
  1446.                         return $ret;
  1447.                     }
  1448.                     not_family_put_uuid:
  1449.                 }
  1450.                 // user_put_uuid
  1451.                 if (preg_match('#^/user/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1452.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserController::userPUTAction',));
  1453.                     if (!in_array($requestMethod, ['PUT'])) {
  1454.                         $allow array_merge($allow, ['PUT']);
  1455.                         goto not_user_put_uuid;
  1456.                     }
  1457.                     return $ret;
  1458.                 }
  1459.                 not_user_put_uuid:
  1460.                 // user_delete_uuid
  1461.                 if (preg_match('#^/user/(?P<uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1462.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserController::userDELETEAction',));
  1463.                     if (!in_array($requestMethod, ['DELETE'])) {
  1464.                         $allow array_merge($allow, ['DELETE']);
  1465.                         goto not_user_delete_uuid;
  1466.                     }
  1467.                     return $ret;
  1468.                 }
  1469.                 not_user_delete_uuid:
  1470.                 // user_has_address_get_uuid
  1471.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/address/(?P<address_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1472.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_address_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasAddressController::userHasAddressGETAction',));
  1473.                     if (!in_array($canonicalMethod, ['GET'])) {
  1474.                         $allow array_merge($allow, ['GET']);
  1475.                         goto not_user_has_address_get_uuid;
  1476.                     }
  1477.                     return $ret;
  1478.                 }
  1479.                 not_user_has_address_get_uuid:
  1480.                 // user_has_address_post_uuid
  1481.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/address/(?P<address_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1482.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_address_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasAddressController::userHasAddressPOSTAction',));
  1483.                     if (!in_array($requestMethod, ['POST'])) {
  1484.                         $allow array_merge($allow, ['POST']);
  1485.                         goto not_user_has_address_post_uuid;
  1486.                     }
  1487.                     return $ret;
  1488.                 }
  1489.                 not_user_has_address_post_uuid:
  1490.                 // user_has_address_put_uuid
  1491.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/address/(?P<address_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1492.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_address_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasAddressController::userHasAddressPUTAction',));
  1493.                     if (!in_array($requestMethod, ['PUT'])) {
  1494.                         $allow array_merge($allow, ['PUT']);
  1495.                         goto not_user_has_address_put_uuid;
  1496.                     }
  1497.                     return $ret;
  1498.                 }
  1499.                 not_user_has_address_put_uuid:
  1500.                 // user_has_address_delete_uuid
  1501.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/address/(?P<address_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1502.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_address_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasAddressController::userHasAddressDELETEAction',));
  1503.                     if (!in_array($requestMethod, ['DELETE'])) {
  1504.                         $allow array_merge($allow, ['DELETE']);
  1505.                         goto not_user_has_address_delete_uuid;
  1506.                     }
  1507.                     return $ret;
  1508.                 }
  1509.                 not_user_has_address_delete_uuid:
  1510.                 // user_has_control_gate_get_uuid
  1511.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/control_gate/(?P<control_gate_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1512.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_control_gate_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasControlGateController::userHasControlGateGETAction',));
  1513.                     if (!in_array($canonicalMethod, ['GET'])) {
  1514.                         $allow array_merge($allow, ['GET']);
  1515.                         goto not_user_has_control_gate_get_uuid;
  1516.                     }
  1517.                     return $ret;
  1518.                 }
  1519.                 not_user_has_control_gate_get_uuid:
  1520.                 // user_has_control_gate_post_uuid
  1521.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/control_gate/(?P<control_gate_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1522.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_control_gate_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasControlGateController::userHasControlGatePOSTAction',));
  1523.                     if (!in_array($requestMethod, ['POST'])) {
  1524.                         $allow array_merge($allow, ['POST']);
  1525.                         goto not_user_has_control_gate_post_uuid;
  1526.                     }
  1527.                     return $ret;
  1528.                 }
  1529.                 not_user_has_control_gate_post_uuid:
  1530.                 // user_has_control_gate_put_uuid
  1531.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/control_gate/(?P<control_gate_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1532.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_control_gate_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasControlGateController::userHasControlGatePUTAction',));
  1533.                     if (!in_array($requestMethod, ['PUT'])) {
  1534.                         $allow array_merge($allow, ['PUT']);
  1535.                         goto not_user_has_control_gate_put_uuid;
  1536.                     }
  1537.                     return $ret;
  1538.                 }
  1539.                 not_user_has_control_gate_put_uuid:
  1540.                 // user_has_control_gate_delete_uuid
  1541.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/control_gate/(?P<control_gate_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1542.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_control_gate_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasControlGateController::userHasControlGateDELETEAction',));
  1543.                     if (!in_array($requestMethod, ['DELETE'])) {
  1544.                         $allow array_merge($allow, ['DELETE']);
  1545.                         goto not_user_has_control_gate_delete_uuid;
  1546.                     }
  1547.                     return $ret;
  1548.                 }
  1549.                 not_user_has_control_gate_delete_uuid:
  1550.                 // user_has_notification_get_uuid
  1551.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/notification/(?P<notification_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1552.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_notification_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasNotificationController::userHasNotificationGETAction',));
  1553.                     if (!in_array($canonicalMethod, ['GET'])) {
  1554.                         $allow array_merge($allow, ['GET']);
  1555.                         goto not_user_has_notification_get_uuid;
  1556.                     }
  1557.                     return $ret;
  1558.                 }
  1559.                 not_user_has_notification_get_uuid:
  1560.                 // user_has_notification_post_uuid
  1561.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/notification/(?P<notification_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1562.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_notification_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasNotificationController::userHasNotificationPOSTAction',));
  1563.                     if (!in_array($requestMethod, ['POST'])) {
  1564.                         $allow array_merge($allow, ['POST']);
  1565.                         goto not_user_has_notification_post_uuid;
  1566.                     }
  1567.                     return $ret;
  1568.                 }
  1569.                 not_user_has_notification_post_uuid:
  1570.                 // user_has_notification_put_uuid
  1571.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/notification/(?P<notification_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1572.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_notification_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasNotificationController::userHasNotificationPUTAction',));
  1573.                     if (!in_array($requestMethod, ['PUT'])) {
  1574.                         $allow array_merge($allow, ['PUT']);
  1575.                         goto not_user_has_notification_put_uuid;
  1576.                     }
  1577.                     return $ret;
  1578.                 }
  1579.                 not_user_has_notification_put_uuid:
  1580.                 // user_has_notification_delete_uuid
  1581.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/notification/(?P<notification_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1582.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_notification_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasNotificationController::userHasNotificationDELETEAction',));
  1583.                     if (!in_array($requestMethod, ['DELETE'])) {
  1584.                         $allow array_merge($allow, ['DELETE']);
  1585.                         goto not_user_has_notification_delete_uuid;
  1586.                     }
  1587.                     return $ret;
  1588.                 }
  1589.                 not_user_has_notification_delete_uuid:
  1590.                 // user_has_residential_get_uuid
  1591.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/residential/(?P<residential_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1592.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_residential_get_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasResidentialController::userHasResidentialGETAction',));
  1593.                     if (!in_array($canonicalMethod, ['GET'])) {
  1594.                         $allow array_merge($allow, ['GET']);
  1595.                         goto not_user_has_residential_get_uuid;
  1596.                     }
  1597.                     return $ret;
  1598.                 }
  1599.                 not_user_has_residential_get_uuid:
  1600.                 // user_has_residential_post_uuid
  1601.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/residential/(?P<residential_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1602.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_residential_post_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasResidentialController::userHasResidentialPOSTAction',));
  1603.                     if (!in_array($requestMethod, ['POST'])) {
  1604.                         $allow array_merge($allow, ['POST']);
  1605.                         goto not_user_has_residential_post_uuid;
  1606.                     }
  1607.                     return $ret;
  1608.                 }
  1609.                 not_user_has_residential_post_uuid:
  1610.                 // user_has_residential_put_uuid
  1611.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/residential/(?P<residential_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1612.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_residential_put_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasResidentialController::userHasResidentialPUTAction',));
  1613.                     if (!in_array($requestMethod, ['PUT'])) {
  1614.                         $allow array_merge($allow, ['PUT']);
  1615.                         goto not_user_has_residential_put_uuid;
  1616.                     }
  1617.                     return $ret;
  1618.                 }
  1619.                 not_user_has_residential_put_uuid:
  1620.                 // user_has_residential_delete_uuid
  1621.                 if (preg_match('#^/user/(?P<user_uuid>[^/]++)/residential/(?P<residential_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  1622.                     $ret $this->mergeDefaults(array_replace($hostMatches$matches, ['_route' => 'user_has_residential_delete_uuid']), array (  '_controller' => 'Hona\\ApiBundle\\Controller\\UserHasResidentialController::userHasResidentialDELETEAction',));
  1623.                     if (!in_array($requestMethod, ['DELETE'])) {
  1624.                         $allow array_merge($allow, ['DELETE']);
  1625.                         goto not_user_has_residential_delete_uuid;
  1626.                     }
  1627.                     return $ret;
  1628.                 }
  1629.                 not_user_has_residential_delete_uuid:
  1630.             }
  1631.         }
  1632.         if (preg_match('#^web\\.unda\\.co$#sDi'$host$hostMatches)) {
  1633.             // index_web
  1634.             if ('' === $trimmedPathinfo) {
  1635.                 $ret = array (  '_controller' => 'Hona\\WebBundle\\Controller\\DefaultController::indexAction',  '_route' => 'index_web',);
  1636.                 if ('/' === substr($pathinfo, -1)) {
  1637.                     // no-op
  1638.                 } elseif ('GET' !== $canonicalMethod) {
  1639.                     goto not_index_web;
  1640.                 } else {
  1641.                     return array_replace($ret$this->redirect($rawPathinfo.'/''index_web'));
  1642.                 }
  1643.                 return $ret;
  1644.             }
  1645.             not_index_web:
  1646.             if (=== strpos($pathinfo'/event')) {
  1647.                 // event_register
  1648.                 if (preg_match('#^/event/(?P<uuid>[^/]++)/register$#sD'$pathinfo$matches)) {
  1649.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'event_register']), array (  '_controller' => 'Hona\\WebBundle\\Controller\\EventController::eventRegisterAction',));
  1650.                 }
  1651.                 // event_register_success
  1652.                 if ('/event/register/success' === $pathinfo) {
  1653.                     return array (  '_controller' => 'Hona\\WebBundle\\Controller\\EventController::eventRegisterSuccessAction',  '_route' => 'event_register_success',);
  1654.                 }
  1655.             }
  1656.             elseif (=== strpos($pathinfo'/user')) {
  1657.                 // user_confirm
  1658.                 if ('/user/confirm' === $pathinfo) {
  1659.                     return array (  '_controller' => 'Hona\\WebBundle\\Controller\\UserController::userConfirmAction',  '_route' => 'user_confirm',);
  1660.                 }
  1661.                 if (=== strpos($pathinfo'/user/reset')) {
  1662.                     // user_reset
  1663.                     if ('/user/reset' === $pathinfo) {
  1664.                         return array (  '_controller' => 'Hona\\WebBundle\\Controller\\UserController::userResetPasswordAction',  '_route' => 'user_reset',);
  1665.                     }
  1666.                     // user_reset_success
  1667.                     if ('/user/reset/success' === $pathinfo) {
  1668.                         return array (  '_controller' => 'Hona\\WebBundle\\Controller\\UserController::userResetSuccessAction',  '_route' => 'user_reset_success',);
  1669.                     }
  1670.                     // user_reset_invalid_token
  1671.                     if ('/user/reset/invalid' === $pathinfo) {
  1672.                         return array (  '_controller' => 'Hona\\WebBundle\\Controller\\UserController::userResetInvalidTokenAction',  '_route' => 'user_reset_invalid_token',);
  1673.                     }
  1674.                 }
  1675.                 elseif (=== strpos($pathinfo'/user/success')) {
  1676.                     // user_success
  1677.                     if ('/user/success' === $pathinfo) {
  1678.                         return array (  '_controller' => 'Hona\\WebBundle\\Controller\\UserController::userCreatedSuccessAction',  '_route' => 'user_success',);
  1679.                     }
  1680.                     // user_success_app
  1681.                     if ('/user/success/app' === $pathinfo) {
  1682.                         return array (  '_controller' => 'Hona\\WebBundle\\Controller\\UserController::userCreatedSuccessAppAction',  '_route' => 'user_success_app',);
  1683.                     }
  1684.                 }
  1685.                 // user_email_success
  1686.                 if ('/user/email/success' === $pathinfo) {
  1687.                     return array (  '_controller' => 'Hona\\WebBundle\\Controller\\UserController::userEmailSuccessAction',  '_route' => 'user_email_success',);
  1688.                 }
  1689.                 // user_invalid_token
  1690.                 if ('/user/invalid' === $pathinfo) {
  1691.                     return array (  '_controller' => 'Hona\\WebBundle\\Controller\\UserController::userInvalidTokenAction',  '_route' => 'user_invalid_token',);
  1692.                 }
  1693.             }
  1694.         }
  1695.         if (preg_match('#^unda\\.co$#sDi'$host$hostMatches)) {
  1696.             // index
  1697.             if ('' === $trimmedPathinfo) {
  1698.                 $ret = array (  '_controller' => 'Hona\\LandingBundle\\Controller\\DefaultController::indexAction',  '_route' => 'index',);
  1699.                 if ('/' === substr($pathinfo, -1)) {
  1700.                     // no-op
  1701.                 } elseif ('GET' !== $canonicalMethod) {
  1702.                     goto not_index;
  1703.                 } else {
  1704.                     return array_replace($ret$this->redirect($rawPathinfo.'/''index'));
  1705.                 }
  1706.                 return $ret;
  1707.             }
  1708.             not_index:
  1709.         }
  1710.         // homepage
  1711.         if ('' === $trimmedPathinfo) {
  1712.             $ret = array (  '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction',  '_route' => 'homepage',);
  1713.             if ('/' === substr($pathinfo, -1)) {
  1714.                 // no-op
  1715.             } elseif ('GET' !== $canonicalMethod) {
  1716.                 goto not_homepage;
  1717.             } else {
  1718.                 return array_replace($ret$this->redirect($rawPathinfo.'/''homepage'));
  1719.             }
  1720.             return $ret;
  1721.         }
  1722.         not_homepage:
  1723.         if ('/' === $pathinfo && !$allow) {
  1724.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  1725.         }
  1726.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  1727.     }
  1728. }