<?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* appDevDebugProjectContainerUrlMatcher.
*
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class appDevDebugProjectContainerUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
{
/**
* Constructor.
*/
public function __construct(RequestContext $context)
{
$this->context = $context;
}
public function match($pathinfo)
{
$allow = array();
$pathinfo = rawurldecode($pathinfo);
$context = $this->context;
$request = $this->request;
if (0 === strpos($pathinfo, '/_')) {
// _wdt
if (0 === strpos($pathinfo, '/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#s', $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 (rtrim($pathinfo, '/') === '/_profiler') {
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($pathinfo.'/', '_profiler_home');
}
return array ( '_controller' => 'web_profiler.controller.profiler:homeAction', '_route' => '_profiler_home',);
}
if (0 === strpos($pathinfo, '/_profiler/search')) {
// _profiler_search
if ($pathinfo === '/_profiler/search') {
return array ( '_controller' => 'web_profiler.controller.profiler:searchAction', '_route' => '_profiler_search',);
}
// _profiler_search_bar
if ($pathinfo === '/_profiler/search_bar') {
return array ( '_controller' => 'web_profiler.controller.profiler:searchBarAction', '_route' => '_profiler_search_bar',);
}
}
// _profiler_info
if (0 === strpos($pathinfo, '/_profiler/info') && preg_match('#^/_profiler/info/(?P<about>[^/]++)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_info')), array ( '_controller' => 'web_profiler.controller.profiler:infoAction',));
}
// _profiler_phpinfo
if ($pathinfo === '/_profiler/phpinfo') {
return array ( '_controller' => 'web_profiler.controller.profiler:phpinfoAction', '_route' => '_profiler_phpinfo',);
}
// _profiler_search_results
if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_search_results')), array ( '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
}
// _profiler_open_file
if ($pathinfo === '/_profiler/open') {
return array ( '_controller' => 'web_profiler.controller.profiler:openAction', '_route' => '_profiler_open_file',);
}
// _profiler
if (preg_match('#^/_profiler/(?P<token>[^/]++)$#s', $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$#s', $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$#s', $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$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_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>[^/]++))?$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_twig_error_test')), array ( '_controller' => 'twig.controller.preview_error:previewErrorPageAction', '_format' => 'html',));
}
}
// admin-speisekarte
if ($pathinfo === '/admin-speisekarte') {
return array ( '_controller' => 'AppBundle\\Controller\\AdminSpeisekarteController::speisekarteAction', '_route' => 'admin-speisekarte',);
}
// delete-speisekarte
if ($pathinfo === '/delete-speisekarte') {
return array ( '_controller' => 'AppBundle\\Controller\\AdminSpeisekarteController::deleteSpeisekarteAction', '_route' => 'delete-speisekarte',);
}
// aktionen
if ($pathinfo === '/aktionen') {
return array ( '_controller' => 'AppBundle\\Controller\\AktionenController::aktionenAction', '_route' => 'aktionen',);
}
// bahnbestellung
if ($pathinfo === '/bahnbestellung') {
return array ( '_controller' => 'AppBundle\\Controller\\BahnbestellungController::bahnbestellungAction', '_route' => 'bahnbestellung',);
}
if (0 === strpos($pathinfo, '/del-')) {
// del-bahnbestellung
if (0 === strpos($pathinfo, '/del-bahnbestellung') && preg_match('#^/del\\-bahnbestellung/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'del-bahnbestellung')), array ( '_controller' => 'AppBundle\\Controller\\BahnbestellungController::delBahnbestellungAction',));
}
// del-group-bahnbestellung
if (0 === strpos($pathinfo, '/del-group-bahnbestellung') && preg_match('#^/del\\-group\\-bahnbestellung/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'del-group-bahnbestellung')), array ( '_controller' => 'AppBundle\\Controller\\BahnbestellungController::delGroupBahnbestellungAction',));
}
}
// get-group-bahnbestellung
if (0 === strpos($pathinfo, '/get-group-bahnbestellung') && preg_match('#^/get\\-group\\-bahnbestellung/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'get-group-bahnbestellung')), array ( '_controller' => 'AppBundle\\Controller\\BahnbestellungController::getGroupBahnbestellungen',));
}
// home
if (rtrim($pathinfo, '/') === '') {
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($pathinfo.'/', 'home');
}
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction', '_route' => 'home',);
}
// fotogalerie
if ($pathinfo === '/fotogalerie') {
return array ( '_controller' => 'AppBundle\\Controller\\FotogalerieController::fotogalerieAction', '_route' => 'fotogalerie',);
}
// impressum
if ($pathinfo === '/impressum') {
return array ( '_controller' => 'AppBundle\\Controller\\ImpressumController::impressumAction', '_route' => 'impressum',);
}
// kontakt
if ($pathinfo === '/kontakt') {
return array ( '_controller' => 'AppBundle\\Controller\\KontaktController::kontaktAction', '_route' => 'kontakt',);
}
// speisekarte
if ($pathinfo === '/speisekarte') {
return array ( '_controller' => 'AppBundle\\Controller\\SpeisekarteController::speisekarteAction', '_route' => 'speisekarte',);
}
// tischreservierung
if ($pathinfo === '/tischreservierung') {
return array ( '_controller' => 'AppBundle\\Controller\\TischreservierungController::TischreservierungAction', '_route' => 'tischreservierung',);
}
// ueber-uns
if ($pathinfo === '/ueber-uns') {
return array ( '_controller' => 'AppBundle\\Controller\\UeberUnsController::ueberUnsAction', '_route' => 'ueber-uns',);
}
if (0 === strpos($pathinfo, '/log')) {
if (0 === strpos($pathinfo, '/login')) {
// fos_user_security_login
if ($pathinfo === '/login') {
if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
goto not_fos_user_security_login;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::loginAction', '_route' => 'fos_user_security_login',);
}
not_fos_user_security_login:
// fos_user_security_check
if ($pathinfo === '/login_check') {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_fos_user_security_check;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::checkAction', '_route' => 'fos_user_security_check',);
}
not_fos_user_security_check:
}
// fos_user_security_logout
if ($pathinfo === '/logout') {
if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
goto not_fos_user_security_logout;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::logoutAction', '_route' => 'fos_user_security_logout',);
}
not_fos_user_security_logout:
}
if (0 === strpos($pathinfo, '/profile')) {
// fos_user_profile_show
if (rtrim($pathinfo, '/') === '/profile') {
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'HEAD'));
goto not_fos_user_profile_show;
}
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($pathinfo.'/', 'fos_user_profile_show');
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::showAction', '_route' => 'fos_user_profile_show',);
}
not_fos_user_profile_show:
// fos_user_profile_edit
if ($pathinfo === '/profile/edit') {
if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
goto not_fos_user_profile_edit;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::editAction', '_route' => 'fos_user_profile_edit',);
}
not_fos_user_profile_edit:
}
if (0 === strpos($pathinfo, '/re')) {
if (0 === strpos($pathinfo, '/register')) {
// fos_user_registration_register
if (rtrim($pathinfo, '/') === '/register') {
if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
goto not_fos_user_registration_register;
}
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($pathinfo.'/', 'fos_user_registration_register');
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::registerAction', '_route' => 'fos_user_registration_register',);
}
not_fos_user_registration_register:
if (0 === strpos($pathinfo, '/register/c')) {
// fos_user_registration_check_email
if ($pathinfo === '/register/check-email') {
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'HEAD'));
goto not_fos_user_registration_check_email;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::checkEmailAction', '_route' => 'fos_user_registration_check_email',);
}
not_fos_user_registration_check_email:
if (0 === strpos($pathinfo, '/register/confirm')) {
// fos_user_registration_confirm
if (preg_match('#^/register/confirm/(?P<token>[^/]++)$#s', $pathinfo, $matches)) {
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'HEAD'));
goto not_fos_user_registration_confirm;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_registration_confirm')), array ( '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::confirmAction',));
}
not_fos_user_registration_confirm:
// fos_user_registration_confirmed
if ($pathinfo === '/register/confirmed') {
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'HEAD'));
goto not_fos_user_registration_confirmed;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::confirmedAction', '_route' => 'fos_user_registration_confirmed',);
}
not_fos_user_registration_confirmed:
}
}
}
if (0 === strpos($pathinfo, '/resetting')) {
// fos_user_resetting_request
if ($pathinfo === '/resetting/request') {
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'HEAD'));
goto not_fos_user_resetting_request;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::requestAction', '_route' => 'fos_user_resetting_request',);
}
not_fos_user_resetting_request:
// fos_user_resetting_send_email
if ($pathinfo === '/resetting/send-email') {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_fos_user_resetting_send_email;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::sendEmailAction', '_route' => 'fos_user_resetting_send_email',);
}
not_fos_user_resetting_send_email:
// fos_user_resetting_check_email
if ($pathinfo === '/resetting/check-email') {
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'HEAD'));
goto not_fos_user_resetting_check_email;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::checkEmailAction', '_route' => 'fos_user_resetting_check_email',);
}
not_fos_user_resetting_check_email:
// fos_user_resetting_reset
if (0 === strpos($pathinfo, '/resetting/reset') && preg_match('#^/resetting/reset/(?P<token>[^/]++)$#s', $pathinfo, $matches)) {
if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
goto not_fos_user_resetting_reset;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_resetting_reset')), array ( '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::resetAction',));
}
not_fos_user_resetting_reset:
}
}
// fos_user_change_password
if ($pathinfo === '/profile/change-password') {
if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
goto not_fos_user_change_password;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ChangePasswordController::changePasswordAction', '_route' => 'fos_user_change_password',);
}
not_fos_user_change_password:
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}