var/cache/dev/appDevDebugProjectContainerUrlMatcher.php line 352

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.         // cron
  90.         if ('/cron' === $pathinfo) {
  91.             return array (  '_controller' => 'AppBundle\\Controller\\CronController::cronAction',  '_route' => 'cron',);
  92.         }
  93.         if (=== strpos($pathinfo'/send')) {
  94.             // sendcert
  95.             if ('/sendcert' === $pathinfo) {
  96.                 return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::sendcertAction',  '_route' => 'sendcert',);
  97.             }
  98.             // sendtest
  99.             if ('/sendtest' === $pathinfo) {
  100.                 return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::sendtestAction',  '_route' => 'sendtest',);
  101.             }
  102.             // sendm
  103.             if ('/sendm' === $pathinfo) {
  104.                 return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::sendmAction',  '_route' => 'sendm',);
  105.             }
  106.         }
  107.         elseif (=== strpos($pathinfo'/smshook')) {
  108.             // smshook-index
  109.             if ('/smshook' === $trimmedPathinfo) {
  110.                 $ret = array (  '_controller' => 'AppBundle\\Controller\\SMSController::indexAction',  '_route' => 'smshook-index',);
  111.                 if ('/' === substr($pathinfo, -1)) {
  112.                     // no-op
  113.                 } elseif ('GET' !== $canonicalMethod) {
  114.                     goto not_smshookindex;
  115.                 } else {
  116.                     return array_replace($ret$this->redirect($rawPathinfo.'/''smshook-index'));
  117.                 }
  118.                 return $ret;
  119.             }
  120.             not_smshookindex:
  121.             // smshook-text
  122.             if ('/smshook/text' === $pathinfo) {
  123.                 return array (  '_controller' => 'AppBundle\\Controller\\SMSController::textAction',  '_route' => 'smshook-text',);
  124.             }
  125.         }
  126.         // post
  127.         if ('/post' === $pathinfo) {
  128.             return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::postAction',  '_route' => 'post',);
  129.         }
  130.         // mailthing
  131.         if ('/mailthing' === $pathinfo) {
  132.             return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction',  '_route' => 'mailthing',);
  133.         }
  134.         if (=== strpos($pathinfo'/artefacts')) {
  135.             // artefacts-recording-events
  136.             if ('/artefacts/recording-events' === $pathinfo) {
  137.                 return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::recordingEventAction',  '_route' => 'artefacts-recording-events',);
  138.             }
  139.             // artefacts-dial-status-events
  140.             if ('/artefacts/dial-status-events' === $pathinfo) {
  141.                 return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::dialEventAction',  '_route' => 'artefacts-dial-status-events',);
  142.             }
  143.             if (=== strpos($pathinfo'/artefacts/call')) {
  144.                 // artefacts-call-status-events
  145.                 if ('/artefacts/call-status-events' === $pathinfo) {
  146.                     return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::callEventAction',  '_route' => 'artefacts-call-status-events',);
  147.                 }
  148.                 // artefacts-call
  149.                 if ('/artefacts/call' === $pathinfo) {
  150.                     return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::callAction',  '_route' => 'artefacts-call',);
  151.                 }
  152.             }
  153.             // app_default_holdmusic
  154.             if ('/artefacts/hold-music' === $pathinfo) {
  155.                 return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::holdMusicAction',  '_route' => 'app_default_holdmusic',);
  156.             }
  157.             if (=== strpos($pathinfo'/artefacts/agent')) {
  158.                 // app_default_agentholdmusic
  159.                 if ('/artefacts/agent-hold-music' === $pathinfo) {
  160.                     return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::agentHoldMusicAction',  '_route' => 'app_default_agentholdmusic',);
  161.                 }
  162.                 // app_default_agent
  163.                 if ('/artefacts/agent' === $pathinfo) {
  164.                     return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::agentAction',  '_route' => 'app_default_agent',);
  165.                 }
  166.             }
  167.         }
  168.         // index
  169.         if ('' === $trimmedPathinfo) {
  170.             $ret = array (  '_controller' => 'AppBundle\\Controller\\GenericController::indexAction',  '_route' => 'index',);
  171.             if ('/' === substr($pathinfo, -1)) {
  172.                 // no-op
  173.             } elseif ('GET' !== $canonicalMethod) {
  174.                 goto not_index;
  175.             } else {
  176.                 return array_replace($ret$this->redirect($rawPathinfo.'/''index'));
  177.             }
  178.             return $ret;
  179.         }
  180.         not_index:
  181.         if (=== strpos($pathinfo'/generic')) {
  182.             if (=== strpos($pathinfo'/generic/call')) {
  183.                 // generic-call
  184.                 if ('/generic/call' === $pathinfo) {
  185.                     return array (  '_controller' => 'AppBundle\\Controller\\GenericController::callAction',  '_route' => 'generic-call',);
  186.                 }
  187.                 // generic-call-status-events
  188.                 if ('/generic/call-status-events' === $pathinfo) {
  189.                     return array (  '_controller' => 'AppBundle\\Controller\\GenericController::callEventAction',  '_route' => 'generic-call-status-events',);
  190.                 }
  191.             }
  192.             // generic-recording-events
  193.             if ('/generic/recording-events' === $pathinfo) {
  194.                 return array (  '_controller' => 'AppBundle\\Controller\\GenericController::recordingEventAction',  '_route' => 'generic-recording-events',);
  195.             }
  196.             // generic-dial-status-events
  197.             if ('/generic/dial-status-events' === $pathinfo) {
  198.                 return array (  '_controller' => 'AppBundle\\Controller\\GenericController::dialEventAction',  '_route' => 'generic-dial-status-events',);
  199.             }
  200.             // app_generic_holdmusic
  201.             if ('/generic/hold-music' === $pathinfo) {
  202.                 return array (  '_controller' => 'AppBundle\\Controller\\GenericController::holdMusicAction',  '_route' => 'app_generic_holdmusic',);
  203.             }
  204.             if (=== strpos($pathinfo'/generic/agent')) {
  205.                 // app_generic_agentholdmusic
  206.                 if ('/generic/agent-hold-music' === $pathinfo) {
  207.                     return array (  '_controller' => 'AppBundle\\Controller\\GenericController::agentHoldMusicAction',  '_route' => 'app_generic_agentholdmusic',);
  208.                 }
  209.                 // app_generic_agent
  210.                 if ('/generic/agent' === $pathinfo) {
  211.                     return array (  '_controller' => 'AppBundle\\Controller\\GenericController::agentAction',  '_route' => 'app_generic_agent',);
  212.                 }
  213.             }
  214.             // generic-text
  215.             if ('/generic/text' === $pathinfo) {
  216.                 return array (  '_controller' => 'AppBundle\\Controller\\GenericController::textAction',  '_route' => 'generic-text',);
  217.             }
  218.         }
  219.         // whatsapp-message
  220.         if ('/whatsapp/message' === $pathinfo) {
  221.             return array (  '_controller' => 'AppBundle\\Controller\\SMSController::messageAction',  '_route' => 'whatsapp-message',);
  222.         }
  223.         // whatsapp-events
  224.         if ('/whatsapp/events' === $pathinfo) {
  225.             return array (  '_controller' => 'AppBundle\\Controller\\SMSController::whatsappEventAction',  '_route' => 'whatsapp-events',);
  226.         }
  227.         if (=== strpos($pathinfo'/twilio')) {
  228.             // twilio-index
  229.             if ('/twilio' === $trimmedPathinfo) {
  230.                 $ret = array (  '_controller' => 'AppBundle\\Controller\\TwilioController::indexAction',  '_route' => 'twilio-index',);
  231.                 if ('/' === substr($pathinfo, -1)) {
  232.                     // no-op
  233.                 } elseif ('GET' !== $canonicalMethod) {
  234.                     goto not_twilioindex;
  235.                 } else {
  236.                     return array_replace($ret$this->redirect($rawPathinfo.'/''twilio-index'));
  237.                 }
  238.                 return $ret;
  239.             }
  240.             not_twilioindex:
  241.             // twilio-recording-events
  242.             if ('/twilio/recording-events' === $pathinfo) {
  243.                 return array (  '_controller' => 'AppBundle\\Controller\\TwilioController::recordingEventAction',  '_route' => 'twilio-recording-events',);
  244.             }
  245.             // twilio-dial-status-events
  246.             if ('/twilio/dial-status-events' === $pathinfo) {
  247.                 return array (  '_controller' => 'AppBundle\\Controller\\TwilioController::dialEventAction',  '_route' => 'twilio-dial-status-events',);
  248.             }
  249.             if (=== strpos($pathinfo'/twilio/call')) {
  250.                 // twilio-call-status-events
  251.                 if ('/twilio/call-status-events' === $pathinfo) {
  252.                     return array (  '_controller' => 'AppBundle\\Controller\\TwilioController::callEventAction',  '_route' => 'twilio-call-status-events',);
  253.                 }
  254.                 // twilio-call
  255.                 if ('/twilio/call' === $pathinfo) {
  256.                     return array (  '_controller' => 'AppBundle\\Controller\\TwilioController::callAction',  '_route' => 'twilio-call',);
  257.                 }
  258.             }
  259.             // app_twilio_holdmusic
  260.             if ('/twilio/hold-music' === $pathinfo) {
  261.                 return array (  '_controller' => 'AppBundle\\Controller\\TwilioController::holdMusicAction',  '_route' => 'app_twilio_holdmusic',);
  262.             }
  263.             if (=== strpos($pathinfo'/twilio/agent')) {
  264.                 // app_twilio_agentholdmusic
  265.                 if ('/twilio/agent-hold-music' === $pathinfo) {
  266.                     return array (  '_controller' => 'AppBundle\\Controller\\TwilioController::agentHoldMusicAction',  '_route' => 'app_twilio_agentholdmusic',);
  267.                 }
  268.                 // app_twilio_agent
  269.                 if ('/twilio/agent' === $pathinfo) {
  270.                     return array (  '_controller' => 'AppBundle\\Controller\\TwilioController::agentAction',  '_route' => 'app_twilio_agent',);
  271.                 }
  272.             }
  273.             // twilio-batphone
  274.             if ('/twilio/batphone' === $pathinfo) {
  275.                 return array (  '_controller' => 'AppBundle\\Controller\\TwilioController::batAction',  '_route' => 'twilio-batphone',);
  276.             }
  277.         }
  278.         if ('/' === $pathinfo && !$allow) {
  279.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  280.         }
  281.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  282.     }
  283. }