/var/cache/dev/appDevUrlMatcher.php
https://gitlab.com/jeisoncg/personal_collection_mv · PHP · 185 lines · 121 code · 36 blank · 28 comment · 36 complexity · d7fe6cbcc05b03fc3206face2b00eb95 MD5 · raw file
- <?php
- use Symfony\Component\Routing\Exception\MethodNotAllowedException;
- use Symfony\Component\Routing\Exception\ResourceNotFoundException;
- use Symfony\Component\Routing\RequestContext;
- /**
- * appDevUrlMatcher.
- *
- * This class has been auto-generated
- * by the Symfony Routing Component.
- */
- class appDevUrlMatcher 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
- 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',));
- }
- }
- if (0 === strpos($pathinfo, '/usuarios')) {
- // usuarios_index
- if (rtrim($pathinfo, '/') === '/usuarios') {
- if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'HEAD'));
- goto not_usuarios_index;
- }
- if (substr($pathinfo, -1) !== '/') {
- return $this->redirect($pathinfo.'/', 'usuarios_index');
- }
- return array ( '_controller' => 'TinkerSoft\\UsuariosBundle\\Controller\\UsuariosController::indexAction', '_route' => 'usuarios_index',);
- }
- not_usuarios_index:
- // usuarios_show
- if (preg_match('#^/usuarios/(?P<id>[^/]++)/show$#s', $pathinfo, $matches)) {
- if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'HEAD'));
- goto not_usuarios_show;
- }
- return $this->mergeDefaults(array_replace($matches, array('_route' => 'usuarios_show')), array ( '_controller' => 'TinkerSoft\\UsuariosBundle\\Controller\\UsuariosController::showAction',));
- }
- not_usuarios_show:
- // usuarios_new
- if ($pathinfo === '/usuarios/new') {
- if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
- goto not_usuarios_new;
- }
- return array ( '_controller' => 'TinkerSoft\\UsuariosBundle\\Controller\\UsuariosController::newAction', '_route' => 'usuarios_new',);
- }
- not_usuarios_new:
- // usuarios_edit
- if (preg_match('#^/usuarios/(?P<id>[^/]++)/edit$#s', $pathinfo, $matches)) {
- if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
- goto not_usuarios_edit;
- }
- return $this->mergeDefaults(array_replace($matches, array('_route' => 'usuarios_edit')), array ( '_controller' => 'TinkerSoft\\UsuariosBundle\\Controller\\UsuariosController::editAction',));
- }
- not_usuarios_edit:
- // usuarios_delete
- if (preg_match('#^/usuarios/(?P<id>[^/]++)/delete$#s', $pathinfo, $matches)) {
- if ($this->context->getMethod() != 'DELETE') {
- $allow[] = 'DELETE';
- goto not_usuarios_delete;
- }
- return $this->mergeDefaults(array_replace($matches, array('_route' => 'usuarios_delete')), array ( '_controller' => 'TinkerSoft\\UsuariosBundle\\Controller\\UsuariosController::deleteAction',));
- }
- not_usuarios_delete:
- }
- // tinker_soft_usuarios_homepage
- if (rtrim($pathinfo, '/') === '') {
- if (substr($pathinfo, -1) !== '/') {
- return $this->redirect($pathinfo.'/', 'tinker_soft_usuarios_homepage');
- }
- return array ( '_controller' => 'TinkerSoft\\UsuariosBundle\\Controller\\DefaultController::indexAction', '_route' => 'tinker_soft_usuarios_homepage',);
- }
- // homepage
- if (rtrim($pathinfo, '/') === '') {
- if (substr($pathinfo, -1) !== '/') {
- return $this->redirect($pathinfo.'/', 'homepage');
- }
- return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction', '_route' => 'homepage',);
- }
- throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
- }
- }