<?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 srcDevDebugProjectContainerUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
{
public function __construct(RequestContext $context)
{
$this->context = $context;
}
public function match($rawPathinfo)
{
$allow = array();
$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, '/api')) {
if (0 === strpos($pathinfo, '/api/postcard/create')) {
// app_api_createpostcard
if (preg_match('#^/api/postcard/create/(?P<uniqueID>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_api_createpostcard')), array ( '_controller' => 'App\\Controller\\ApiController::createPostCard',));
}
// app_api_createpostcard_1
if (preg_match('#^/api/postcard/create/(?P<path>[^/]++)/(?P<uniqueID>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_api_createpostcard_1')), array ( 'path' => NULL, '_controller' => 'App\\Controller\\ApiController::createPostCard',));
}
}
// app_api_getpreview
if ('/api/get_preview/' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ApiController::getPreview', '_route' => 'app_api_getpreview',);
if (!in_array($requestMethod, array('POST'))) {
$allow = array_merge($allow, array('POST'));
goto not_app_api_getpreview;
}
return $ret;
}
not_app_api_getpreview:
// app_api_getlayout
if (0 === strpos($pathinfo, '/api/getTemplates') && preg_match('#^/api/getTemplates/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, array('_route' => 'app_api_getlayout')), array ( '_controller' => 'App\\Controller\\ApiController::getLayout',));
if (!in_array($canonicalMethod, array('GET'))) {
$allow = array_merge($allow, array('GET'));
goto not_app_api_getlayout;
}
return $ret;
}
not_app_api_getlayout:
// app_api_getstatus
if (0 === strpos($pathinfo, '/api/status') && preg_match('#^/api/status/(?P<cardKey>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_api_getstatus')), array ( '_controller' => 'App\\Controller\\ApiController::getStatus',));
}
// app_api_savetofirebase
if ('/api/send/' === $pathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ApiController::saveToFireBase', '_route' => 'app_api_savetofirebase',);
if (!in_array($requestMethod, array('POST', 'OPTIONS'))) {
$allow = array_merge($allow, array('POST', 'OPTIONS'));
goto not_app_api_savetofirebase;
}
return $ret;
}
not_app_api_savetofirebase:
// app_api_getquota
if ('/api/quota' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ApiController::getQuota', '_route' => 'app_api_getquota',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_api_getquota;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_api_getquota'));
}
return $ret;
}
not_app_api_getquota:
// app_api_getonlinedays
if ('/api/days' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ApiController::getOnlineDays', '_route' => 'app_api_getonlinedays',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_api_getonlinedays;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_api_getonlinedays'));
}
return $ret;
}
not_app_api_getonlinedays:
// app_api_getapimode
if ('/api/mode' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\ApiController::getAPIMode', '_route' => 'app_api_getapimode',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_api_getapimode;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_api_getapimode'));
}
return $ret;
}
not_app_api_getapimode:
}
elseif (0 === strpos($pathinfo, '/backend')) {
if (0 === strpos($pathinfo, '/backend/rhema')) {
// app_backend_rhemalist
if ('/backend/rhema/list' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackendController::rhemaListAction', '_route' => 'app_backend_rhemalist',);
}
// app_backend_rhemanewsletteremaildownload
if ('/backend/rhema/newsletter/emails' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackendController::rhemaNewsletterEmailDownload', '_route' => 'app_backend_rhemanewsletteremaildownload',);
}
// app_backend_rhemacompetitionemaildownload
if ('/backend/rhema/competition/emails' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\BackendController::rhemaCompetitionEmailDownload', '_route' => 'app_backend_rhemacompetitionemaildownload',);
}
}
elseif (0 === strpos($pathinfo, '/backend/img')) {
// app_backend_serveimg
if (preg_match('#^/backend/img/(?P<name>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backend_serveimg')), array ( '_controller' => 'App\\Controller\\BackendController::serveImg',));
}
// app_backend_serveimg_1
if (preg_match('#^/backend/img/(?P<path>[^/]++)/(?P<name>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backend_serveimg_1')), array ( 'path' => NULL, '_controller' => 'App\\Controller\\BackendController::serveImg',));
}
}
// app_backend_backend
if ('/backend' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\BackendController::backendAction', '_route' => 'app_backend_backend',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_backend_backend;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_backend_backend'));
}
return $ret;
}
not_app_backend_backend:
}
// app_redirect_redirect_to_front
if (0 === strpos($pathinfo, '/share') && preg_match('#^/share/(?P<image_uuid>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_redirect_redirect_to_front')), array ( '_controller' => 'App\\Controller\\RedirectController::redirect_to_front',));
}
if (0 === strpos($pathinfo, '/img')) {
// app_redirect_getpregeneratedimage
if (preg_match('#^/img/(?P<layout>[^/\\-]++)\\-Postkarte(?P<motive>[^/\\.]++)\\.jpeg$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_redirect_getpregeneratedimage')), array ( '_controller' => 'App\\Controller\\RedirectController::getPreGeneratedImage',));
}
// app_redirect_getpregeneratedimage_1
if (preg_match('#^/img/(?P<layout>[^/\\-]++)\\-Postkarte(?P<motive>[^/\\.]++)\\.jpg$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_redirect_getpregeneratedimage_1')), array ( '_controller' => 'App\\Controller\\RedirectController::getPreGeneratedImage',));
}
// app_redirect_img
if (preg_match('#^/img/(?P<uniqueID>[^/\\.]++)\\.(?P<extension>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_redirect_img')), array ( '_controller' => 'App\\Controller\\RedirectController::img',));
}
}
elseif (0 === strpos($pathinfo, '/_')) {
// _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, array('_route' => '_twig_error_test')), array ( '_controller' => 'twig.controller.preview_error:previewErrorPageAction', '_format' => 'html',));
}
// _wdt
if (0 === strpos($pathinfo, '/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_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, array('_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, array('_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, array('_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, array('_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, array('_route' => '_profiler_exception_css')), array ( '_controller' => 'web_profiler.controller.exception:cssAction',));
}
}
}
if ('/' === $pathinfo && !$allow) {
throw new Symfony\Component\Routing\Exception\NoConfigurationException();
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}