var/cache/prod_admin/appProd_adminDebugProjectContainerUrlMatcher.php line 529

Open in your IDE?
  1. <?php
  2. use Symfony\Component\Routing\Exception\MethodNotAllowedException;
  3. use Symfony\Component\Routing\Exception\ResourceNotFoundException;
  4. use Symfony\Component\Routing\RequestContext;
  5. /**
  6.  * This class has been auto-generated
  7.  * by the Symfony Routing Component.
  8.  */
  9. class appProd_adminDebugProjectContainerUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
  10. {
  11.     public function __construct(RequestContext $context)
  12.     {
  13.         $this->context $context;
  14.     }
  15.     public function match($pathinfo)
  16.     {
  17.         $allow = array();
  18.         $pathinfo rawurldecode($pathinfo);
  19.         $trimmedPathinfo rtrim($pathinfo'/');
  20.         $context $this->context;
  21.         $request $this->request;
  22.         $requestMethod $canonicalMethod $context->getMethod();
  23.         $scheme $context->getScheme();
  24.         if ('HEAD' === $requestMethod) {
  25.             $canonicalMethod 'GET';
  26.         }
  27.         if (=== strpos($pathinfo'/_')) {
  28.             // _wdt
  29.             if (=== strpos($pathinfo'/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  30.                 return $this->mergeDefaults(array_replace($matches, array('_route' => '_wdt')), array (  '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
  31.             }
  32.             if (=== strpos($pathinfo'/_profiler')) {
  33.                 // _profiler_home
  34.                 if ('/_profiler' === $trimmedPathinfo) {
  35.                     $ret = array (  '_controller' => 'web_profiler.controller.profiler:homeAction',  '_route' => '_profiler_home',);
  36.                     if (substr($pathinfo, -1) !== '/') {
  37.                         return array_replace($ret$this->redirect($pathinfo.'/''_profiler_home'));
  38.                     }
  39.                     return $ret;
  40.                 }
  41.                 if (=== strpos($pathinfo'/_profiler/search')) {
  42.                     // _profiler_search
  43.                     if ('/_profiler/search' === $pathinfo) {
  44.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchAction',  '_route' => '_profiler_search',);
  45.                     }
  46.                     // _profiler_search_bar
  47.                     if ('/_profiler/search_bar' === $pathinfo) {
  48.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchBarAction',  '_route' => '_profiler_search_bar',);
  49.                     }
  50.                 }
  51.                 // _profiler_phpinfo
  52.                 if ('/_profiler/phpinfo' === $pathinfo) {
  53.                     return array (  '_controller' => 'web_profiler.controller.profiler:phpinfoAction',  '_route' => '_profiler_phpinfo',);
  54.                 }
  55.                 // _profiler_search_results
  56.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#s'$pathinfo$matches)) {
  57.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_search_results')), array (  '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
  58.                 }
  59.                 // _profiler_open_file
  60.                 if ('/_profiler/open' === $pathinfo) {
  61.                     return array (  '_controller' => 'web_profiler.controller.profiler:openAction',  '_route' => '_profiler_open_file',);
  62.                 }
  63.                 // _profiler
  64.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  65.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler')), array (  '_controller' => 'web_profiler.controller.profiler:panelAction',));
  66.                 }
  67.                 // _profiler_router
  68.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#s'$pathinfo$matches)) {
  69.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_router')), array (  '_controller' => 'web_profiler.controller.router:panelAction',));
  70.                 }
  71.                 // _profiler_exception
  72.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#s'$pathinfo$matches)) {
  73.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception')), array (  '_controller' => 'web_profiler.controller.exception:showAction',));
  74.                 }
  75.                 // _profiler_exception_css
  76.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#s'$pathinfo$matches)) {
  77.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception_css')), array (  '_controller' => 'web_profiler.controller.exception:cssAction',));
  78.                 }
  79.             }
  80.             // _twig_error_test
  81.             if (=== strpos($pathinfo'/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  82.                 return $this->mergeDefaults(array_replace($matches, array('_route' => '_twig_error_test')), array (  '_controller' => 'twig.controller.preview_error:previewErrorPageAction',  '_format' => 'html',));
  83.             }
  84.         }
  85.         elseif (=== strpos($pathinfo'/l')) {
  86.             if (=== strpos($pathinfo'/login')) {
  87.                 // fos_user_security_login
  88.                 if ('/login' === $pathinfo) {
  89.                     if (!in_array($canonicalMethod, array('GET''POST'))) {
  90.                         $allow array_merge($allow, array('GET''POST'));
  91.                         goto not_fos_user_security_login;
  92.                     }
  93.                     return array (  '_controller' => 'fos_user.security.controller:loginAction',  '_route' => 'fos_user_security_login',);
  94.                 }
  95.                 not_fos_user_security_login:
  96.                 // fos_user_security_check
  97.                 if ('/login_check' === $pathinfo) {
  98.                     if ('POST' !== $canonicalMethod) {
  99.                         $allow[] = 'POST';
  100.                         goto not_fos_user_security_check;
  101.                     }
  102.                     return array (  '_controller' => 'fos_user.security.controller:checkAction',  '_route' => 'fos_user_security_check',);
  103.                 }
  104.                 not_fos_user_security_check:
  105.             }
  106.             // fos_user_security_logout
  107.             if ('/logout' === $pathinfo) {
  108.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  109.                     $allow array_merge($allow, array('GET''POST'));
  110.                     goto not_fos_user_security_logout;
  111.                 }
  112.                 return array (  '_controller' => 'fos_user.security.controller:logoutAction',  '_route' => 'fos_user_security_logout',);
  113.             }
  114.             not_fos_user_security_logout:
  115.             if (=== strpos($pathinfo'/language')) {
  116.                 // admin_language_list
  117.                 if ('/language/list' === $pathinfo) {
  118.                     return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::listAction',  '_sonata_admin' => 'admin.language',  '_sonata_name' => 'admin_language_list',  '_route' => 'admin_language_list',);
  119.                 }
  120.                 // admin_language_create
  121.                 if ('/language/create' === $pathinfo) {
  122.                     return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::createAction',  '_sonata_admin' => 'admin.language',  '_sonata_name' => 'admin_language_create',  '_route' => 'admin_language_create',);
  123.                 }
  124.                 // admin_language_batch
  125.                 if ('/language/batch' === $pathinfo) {
  126.                     return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::batchAction',  '_sonata_admin' => 'admin.language',  '_sonata_name' => 'admin_language_batch',  '_route' => 'admin_language_batch',);
  127.                 }
  128.                 // admin_language_edit
  129.                 if (preg_match('#^/language/(?P<id>[^/]++)/edit$#s'$pathinfo$matches)) {
  130.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_language_edit')), array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::editAction',  '_sonata_admin' => 'admin.language',  '_sonata_name' => 'admin_language_edit',));
  131.                 }
  132.                 // admin_language_show
  133.                 if (preg_match('#^/language/(?P<id>[^/]++)/show$#s'$pathinfo$matches)) {
  134.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_language_show')), array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::showAction',  '_sonata_admin' => 'admin.language',  '_sonata_name' => 'admin_language_show',));
  135.                 }
  136.                 if (=== strpos($pathinfo'/language_dialect')) {
  137.                     // admin_language_dialect_list
  138.                     if ('/language_dialect/list' === $pathinfo) {
  139.                         return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::listAction',  '_sonata_admin' => 'admin.language_dialect',  '_sonata_name' => 'admin_language_dialect_list',  '_route' => 'admin_language_dialect_list',);
  140.                     }
  141.                     // admin_language_dialect_create
  142.                     if ('/language_dialect/create' === $pathinfo) {
  143.                         return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::createAction',  '_sonata_admin' => 'admin.language_dialect',  '_sonata_name' => 'admin_language_dialect_create',  '_route' => 'admin_language_dialect_create',);
  144.                     }
  145.                     // admin_language_dialect_batch
  146.                     if ('/language_dialect/batch' === $pathinfo) {
  147.                         return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::batchAction',  '_sonata_admin' => 'admin.language_dialect',  '_sonata_name' => 'admin_language_dialect_batch',  '_route' => 'admin_language_dialect_batch',);
  148.                     }
  149.                     // admin_language_dialect_edit
  150.                     if (preg_match('#^/language_dialect/(?P<id>[^/]++)/edit$#s'$pathinfo$matches)) {
  151.                         return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_language_dialect_edit')), array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::editAction',  '_sonata_admin' => 'admin.language_dialect',  '_sonata_name' => 'admin_language_dialect_edit',));
  152.                     }
  153.                     // admin_language_dialect_delete
  154.                     if (preg_match('#^/language_dialect/(?P<id>[^/]++)/delete$#s'$pathinfo$matches)) {
  155.                         return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_language_dialect_delete')), array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::deleteAction',  '_sonata_admin' => 'admin.language_dialect',  '_sonata_name' => 'admin_language_dialect_delete',));
  156.                     }
  157.                 }
  158.             }
  159.         }
  160.         elseif (=== strpos($pathinfo'/profile')) {
  161.             // fos_user_profile_show
  162.             if ('/profile' === $trimmedPathinfo) {
  163.                 if ('GET' !== $canonicalMethod) {
  164.                     $allow[] = 'GET';
  165.                     goto not_fos_user_profile_show;
  166.                 }
  167.                 $ret = array (  '_controller' => 'fos_user.profile.controller:showAction',  '_route' => 'fos_user_profile_show',);
  168.                 if (substr($pathinfo, -1) !== '/') {
  169.                     return array_replace($ret$this->redirect($pathinfo.'/''fos_user_profile_show'));
  170.                 }
  171.                 return $ret;
  172.             }
  173.             not_fos_user_profile_show:
  174.             // fos_user_profile_edit
  175.             if ('/profile/edit' === $pathinfo) {
  176.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  177.                     $allow array_merge($allow, array('GET''POST'));
  178.                     goto not_fos_user_profile_edit;
  179.                 }
  180.                 return array (  '_controller' => 'fos_user.profile.controller:editAction',  '_route' => 'fos_user_profile_edit',);
  181.             }
  182.             not_fos_user_profile_edit:
  183.             // fos_user_change_password
  184.             if ('/profile/change-password' === $pathinfo) {
  185.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  186.                     $allow array_merge($allow, array('GET''POST'));
  187.                     goto not_fos_user_change_password;
  188.                 }
  189.                 return array (  '_controller' => 'fos_user.change_password.controller:changePasswordAction',  '_route' => 'fos_user_change_password',);
  190.             }
  191.             not_fos_user_change_password:
  192.         }
  193.         elseif (=== strpos($pathinfo'/register')) {
  194.             // fos_user_registration_register
  195.             if ('/register' === $trimmedPathinfo) {
  196.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  197.                     $allow array_merge($allow, array('GET''POST'));
  198.                     goto not_fos_user_registration_register;
  199.                 }
  200.                 $ret = array (  '_controller' => 'fos_user.registration.controller:registerAction',  '_route' => 'fos_user_registration_register',);
  201.                 if (substr($pathinfo, -1) !== '/') {
  202.                     return array_replace($ret$this->redirect($pathinfo.'/''fos_user_registration_register'));
  203.                 }
  204.                 return $ret;
  205.             }
  206.             not_fos_user_registration_register:
  207.             // fos_user_registration_check_email
  208.             if ('/register/check-email' === $pathinfo) {
  209.                 if ('GET' !== $canonicalMethod) {
  210.                     $allow[] = 'GET';
  211.                     goto not_fos_user_registration_check_email;
  212.                 }
  213.                 return array (  '_controller' => 'fos_user.registration.controller:checkEmailAction',  '_route' => 'fos_user_registration_check_email',);
  214.             }
  215.             not_fos_user_registration_check_email:
  216.             if (=== strpos($pathinfo'/register/confirm')) {
  217.                 // fos_user_registration_confirm
  218.                 if (preg_match('#^/register/confirm/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  219.                     if ('GET' !== $canonicalMethod) {
  220.                         $allow[] = 'GET';
  221.                         goto not_fos_user_registration_confirm;
  222.                     }
  223.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_registration_confirm')), array (  '_controller' => 'fos_user.registration.controller:confirmAction',));
  224.                 }
  225.                 not_fos_user_registration_confirm:
  226.                 // fos_user_registration_confirmed
  227.                 if ('/register/confirmed' === $pathinfo) {
  228.                     if ('GET' !== $canonicalMethod) {
  229.                         $allow[] = 'GET';
  230.                         goto not_fos_user_registration_confirmed;
  231.                     }
  232.                     return array (  '_controller' => 'fos_user.registration.controller:confirmedAction',  '_route' => 'fos_user_registration_confirmed',);
  233.                 }
  234.                 not_fos_user_registration_confirmed:
  235.             }
  236.         }
  237.         elseif (=== strpos($pathinfo'/resetting')) {
  238.             // fos_user_resetting_request
  239.             if ('/resetting/request' === $pathinfo) {
  240.                 if ('GET' !== $canonicalMethod) {
  241.                     $allow[] = 'GET';
  242.                     goto not_fos_user_resetting_request;
  243.                 }
  244.                 return array (  '_controller' => 'fos_user.resetting.controller:requestAction',  '_route' => 'fos_user_resetting_request',);
  245.             }
  246.             not_fos_user_resetting_request:
  247.             // fos_user_resetting_reset
  248.             if (=== strpos($pathinfo'/resetting/reset') && preg_match('#^/resetting/reset/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  249.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  250.                     $allow array_merge($allow, array('GET''POST'));
  251.                     goto not_fos_user_resetting_reset;
  252.                 }
  253.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_resetting_reset')), array (  '_controller' => 'fos_user.resetting.controller:resetAction',));
  254.             }
  255.             not_fos_user_resetting_reset:
  256.             // fos_user_resetting_send_email
  257.             if ('/resetting/send-email' === $pathinfo) {
  258.                 if ('POST' !== $canonicalMethod) {
  259.                     $allow[] = 'POST';
  260.                     goto not_fos_user_resetting_send_email;
  261.                 }
  262.                 return array (  '_controller' => 'fos_user.resetting.controller:sendEmailAction',  '_route' => 'fos_user_resetting_send_email',);
  263.             }
  264.             not_fos_user_resetting_send_email:
  265.             // fos_user_resetting_check_email
  266.             if ('/resetting/check-email' === $pathinfo) {
  267.                 if ('GET' !== $canonicalMethod) {
  268.                     $allow[] = 'GET';
  269.                     goto not_fos_user_resetting_check_email;
  270.                 }
  271.                 return array (  '_controller' => 'fos_user.resetting.controller:checkEmailAction',  '_route' => 'fos_user_resetting_check_email',);
  272.             }
  273.             not_fos_user_resetting_check_email:
  274.         }
  275.         // sonata_admin_redirect
  276.         if ('' === $trimmedPathinfo) {
  277.             $ret = array (  '_controller' => 'Symfony\\Bundle\\FrameworkBundle\\Controller\\RedirectController::redirectAction',  'route' => 'sonata_admin_dashboard',  'permanent' => 'true',  '_route' => 'sonata_admin_redirect',);
  278.             if (substr($pathinfo, -1) !== '/') {
  279.                 return array_replace($ret$this->redirect($pathinfo.'/''sonata_admin_redirect'));
  280.             }
  281.             return $ret;
  282.         }
  283.         // sonata_admin_dashboard
  284.         if ('/dashboard' === $pathinfo) {
  285.             return array (  '_controller' => 'Sonata\\AdminBundle\\Action\\DashboardAction',  '_route' => 'sonata_admin_dashboard',);
  286.         }
  287.         if (=== strpos($pathinfo'/core')) {
  288.             if (=== strpos($pathinfo'/core/get-')) {
  289.                 // sonata_admin_retrieve_form_element
  290.                 if ('/core/get-form-field-element' === $pathinfo) {
  291.                     return array (  '_controller' => 'sonata.admin.action.retrieve_form_field_element',  '_route' => 'sonata_admin_retrieve_form_element',);
  292.                 }
  293.                 // sonata_admin_short_object_information
  294.                 if (=== strpos($pathinfo'/core/get-short-object-description') && preg_match('#^/core/get\\-short\\-object\\-description(?:\\.(?P<_format>html|json))?$#s'$pathinfo$matches)) {
  295.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'sonata_admin_short_object_information')), array (  '_controller' => 'sonata.admin.action.get_short_object_description',  '_format' => 'html',));
  296.                 }
  297.                 // sonata_admin_retrieve_autocomplete_items
  298.                 if ('/core/get-autocomplete-items' === $pathinfo) {
  299.                     return array (  '_controller' => 'sonata.admin.action.retrieve_autocomplete_items',  '_route' => 'sonata_admin_retrieve_autocomplete_items',);
  300.                 }
  301.             }
  302.             // sonata_admin_append_form_element
  303.             if ('/core/append-form-field-element' === $pathinfo) {
  304.                 return array (  '_controller' => 'sonata.admin.action.append_form_field_element',  '_route' => 'sonata_admin_append_form_element',);
  305.             }
  306.             // sonata_admin_set_object_field_value
  307.             if ('/core/set-object-field-value' === $pathinfo) {
  308.                 return array (  '_controller' => 'sonata.admin.action.set_object_field_value',  '_route' => 'sonata_admin_set_object_field_value',);
  309.             }
  310.         }
  311.         elseif (=== strpos($pathinfo'/s')) {
  312.             // sonata_admin_search
  313.             if ('/search' === $pathinfo) {
  314.                 return array (  '_controller' => 'Sonata\\AdminBundle\\Action\\SearchAction',  '_route' => 'sonata_admin_search',);
  315.             }
  316.             if (=== strpos($pathinfo'/search_engine')) {
  317.                 // admin_search_engine_list
  318.                 if ('/search_engine/list' === $pathinfo) {
  319.                     return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::listAction',  '_sonata_admin' => 'admin.search_engine',  '_sonata_name' => 'admin_search_engine_list',  '_route' => 'admin_search_engine_list',);
  320.                 }
  321.                 // admin_search_engine_create
  322.                 if ('/search_engine/create' === $pathinfo) {
  323.                     return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::createAction',  '_sonata_admin' => 'admin.search_engine',  '_sonata_name' => 'admin_search_engine_create',  '_route' => 'admin_search_engine_create',);
  324.                 }
  325.                 // admin_search_engine_batch
  326.                 if ('/search_engine/batch' === $pathinfo) {
  327.                     return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::batchAction',  '_sonata_admin' => 'admin.search_engine',  '_sonata_name' => 'admin_search_engine_batch',  '_route' => 'admin_search_engine_batch',);
  328.                 }
  329.                 // admin_search_engine_edit
  330.                 if (preg_match('#^/search_engine/(?P<id>[^/]++)/edit$#s'$pathinfo$matches)) {
  331.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_search_engine_edit')), array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::editAction',  '_sonata_admin' => 'admin.search_engine',  '_sonata_name' => 'admin_search_engine_edit',));
  332.                 }
  333.                 // admin_search_engine_show
  334.                 if (preg_match('#^/search_engine/(?P<id>[^/]++)/show$#s'$pathinfo$matches)) {
  335.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_search_engine_show')), array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::showAction',  '_sonata_admin' => 'admin.search_engine',  '_sonata_name' => 'admin_search_engine_show',));
  336.                 }
  337.             }
  338.             elseif (=== strpos($pathinfo'/stop_words')) {
  339.                 // admin_stop_words_list
  340.                 if ('/stop_words/list' === $pathinfo) {
  341.                     return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::listAction',  '_sonata_admin' => 'admin.stop_words',  '_sonata_name' => 'admin_stop_words_list',  '_route' => 'admin_stop_words_list',);
  342.                 }
  343.                 // admin_stop_words_create
  344.                 if ('/stop_words/create' === $pathinfo) {
  345.                     return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::createAction',  '_sonata_admin' => 'admin.stop_words',  '_sonata_name' => 'admin_stop_words_create',  '_route' => 'admin_stop_words_create',);
  346.                 }
  347.                 // admin_stop_words_batch
  348.                 if ('/stop_words/batch' === $pathinfo) {
  349.                     return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::batchAction',  '_sonata_admin' => 'admin.stop_words',  '_sonata_name' => 'admin_stop_words_batch',  '_route' => 'admin_stop_words_batch',);
  350.                 }
  351.                 // admin_stop_words_edit
  352.                 if (preg_match('#^/stop_words/(?P<id>[^/]++)/edit$#s'$pathinfo$matches)) {
  353.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_stop_words_edit')), array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::editAction',  '_sonata_admin' => 'admin.stop_words',  '_sonata_name' => 'admin_stop_words_edit',));
  354.                 }
  355.                 // admin_stop_words_show
  356.                 if (preg_match('#^/stop_words/(?P<id>[^/]++)/show$#s'$pathinfo$matches)) {
  357.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_stop_words_show')), array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::showAction',  '_sonata_admin' => 'admin.stop_words',  '_sonata_name' => 'admin_stop_words_show',));
  358.                 }
  359.             }
  360.         }
  361.         elseif (=== strpos($pathinfo'/base_task')) {
  362.             // admin_base_task_list
  363.             if ('/base_task/list' === $pathinfo) {
  364.                 return array (  '_controller' => 'CoreBundle\\Controller\\BaseTaskController::listAction',  '_sonata_admin' => 'admin.base_task',  '_sonata_name' => 'admin_base_task_list',  '_route' => 'admin_base_task_list',);
  365.             }
  366.             // admin_base_task_batch
  367.             if ('/base_task/batch' === $pathinfo) {
  368.                 return array (  '_controller' => 'CoreBundle\\Controller\\BaseTaskController::batchAction',  '_sonata_admin' => 'admin.base_task',  '_sonata_name' => 'admin_base_task_batch',  '_route' => 'admin_base_task_batch',);
  369.             }
  370.             // admin_base_task_show
  371.             if (preg_match('#^/base_task/(?P<id>[^/]++)/show$#s'$pathinfo$matches)) {
  372.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_base_task_show')), array (  '_controller' => 'CoreBundle\\Controller\\BaseTaskController::showAction',  '_sonata_admin' => 'admin.base_task',  '_sonata_name' => 'admin_base_task_show',));
  373.             }
  374.         }
  375.         elseif (=== strpos($pathinfo'/user_plagiarism')) {
  376.             // admin_user_plagiarism_list
  377.             if ('/user_plagiarism/list' === $pathinfo) {
  378.                 return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::listAction',  '_sonata_admin' => 'admin.user_plagiarism',  '_sonata_name' => 'admin_user_plagiarism_list',  '_route' => 'admin_user_plagiarism_list',);
  379.             }
  380.             // admin_user_plagiarism_batch
  381.             if ('/user_plagiarism/batch' === $pathinfo) {
  382.                 return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::batchAction',  '_sonata_admin' => 'admin.user_plagiarism',  '_sonata_name' => 'admin_user_plagiarism_batch',  '_route' => 'admin_user_plagiarism_batch',);
  383.             }
  384.             // admin_user_plagiarism_show
  385.             if (preg_match('#^/user_plagiarism/(?P<id>[^/]++)/show$#s'$pathinfo$matches)) {
  386.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_user_plagiarism_show')), array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::showAction',  '_sonata_admin' => 'admin.user_plagiarism',  '_sonata_name' => 'admin_user_plagiarism_show',));
  387.             }
  388.         }
  389.         elseif (=== strpos($pathinfo'/message/message')) {
  390.             // admin_message_message_list
  391.             if ('/message/message/list' === $pathinfo) {
  392.                 return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::listAction',  '_sonata_admin' => 'sonata.trans.message',  '_sonata_name' => 'admin_message_message_list',  '_route' => 'admin_message_message_list',);
  393.             }
  394.             // admin_message_message_create
  395.             if ('/message/message/create' === $pathinfo) {
  396.                 return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::createAction',  '_sonata_admin' => 'sonata.trans.message',  '_sonata_name' => 'admin_message_message_create',  '_route' => 'admin_message_message_create',);
  397.             }
  398.             // admin_message_message_batch
  399.             if ('/message/message/batch' === $pathinfo) {
  400.                 return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::batchAction',  '_sonata_admin' => 'sonata.trans.message',  '_sonata_name' => 'admin_message_message_batch',  '_route' => 'admin_message_message_batch',);
  401.             }
  402.             // admin_message_message_edit
  403.             if (preg_match('#^/message/message/(?P<id>[^/]++)/edit$#s'$pathinfo$matches)) {
  404.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_message_message_edit')), array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::editAction',  '_sonata_admin' => 'sonata.trans.message',  '_sonata_name' => 'admin_message_message_edit',));
  405.             }
  406.             // admin_message_message_delete
  407.             if (preg_match('#^/message/message/(?P<id>[^/]++)/delete$#s'$pathinfo$matches)) {
  408.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_message_message_delete')), array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::deleteAction',  '_sonata_admin' => 'sonata.trans.message',  '_sonata_name' => 'admin_message_message_delete',));
  409.             }
  410.             // admin_message_message_show
  411.             if (preg_match('#^/message/message/(?P<id>[^/]++)/show$#s'$pathinfo$matches)) {
  412.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_message_message_show')), array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::showAction',  '_sonata_admin' => 'sonata.trans.message',  '_sonata_name' => 'admin_message_message_show',));
  413.             }
  414.             // admin_message_message_export
  415.             if ('/message/message/export' === $pathinfo) {
  416.                 return array (  '_controller' => 'Sonata\\AdminBundle\\Controller\\CRUDController::exportAction',  '_sonata_admin' => 'sonata.trans.message',  '_sonata_name' => 'admin_message_message_export',  '_route' => 'admin_message_message_export',);
  417.             }
  418.         }
  419.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  420.     }
  421. }