<?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class appDevDebugProjectContainerUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
{
public function __construct(RequestContext $context)
{
$this->context = $context;
}
public function match($rawPathinfo)
{
$allow = [];
$pathinfo = rawurldecode($rawPathinfo);
$trimmedPathinfo = rtrim($pathinfo, '/');
$context = $this->context;
$request = $this->request ?: $this->createRequest($pathinfo);
$requestMethod = $canonicalMethod = $context->getMethod();
if ('HEAD' === $requestMethod) {
$canonicalMethod = 'GET';
}
if (0 === strpos($pathinfo, '/_')) {
// _wdt
if (0 === strpos($pathinfo, '/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_wdt']), array ( '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
}
if (0 === strpos($pathinfo, '/_profiler')) {
// _profiler_home
if ('/_profiler' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'web_profiler.controller.profiler:homeAction', '_route' => '_profiler_home',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not__profiler_home;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', '_profiler_home'));
}
return $ret;
}
not__profiler_home:
if (0 === strpos($pathinfo, '/_profiler/search')) {
// _profiler_search
if ('/_profiler/search' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:searchAction', '_route' => '_profiler_search',);
}
// _profiler_search_bar
if ('/_profiler/search_bar' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:searchBarAction', '_route' => '_profiler_search_bar',);
}
}
// _profiler_phpinfo
if ('/_profiler/phpinfo' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:phpinfoAction', '_route' => '_profiler_phpinfo',);
}
// _profiler_search_results
if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_search_results']), array ( '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
}
// _profiler_open_file
if ('/_profiler/open' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:openAction', '_route' => '_profiler_open_file',);
}
// _profiler
if (preg_match('#^/_profiler/(?P<token>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler']), array ( '_controller' => 'web_profiler.controller.profiler:panelAction',));
}
// _profiler_router
if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_router']), array ( '_controller' => 'web_profiler.controller.router:panelAction',));
}
// _profiler_exception
if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_exception']), array ( '_controller' => 'web_profiler.controller.exception:showAction',));
}
// _profiler_exception_css
if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_exception_css']), array ( '_controller' => 'web_profiler.controller.exception:cssAction',));
}
}
// _twig_error_test
if (0 === strpos($pathinfo, '/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_twig_error_test']), array ( '_controller' => 'twig.controller.preview_error:previewErrorPageAction', '_format' => 'html',));
}
}
// cron
if ('/cron' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\CronController::cronAction', '_route' => 'cron',);
}
if (0 === strpos($pathinfo, '/send')) {
// sendcert
if ('/sendcert' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::sendcertAction', '_route' => 'sendcert',);
}
// sendtest
if ('/sendtest' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::sendtestAction', '_route' => 'sendtest',);
}
// sendm
if ('/sendm' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::sendmAction', '_route' => 'sendm',);
}
}
elseif (0 === strpos($pathinfo, '/smshook')) {
// smshook-index
if ('/smshook' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SMSController::indexAction', '_route' => 'smshook-index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_smshookindex;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'smshook-index'));
}
return $ret;
}
not_smshookindex:
// smshook-text
if ('/smshook/text' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\SMSController::textAction', '_route' => 'smshook-text',);
}
}
// post
if ('/post' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::postAction', '_route' => 'post',);
}
// mailthing
if ('/mailthing' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction', '_route' => 'mailthing',);
}
if (0 === strpos($pathinfo, '/artefacts')) {
// artefacts-recording-events
if ('/artefacts/recording-events' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::recordingEventAction', '_route' => 'artefacts-recording-events',);
}
// artefacts-dial-status-events
if ('/artefacts/dial-status-events' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::dialEventAction', '_route' => 'artefacts-dial-status-events',);
}
if (0 === strpos($pathinfo, '/artefacts/call')) {
// artefacts-call-status-events
if ('/artefacts/call-status-events' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::callEventAction', '_route' => 'artefacts-call-status-events',);
}
// artefacts-call
if ('/artefacts/call' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::callAction', '_route' => 'artefacts-call',);
}
}
// app_default_holdmusic
if ('/artefacts/hold-music' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::holdMusicAction', '_route' => 'app_default_holdmusic',);
}
if (0 === strpos($pathinfo, '/artefacts/agent')) {
// app_default_agentholdmusic
if ('/artefacts/agent-hold-music' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::agentHoldMusicAction', '_route' => 'app_default_agentholdmusic',);
}
// app_default_agent
if ('/artefacts/agent' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::agentAction', '_route' => 'app_default_agent',);
}
}
}
// index
if ('' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\GenericController::indexAction', '_route' => 'index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'index'));
}
return $ret;
}
not_index:
if (0 === strpos($pathinfo, '/generic')) {
if (0 === strpos($pathinfo, '/generic/call')) {
// generic-call
if ('/generic/call' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\GenericController::callAction', '_route' => 'generic-call',);
}
// generic-call-status-events
if ('/generic/call-status-events' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\GenericController::callEventAction', '_route' => 'generic-call-status-events',);
}
}
// generic-recording-events
if ('/generic/recording-events' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\GenericController::recordingEventAction', '_route' => 'generic-recording-events',);
}
// generic-dial-status-events
if ('/generic/dial-status-events' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\GenericController::dialEventAction', '_route' => 'generic-dial-status-events',);
}
// app_generic_holdmusic
if ('/generic/hold-music' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\GenericController::holdMusicAction', '_route' => 'app_generic_holdmusic',);
}
if (0 === strpos($pathinfo, '/generic/agent')) {
// app_generic_agentholdmusic
if ('/generic/agent-hold-music' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\GenericController::agentHoldMusicAction', '_route' => 'app_generic_agentholdmusic',);
}
// app_generic_agent
if ('/generic/agent' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\GenericController::agentAction', '_route' => 'app_generic_agent',);
}
}
// generic-text
if ('/generic/text' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\GenericController::textAction', '_route' => 'generic-text',);
}
}
// whatsapp-message
if ('/whatsapp/message' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\SMSController::messageAction', '_route' => 'whatsapp-message',);
}
// whatsapp-events
if ('/whatsapp/events' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\SMSController::whatsappEventAction', '_route' => 'whatsapp-events',);
}
if (0 === strpos($pathinfo, '/twilio')) {
// twilio-index
if ('/twilio' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\TwilioController::indexAction', '_route' => 'twilio-index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_twilioindex;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'twilio-index'));
}
return $ret;
}
not_twilioindex:
// twilio-recording-events
if ('/twilio/recording-events' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TwilioController::recordingEventAction', '_route' => 'twilio-recording-events',);
}
// twilio-dial-status-events
if ('/twilio/dial-status-events' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TwilioController::dialEventAction', '_route' => 'twilio-dial-status-events',);
}
if (0 === strpos($pathinfo, '/twilio/call')) {
// twilio-call-status-events
if ('/twilio/call-status-events' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TwilioController::callEventAction', '_route' => 'twilio-call-status-events',);
}
// twilio-call
if ('/twilio/call' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TwilioController::callAction', '_route' => 'twilio-call',);
}
}
// app_twilio_holdmusic
if ('/twilio/hold-music' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TwilioController::holdMusicAction', '_route' => 'app_twilio_holdmusic',);
}
if (0 === strpos($pathinfo, '/twilio/agent')) {
// app_twilio_agentholdmusic
if ('/twilio/agent-hold-music' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TwilioController::agentHoldMusicAction', '_route' => 'app_twilio_agentholdmusic',);
}
// app_twilio_agent
if ('/twilio/agent' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TwilioController::agentAction', '_route' => 'app_twilio_agent',);
}
}
// twilio-batphone
if ('/twilio/batphone' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TwilioController::batAction', '_route' => 'twilio-batphone',);
}
}
if ('/' === $pathinfo && !$allow) {
throw new Symfony\Component\Routing\Exception\NoConfigurationException();
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}