<?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 = [];
$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, '/_')) {
// _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',));
}
// _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',));
}
}
}
elseif (0 === strpos($pathinfo, '/admin')) {
if (0 === strpos($pathinfo, '/admin/actualities')) {
// admin_actualities_index
if ('/admin/actualities' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\Admin\\ActualitiesController::indexAction', '_route' => 'admin_actualities_index',);
}
// admin_actualities_add
if ('/admin/actualities/add' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\Admin\\ActualitiesController::addAction', '_route' => 'admin_actualities_add',);
}
// admin_actualities_edit
if (0 === strpos($pathinfo, '/admin/actualities/edit') && preg_match('#^/admin/actualities/edit/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_actualities_edit']), array ( '_controller' => 'App\\Controller\\Admin\\ActualitiesController::editAction',));
}
// admin_actualities_delete
if (0 === strpos($pathinfo, '/admin/actualities/delete') && preg_match('#^/admin/actualities/delete/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_actualities_delete']), array ( '_controller' => 'App\\Controller\\Admin\\ActualitiesController::deleteAction',));
}
// admin_actualities_delete_image
if (preg_match('#^/admin/actualities/(?P<id>[^/]++)/delete_image/(?P<imageId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_actualities_delete_image']), array ( '_controller' => 'App\\Controller\\Admin\\ActualitiesController::deleteImageAction',));
}
}
// admin_homepage
if ('/admin' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\Admin\\DefaultController::indexAction', '_route' => 'admin_homepage',);
}
// admin_login
if ('/admin/login' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\Admin\\DefaultController::login', '_route' => 'admin_login',);
}
if (0 === strpos($pathinfo, '/admin/programmes')) {
// admin_programmes_index
if ('/admin/programmes' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\Admin\\ProgrammesController::indexAction', '_route' => 'admin_programmes_index',);
}
// admin_programmes_add
if ('/admin/programmes/add' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\Admin\\ProgrammesController::addAction', '_route' => 'admin_programmes_add',);
}
// admin_programmes_edit
if (0 === strpos($pathinfo, '/admin/programmes/edit') && preg_match('#^/admin/programmes/edit/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_programmes_edit']), array ( '_controller' => 'App\\Controller\\Admin\\ProgrammesController::editAction',));
}
// admin_programmes_delete
if (0 === strpos($pathinfo, '/admin/programmes/delete') && preg_match('#^/admin/programmes/delete/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_programmes_delete']), array ( '_controller' => 'App\\Controller\\Admin\\ProgrammesController::deleteAction',));
}
// admin_programmes_delete_image
if (preg_match('#^/admin/programmes/(?P<id>[^/]++)/delete_image/(?P<imageId>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_programmes_delete_image']), array ( '_controller' => 'App\\Controller\\Admin\\ProgrammesController::deleteImageAction',));
}
}
}
elseif (0 === strpos($pathinfo, '/api')) {
// api_get_actualities
if ('/api/actualities' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\Api\\ActualitiesController::getActualitiesAction', '_route' => 'api_get_actualities',);
}
// api_get_asset_path
if ('/api/get_asset_path' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\Api\\DefaultController::getAssetsAction', '_route' => 'api_get_asset_path',);
}
// api_send_contact_info
if ('/api/send_contact_info' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\Api\\DefaultController::contactFormAction', '_route' => 'api_send_contact_info',);
}
// api_get_programmes
if ('/api/programmes' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\Api\\ProgrammesController::getProgrammesAction', '_route' => 'api_get_programmes',);
}
}
// homepage
if ('' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'App\\Controller\\DefaultController::indexAction', '_route' => 'homepage',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_homepage;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'homepage'));
}
return $ret;
}
not_homepage:
// mentions
if ('/mentions' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\DefaultController::mentionsAction', '_route' => 'mentions',);
}
// testSendEmail
if ('/klOpdgftJgft' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\DefaultController::testEmailAction', '_route' => 'testSendEmail',);
}
// fos_js_routing_js
if (0 === strpos($pathinfo, '/js/routing') && preg_match('#^/js/routing(?:\\.(?P<_format>js|json))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'fos_js_routing_js']), array ( '_controller' => 'fos_js_routing.controller::indexAction', '_format' => 'js',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_fos_js_routing_js;
}
return $ret;
}
not_fos_js_routing_js:
if ('/' === $pathinfo && !$allow) {
throw new Symfony\Component\Routing\Exception\NoConfigurationException();
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}