PageRenderTime 31ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/app/cache/prod/appProdUrlMatcher.php

https://gitlab.com/abdelwahed.farabi/TimeToStartWeb
PHP | 277 lines | 189 code | 54 blank | 34 comment | 54 complexity | 8ee5d12c1a1909af9caadbae40f1f905 MD5 | raw file
  1. <?php
  2. use Symfony\Component\Routing\Exception\MethodNotAllowedException;
  3. use Symfony\Component\Routing\Exception\ResourceNotFoundException;
  4. use Symfony\Component\Routing\RequestContext;
  5. /**
  6. * appProdUrlMatcher.
  7. *
  8. * This class has been auto-generated
  9. * by the Symfony Routing Component.
  10. */
  11. class appProdUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
  12. {
  13. /**
  14. * Constructor.
  15. */
  16. public function __construct(RequestContext $context)
  17. {
  18. $this->context = $context;
  19. }
  20. public function match($pathinfo)
  21. {
  22. $allow = array();
  23. $pathinfo = rawurldecode($pathinfo);
  24. $context = $this->context;
  25. $request = $this->request;
  26. // user_user_homepage
  27. if (0 === strpos($pathinfo, '/hello') && preg_match('#^/hello/(?P<name>[^/]++)$#s', $pathinfo, $matches)) {
  28. return $this->mergeDefaults(array_replace($matches, array('_route' => 'user_user_homepage')), array ( '_controller' => 'User\\UserBundle\\Controller\\UserController::indexAction',));
  29. }
  30. // user_user_homepage_aj
  31. if ($pathinfo === '/aj') {
  32. return array ( '_controller' => 'User\\UserBundle\\Controller\\UserController::ajouterAction', '_route' => 'user_user_homepage_aj',);
  33. }
  34. // user_user_searching
  35. if ($pathinfo === '/sea') {
  36. return array ( '_controller' => 'User\\UserBundle\\Controller\\UserController::searchAction', '_route' => 'user_user_searching',);
  37. }
  38. // user_user_update
  39. if ($pathinfo === '/up') {
  40. return array ( '_controller' => 'User\\UserBundle\\Controller\\UserController::updateAction', '_route' => 'user_user_update',);
  41. }
  42. // user_user_list
  43. if ($pathinfo === '/li') {
  44. return array ( '_controller' => 'User\\UserBundle\\Controller\\UserController::listerAction', '_route' => 'user_user_list',);
  45. }
  46. // my_app_mail_succ
  47. if ($pathinfo === '/succ') {
  48. return array ( '_controller' => 'User\\UserBundle\\Controller\\MailController::indexAction', '_route' => 'my_app_mail_succ',);
  49. }
  50. // my_app_mail_form
  51. if ($pathinfo === '/mail') {
  52. return array ( '_controller' => 'User\\UserBundle\\Controller\\MailController::newAction', '_route' => 'my_app_mail_form',);
  53. }
  54. // my_app_mail_sendpage
  55. if ($pathinfo === '/profile/sendmail') {
  56. return array ( '_controller' => 'User\\UserBundle\\Controller\\MailController::sendMailAction', '_route' => 'my_app_mail_sendpage',);
  57. }
  58. // my_app_mail_homepage
  59. if ($pathinfo === '/h') {
  60. return array ( '_controller' => 'User\\UserBundle\\Controller\\MailController::indexAction', '_route' => 'my_app_mail_homepage',);
  61. }
  62. // my_app_mail_homepagees
  63. if ($pathinfo === '/main') {
  64. return array ( '_controller' => 'User\\UserBundle\\Controller\\UserController::mainAction', '_route' => 'my_app_mail_homepagees',);
  65. }
  66. // homepage
  67. if (rtrim($pathinfo, '/') === '') {
  68. if (substr($pathinfo, -1) !== '/') {
  69. return $this->redirect($pathinfo.'/', 'homepage');
  70. }
  71. return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction', '_route' => 'homepage',);
  72. }
  73. if (0 === strpos($pathinfo, '/log')) {
  74. if (0 === strpos($pathinfo, '/login')) {
  75. // fos_user_security_login
  76. if ($pathinfo === '/login') {
  77. if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
  78. $allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
  79. goto not_fos_user_security_login;
  80. }
  81. return array ( '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::loginAction', '_route' => 'fos_user_security_login',);
  82. }
  83. not_fos_user_security_login:
  84. // fos_user_security_check
  85. if ($pathinfo === '/login_check') {
  86. if ($this->context->getMethod() != 'POST') {
  87. $allow[] = 'POST';
  88. goto not_fos_user_security_check;
  89. }
  90. return array ( '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::checkAction', '_route' => 'fos_user_security_check',);
  91. }
  92. not_fos_user_security_check:
  93. }
  94. // fos_user_security_logout
  95. if ($pathinfo === '/logout') {
  96. if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
  97. $allow = array_merge($allow, array('GET', 'HEAD'));
  98. goto not_fos_user_security_logout;
  99. }
  100. return array ( '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::logoutAction', '_route' => 'fos_user_security_logout',);
  101. }
  102. not_fos_user_security_logout:
  103. }
  104. if (0 === strpos($pathinfo, '/profile')) {
  105. // fos_user_profile_show
  106. if (rtrim($pathinfo, '/') === '/profile') {
  107. if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
  108. $allow = array_merge($allow, array('GET', 'HEAD'));
  109. goto not_fos_user_profile_show;
  110. }
  111. if (substr($pathinfo, -1) !== '/') {
  112. return $this->redirect($pathinfo.'/', 'fos_user_profile_show');
  113. }
  114. return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::showAction', '_route' => 'fos_user_profile_show',);
  115. }
  116. not_fos_user_profile_show:
  117. // fos_user_profile_edit
  118. if ($pathinfo === '/profile/edit') {
  119. if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
  120. $allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
  121. goto not_fos_user_profile_edit;
  122. }
  123. return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::editAction', '_route' => 'fos_user_profile_edit',);
  124. }
  125. not_fos_user_profile_edit:
  126. }
  127. if (0 === strpos($pathinfo, '/re')) {
  128. if (0 === strpos($pathinfo, '/register')) {
  129. // fos_user_registration_register
  130. if (rtrim($pathinfo, '/') === '/register') {
  131. if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
  132. $allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
  133. goto not_fos_user_registration_register;
  134. }
  135. if (substr($pathinfo, -1) !== '/') {
  136. return $this->redirect($pathinfo.'/', 'fos_user_registration_register');
  137. }
  138. return array ( '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::registerAction', '_route' => 'fos_user_registration_register',);
  139. }
  140. not_fos_user_registration_register:
  141. if (0 === strpos($pathinfo, '/register/c')) {
  142. // fos_user_registration_check_email
  143. if ($pathinfo === '/register/check-email') {
  144. if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
  145. $allow = array_merge($allow, array('GET', 'HEAD'));
  146. goto not_fos_user_registration_check_email;
  147. }
  148. return array ( '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::checkEmailAction', '_route' => 'fos_user_registration_check_email',);
  149. }
  150. not_fos_user_registration_check_email:
  151. if (0 === strpos($pathinfo, '/register/confirm')) {
  152. // fos_user_registration_confirm
  153. if (preg_match('#^/register/confirm/(?P<token>[^/]++)$#s', $pathinfo, $matches)) {
  154. if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
  155. $allow = array_merge($allow, array('GET', 'HEAD'));
  156. goto not_fos_user_registration_confirm;
  157. }
  158. return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_registration_confirm')), array ( '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::confirmAction',));
  159. }
  160. not_fos_user_registration_confirm:
  161. // fos_user_registration_confirmed
  162. if ($pathinfo === '/register/confirmed') {
  163. if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
  164. $allow = array_merge($allow, array('GET', 'HEAD'));
  165. goto not_fos_user_registration_confirmed;
  166. }
  167. return array ( '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::confirmedAction', '_route' => 'fos_user_registration_confirmed',);
  168. }
  169. not_fos_user_registration_confirmed:
  170. }
  171. }
  172. }
  173. if (0 === strpos($pathinfo, '/resetting')) {
  174. // fos_user_resetting_request
  175. if ($pathinfo === '/resetting/request') {
  176. if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
  177. $allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
  178. goto not_fos_user_resetting_request;
  179. }
  180. return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::requestAction', '_route' => 'fos_user_resetting_request',);
  181. }
  182. not_fos_user_resetting_request:
  183. // fos_user_resetting_send_email
  184. if ($pathinfo === '/resetting/send-email') {
  185. if ($this->context->getMethod() != 'POST') {
  186. $allow[] = 'POST';
  187. goto not_fos_user_resetting_send_email;
  188. }
  189. return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::sendEmailAction', '_route' => 'fos_user_resetting_send_email',);
  190. }
  191. not_fos_user_resetting_send_email:
  192. // fos_user_resetting_check_email
  193. if ($pathinfo === '/resetting/check-email') {
  194. if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
  195. $allow = array_merge($allow, array('GET', 'HEAD'));
  196. goto not_fos_user_resetting_check_email;
  197. }
  198. return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::checkEmailAction', '_route' => 'fos_user_resetting_check_email',);
  199. }
  200. not_fos_user_resetting_check_email:
  201. // fos_user_resetting_reset
  202. if (0 === strpos($pathinfo, '/resetting/reset') && preg_match('#^/resetting/reset/(?P<token>[^/]++)$#s', $pathinfo, $matches)) {
  203. if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
  204. $allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
  205. goto not_fos_user_resetting_reset;
  206. }
  207. return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_resetting_reset')), array ( '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::resetAction',));
  208. }
  209. not_fos_user_resetting_reset:
  210. }
  211. }
  212. // fos_user_change_password
  213. if ($pathinfo === '/profile/change-password') {
  214. if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
  215. $allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
  216. goto not_fos_user_change_password;
  217. }
  218. return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ChangePasswordController::changePasswordAction', '_route' => 'fos_user_change_password',);
  219. }
  220. not_fos_user_change_password:
  221. throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  222. }
  223. }