<?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 = 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';
}
// api_entrypoint
if (preg_match('#^/(?P<index>index)?(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_entrypoint')), array ( '_controller' => 'api_platform.action.entrypoint', '_format' => '', '_api_respond' => '1', 'index' => 'index',));
}
if (0 === strpos($pathinfo, '/d')) {
if (0 === strpos($pathinfo, '/doc')) {
// api_doc
if (0 === strpos($pathinfo, '/docs') && preg_match('#^/docs(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_doc')), array ( '_controller' => 'api_platform.action.documentation', '_api_respond' => '1', '_format' => '',));
}
// app_document_create
if ('/document/create' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\DocumentController::create', '_route' => 'app_document_create',);
}
// nelmio_api_doc.swagger_ui
if ('/doc' === $trimmedPathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_nelmio_api_docswagger_ui;
}
$ret = array ( '_controller' => 'nelmio_api_doc.controller.swagger_ui', '_route' => 'nelmio_api_doc.swagger_ui',);
if (substr($pathinfo, -1) !== '/') {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'nelmio_api_doc.swagger_ui'));
}
return $ret;
}
not_nelmio_api_docswagger_ui:
// app.swagger
if ('/doc.json' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_appswagger;
}
return array ( '_controller' => 'nelmio_api_doc.controller.swagger', '_route' => 'app.swagger',);
}
not_appswagger:
}
// app_data_upload
if ('/data/upload' === $pathinfo) {
return array ( '_controller' => 'App\\Controller\\DataController::upload', '_route' => 'app_data_upload',);
}
// app_data_show
if (0 === strpos($pathinfo, '/data/show') && preg_match('#^/data/show/(?P<fileId>[^/]++)$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_app_data_show;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_data_show')), array ( '_controller' => 'App\\Controller\\DataController::show',));
}
not_app_data_show:
}
// api_jsonld_context
if (0 === strpos($pathinfo, '/contexts') && preg_match('#^/contexts/(?P<shortName>.+)(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_jsonld_context')), array ( '_controller' => 'api_platform.jsonld.action.context', '_api_respond' => '1', '_format' => 'jsonld',));
}
if (0 === strpos($pathinfo, '/product')) {
if (0 === strpos($pathinfo, '/productproperties')) {
// api_productproperties_get_collection
if (preg_match('#^/productproperties(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_api_productproperties_get_collection;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productproperties_get_collection')), array ( '_controller' => 'api_platform.action.get_collection', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Productproperty', '_api_collection_operation_name' => 'get',));
}
not_api_productproperties_get_collection:
// api_productproperties_post_collection
if (preg_match('#^/productproperties(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('POST' !== $canonicalMethod) {
$allow[] = 'POST';
goto not_api_productproperties_post_collection;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productproperties_post_collection')), array ( '_controller' => 'api_platform.action.post_collection', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Productproperty', '_api_collection_operation_name' => 'post',));
}
not_api_productproperties_post_collection:
// api_productproperties_get_item
if (preg_match('#^/productproperties/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_api_productproperties_get_item;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productproperties_get_item')), array ( '_controller' => 'api_platform.action.get_item', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Productproperty', '_api_item_operation_name' => 'get',));
}
not_api_productproperties_get_item:
// api_productproperties_put_item
if (preg_match('#^/productproperties/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('PUT' !== $canonicalMethod) {
$allow[] = 'PUT';
goto not_api_productproperties_put_item;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productproperties_put_item')), array ( '_controller' => 'api_platform.action.put_item', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Productproperty', '_api_item_operation_name' => 'put',));
}
not_api_productproperties_put_item:
// api_productproperties_delete_item
if (preg_match('#^/productproperties/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('DELETE' !== $canonicalMethod) {
$allow[] = 'DELETE';
goto not_api_productproperties_delete_item;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productproperties_delete_item')), array ( '_controller' => 'api_platform.action.delete_item', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Productproperty', '_api_item_operation_name' => 'delete',));
}
not_api_productproperties_delete_item:
}
elseif (0 === strpos($pathinfo, '/productvendors')) {
// api_productvendors_get_collection
if (preg_match('#^/productvendors(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_api_productvendors_get_collection;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productvendors_get_collection')), array ( '_controller' => 'api_platform.action.get_collection', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Productvendor', '_api_collection_operation_name' => 'get',));
}
not_api_productvendors_get_collection:
// api_productvendors_post_collection
if (preg_match('#^/productvendors(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('POST' !== $canonicalMethod) {
$allow[] = 'POST';
goto not_api_productvendors_post_collection;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productvendors_post_collection')), array ( '_controller' => 'api_platform.action.post_collection', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Productvendor', '_api_collection_operation_name' => 'post',));
}
not_api_productvendors_post_collection:
// api_productvendors_get_item
if (preg_match('#^/productvendors/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_api_productvendors_get_item;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productvendors_get_item')), array ( '_controller' => 'api_platform.action.get_item', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Productvendor', '_api_item_operation_name' => 'get',));
}
not_api_productvendors_get_item:
// api_productvendors_put_item
if (preg_match('#^/productvendors/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('PUT' !== $canonicalMethod) {
$allow[] = 'PUT';
goto not_api_productvendors_put_item;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productvendors_put_item')), array ( '_controller' => 'api_platform.action.put_item', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Productvendor', '_api_item_operation_name' => 'put',));
}
not_api_productvendors_put_item:
// api_productvendors_delete_item
if (preg_match('#^/productvendors/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('DELETE' !== $canonicalMethod) {
$allow[] = 'DELETE';
goto not_api_productvendors_delete_item;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_productvendors_delete_item')), array ( '_controller' => 'api_platform.action.delete_item', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Productvendor', '_api_item_operation_name' => 'delete',));
}
not_api_productvendors_delete_item:
}
elseif (0 === strpos($pathinfo, '/products')) {
// api_products_get_collection
if (preg_match('#^/products(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_api_products_get_collection;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_products_get_collection')), array ( '_controller' => 'api_platform.action.get_collection', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Product', '_api_collection_operation_name' => 'get',));
}
not_api_products_get_collection:
// api_products_post_collection
if (preg_match('#^/products(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('POST' !== $canonicalMethod) {
$allow[] = 'POST';
goto not_api_products_post_collection;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_products_post_collection')), array ( '_controller' => 'api_platform.action.post_collection', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Product', '_api_collection_operation_name' => 'post',));
}
not_api_products_post_collection:
// api_products_get_item
if (preg_match('#^/products/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_api_products_get_item;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_products_get_item')), array ( '_controller' => 'api_platform.action.get_item', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Product', '_api_item_operation_name' => 'get',));
}
not_api_products_get_item:
// api_products_put_item
if (preg_match('#^/products/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('PUT' !== $canonicalMethod) {
$allow[] = 'PUT';
goto not_api_products_put_item;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_products_put_item')), array ( '_controller' => 'api_platform.action.put_item', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Product', '_api_item_operation_name' => 'put',));
}
not_api_products_put_item:
// api_products_delete_item
if (preg_match('#^/products/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('DELETE' !== $canonicalMethod) {
$allow[] = 'DELETE';
goto not_api_products_delete_item;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_products_delete_item')), array ( '_controller' => 'api_platform.action.delete_item', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Product', '_api_item_operation_name' => 'delete',));
}
not_api_products_delete_item:
}
}
elseif (0 === strpos($pathinfo, '/profile')) {
// fos_user_profile_show
if ('/profile' === $trimmedPathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_fos_user_profile_show;
}
$ret = array ( '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::showAction', '_route' => 'fos_user_profile_show',);
if (substr($pathinfo, -1) !== '/') {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'fos_user_profile_show'));
}
return $ret;
}
not_fos_user_profile_show:
// fos_user_profile_edit
if ('/profile/edit' === $pathinfo) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_profile_edit;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::editAction', '_route' => 'fos_user_profile_edit',);
}
not_fos_user_profile_edit:
// fos_user_change_password
if ('/profile/change-password' === $pathinfo) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_change_password;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ChangePasswordController::changePasswordAction', '_route' => 'fos_user_change_password',);
}
not_fos_user_change_password:
}
elseif (0 === strpos($pathinfo, '/salesprices')) {
// api_salesprices_get_collection
if (preg_match('#^/salesprices(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_api_salesprices_get_collection;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_salesprices_get_collection')), array ( '_controller' => 'api_platform.action.get_collection', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Salesprice', '_api_collection_operation_name' => 'get',));
}
not_api_salesprices_get_collection:
// api_salesprices_post_collection
if (preg_match('#^/salesprices(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('POST' !== $canonicalMethod) {
$allow[] = 'POST';
goto not_api_salesprices_post_collection;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_salesprices_post_collection')), array ( '_controller' => 'api_platform.action.post_collection', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Salesprice', '_api_collection_operation_name' => 'post',));
}
not_api_salesprices_post_collection:
// api_salesprices_get_item
if (preg_match('#^/salesprices/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_api_salesprices_get_item;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_salesprices_get_item')), array ( '_controller' => 'api_platform.action.get_item', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Salesprice', '_api_item_operation_name' => 'get',));
}
not_api_salesprices_get_item:
// api_salesprices_put_item
if (preg_match('#^/salesprices/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('PUT' !== $canonicalMethod) {
$allow[] = 'PUT';
goto not_api_salesprices_put_item;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_salesprices_put_item')), array ( '_controller' => 'api_platform.action.put_item', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Salesprice', '_api_item_operation_name' => 'put',));
}
not_api_salesprices_put_item:
// api_salesprices_delete_item
if (preg_match('#^/salesprices/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#s', $pathinfo, $matches)) {
if ('DELETE' !== $canonicalMethod) {
$allow[] = 'DELETE';
goto not_api_salesprices_delete_item;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_salesprices_delete_item')), array ( '_controller' => 'api_platform.action.delete_item', '_format' => NULL, '_api_resource_class' => 'App\\Entity\\Product\\Salesprice', '_api_item_operation_name' => 'delete',));
}
not_api_salesprices_delete_item:
}
elseif (0 === strpos($pathinfo, '/_')) {
// _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',));
}
// _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) {
$ret = array ( '_controller' => 'web_profiler.controller.profiler:homeAction', '_route' => '_profiler_home',);
if (substr($pathinfo, -1) !== '/') {
return array_replace($ret, $this->redirect($rawPathinfo.'/', '_profiler_home'));
}
return $ret;
}
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',));
}
}
}
elseif (0 === strpos($pathinfo, '/login')) {
// fos_user_security_login
if ('/login' === $pathinfo) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
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 ('/login_check' === $pathinfo) {
if ('POST' !== $canonicalMethod) {
$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 ('/logout' === $pathinfo) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
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, '/register')) {
// fos_user_registration_register
if ('/register' === $trimmedPathinfo) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_registration_register;
}
$ret = array ( '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::registerAction', '_route' => 'fos_user_registration_register',);
if (substr($pathinfo, -1) !== '/') {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'fos_user_registration_register'));
}
return $ret;
}
not_fos_user_registration_register:
// fos_user_registration_check_email
if ('/register/check-email' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
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 ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
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 ('/register/confirmed' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_fos_user_registration_confirmed;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::confirmedAction', '_route' => 'fos_user_registration_confirmed',);
}
not_fos_user_registration_confirmed:
}
}
elseif (0 === strpos($pathinfo, '/resetting')) {
// fos_user_resetting_request
if ('/resetting/request' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
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_reset
if (0 === strpos($pathinfo, '/resetting/reset') && preg_match('#^/resetting/reset/(?P<token>[^/]++)$#s', $pathinfo, $matches)) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
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_resetting_send_email
if ('/resetting/send-email' === $pathinfo) {
if ('POST' !== $canonicalMethod) {
$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 ('/resetting/check-email' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
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:
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}