<?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 = array();
$pathinfo = rawurldecode($rawPathinfo);
$trimmedPathinfo = rtrim($pathinfo, '/');
$context = $this->context;
$request = $this->request;
$requestMethod = $canonicalMethod = $context->getMethod();
$scheme = $context->getScheme();
if ('HEAD' === $requestMethod) {
$canonicalMethod = 'GET';
}
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 ('/_profiler' === $trimmedPathinfo) {
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', '_profiler_home');
}
return array ( '_controller' => 'web_profiler.controller.profiler:homeAction', '_route' => '_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$#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 ('/_profiler/open' === $pathinfo) {
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',));
}
}
// nordpeis_calculator_form
if ('' === $trimmedPathinfo) {
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', 'nordpeis_calculator_form');
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::indexAction', '_route' => 'nordpeis_calculator_form',);
}
// nordpeis_calculator_fireplace
if ('/fireplace' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nordpeis_calculator_fireplace;
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::fireplaceAction', '_route' => 'nordpeis_calculator_fireplace',);
}
not_nordpeis_calculator_fireplace:
// nordpeis_calculator_floors
if ('/floors' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nordpeis_calculator_floors;
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::floorAction', '_route' => 'nordpeis_calculator_floors',);
}
not_nordpeis_calculator_floors:
// nordpeis_calculator_scheme
if ('/scheme' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nordpeis_calculator_scheme;
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::schemeAction', '_route' => 'nordpeis_calculator_scheme',);
}
not_nordpeis_calculator_scheme:
// nordpeis_calculator_show
if (0 === strpos($pathinfo, '/show') && preg_match('#^/show/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nordpeis_calculator_show;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'nordpeis_calculator_show')), array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::showAction',));
}
not_nordpeis_calculator_show:
if (0 === strpos($pathinfo, '/p')) {
if (0 === strpos($pathinfo, '/pipe')) {
// nordpeis_calculator_pipe
if ('/pipe' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nordpeis_calculator_pipe;
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::pipeAction', '_route' => 'nordpeis_calculator_pipe',);
}
not_nordpeis_calculator_pipe:
// nordpeis_calculator_pipehat
if ('/pipehat' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nordpeis_calculator_pipehat;
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::pipehatAction', '_route' => 'nordpeis_calculator_pipehat',);
}
not_nordpeis_calculator_pipehat:
}
// nordpeis_calculator_print
if (0 === strpos($pathinfo, '/print') && preg_match('#^/print/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nordpeis_calculator_print;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'nordpeis_calculator_print')), array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::printAction',));
}
not_nordpeis_calculator_print:
// nordpeis_calculator_pdf
if (0 === strpos($pathinfo, '/pdf') && preg_match('#^/pdf/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nordpeis_calculator_pdf;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'nordpeis_calculator_pdf')), array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::pdfAction',));
}
not_nordpeis_calculator_pdf:
// nordpeis_calculator_put_order
if ('/put-order' === $pathinfo) {
if ('PUT' !== $canonicalMethod) {
$allow[] = 'PUT';
goto not_nordpeis_calculator_put_order;
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::putOrderAction', '_route' => 'nordpeis_calculator_put_order',);
}
not_nordpeis_calculator_put_order:
}
// nordpeis_calculator_cover_plate
if ('/coverplate' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nordpeis_calculator_cover_plate;
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::coverPlateAction', '_route' => 'nordpeis_calculator_cover_plate',);
}
not_nordpeis_calculator_cover_plate:
// nordpeis_calculator_horizontal_select
if ('/horizontalselect' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nordpeis_calculator_horizontal_select;
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::horizontalSelectAction', '_route' => 'nordpeis_calculator_horizontal_select',);
}
not_nordpeis_calculator_horizontal_select:
// nordpeis_calculator_angle_select
if ('/angleselect' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nordpeis_calculator_angle_select;
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::angleSelectAction', '_route' => 'nordpeis_calculator_angle_select',);
}
not_nordpeis_calculator_angle_select:
// nordpeis_calculator_add
if ('/add' === $pathinfo) {
if ('POST' !== $canonicalMethod) {
$allow[] = 'POST';
goto not_nordpeis_calculator_add;
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::addAction', '_route' => 'nordpeis_calculator_add',);
}
not_nordpeis_calculator_add:
// nordpeis_calculator_image_url
if ('/imageUrl' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nordpeis_calculator_image_url;
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::imageUrlAction', '_route' => 'nordpeis_calculator_image_url',);
}
not_nordpeis_calculator_image_url:
// nordpeis_calculator_export
if (0 === strpos($pathinfo, '/export') && preg_match('#^/export/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nordpeis_calculator_export;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'nordpeis_calculator_export')), array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::exportAction',));
}
not_nordpeis_calculator_export:
// nordpeis_calculator_draw
if (0 === strpos($pathinfo, '/draw') && preg_match('#^/draw/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nordpeis_calculator_draw;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'nordpeis_calculator_draw')), array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::drawAction',));
}
not_nordpeis_calculator_draw:
// nordpeis_calculator_order
if ('/order' === $pathinfo) {
if ('POST' !== $canonicalMethod) {
$allow[] = 'POST';
goto not_nordpeis_calculator_order;
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::orderAction', '_route' => 'nordpeis_calculator_order',);
}
not_nordpeis_calculator_order:
if (0 === strpos($pathinfo, '/reseller')) {
// nordpeis_calculator_reseller
if ('/reseller' === $pathinfo) {
if ('POST' !== $canonicalMethod) {
$allow[] = 'POST';
goto not_nordpeis_calculator_reseller;
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::resellerAction', '_route' => 'nordpeis_calculator_reseller',);
}
not_nordpeis_calculator_reseller:
// nordpeis_calculator_receive_from_nordpeis
if ('/reseller' === $pathinfo) {
if ('POST' !== $canonicalMethod) {
$allow[] = 'POST';
goto not_nordpeis_calculator_receive_from_nordpeis;
}
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\DefaultController::resellerAction', '_route' => 'nordpeis_calculator_receive_from_nordpeis',);
}
not_nordpeis_calculator_receive_from_nordpeis:
}
// nordpeis_sendcalculation
if ('/nordpeis/sendcalculation' === $pathinfo) {
return array ( '_controller' => 'Nordpeis\\Bundle\\CalculatorBundle\\Controller\\NordpeisController::indexAction', '_route' => 'nordpeis_sendcalculation',);
}
// homepage
if ('' === $trimmedPathinfo) {
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', 'homepage');
}
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction', '_route' => 'homepage',);
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}