/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
- <?php
- use Symfony\Component\Routing\Exception\MethodNotAllowedException;
- use Symfony\Component\Routing\Exception\ResourceNotFoundException;
- use Symfony\Component\Routing\RequestContext;
- /**
- * appProdUrlMatcher.
- *
- * This class has been auto-generated
- * by the Symfony Routing Component.
- */
- class appProdUrlMatcher 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;
- // user_user_homepage
- if (0 === strpos($pathinfo, '/hello') && preg_match('#^/hello/(?P<name>[^/]++)$#s', $pathinfo, $matches)) {
- return $this->mergeDefaults(array_replace($matches, array('_route' => 'user_user_homepage')), array ( '_controller' => 'User\\UserBundle\\Controller\\UserController::indexAction',));
- }
- // user_user_homepage_aj
- if ($pathinfo === '/aj') {
- return array ( '_controller' => 'User\\UserBundle\\Controller\\UserController::ajouterAction', '_route' => 'user_user_homepage_aj',);
- }
- // user_user_searching
- if ($pathinfo === '/sea') {
- return array ( '_controller' => 'User\\UserBundle\\Controller\\UserController::searchAction', '_route' => 'user_user_searching',);
- }
- // user_user_update
- if ($pathinfo === '/up') {
- return array ( '_controller' => 'User\\UserBundle\\Controller\\UserController::updateAction', '_route' => 'user_user_update',);
- }
- // user_user_list
- if ($pathinfo === '/li') {
- return array ( '_controller' => 'User\\UserBundle\\Controller\\UserController::listerAction', '_route' => 'user_user_list',);
- }
- // my_app_mail_succ
- if ($pathinfo === '/succ') {
- return array ( '_controller' => 'User\\UserBundle\\Controller\\MailController::indexAction', '_route' => 'my_app_mail_succ',);
- }
- // my_app_mail_form
- if ($pathinfo === '/mail') {
- return array ( '_controller' => 'User\\UserBundle\\Controller\\MailController::newAction', '_route' => 'my_app_mail_form',);
- }
- // my_app_mail_sendpage
- if ($pathinfo === '/profile/sendmail') {
- return array ( '_controller' => 'User\\UserBundle\\Controller\\MailController::sendMailAction', '_route' => 'my_app_mail_sendpage',);
- }
- // my_app_mail_homepage
- if ($pathinfo === '/h') {
- return array ( '_controller' => 'User\\UserBundle\\Controller\\MailController::indexAction', '_route' => 'my_app_mail_homepage',);
- }
- // my_app_mail_homepagees
- if ($pathinfo === '/main') {
- return array ( '_controller' => 'User\\UserBundle\\Controller\\UserController::mainAction', '_route' => 'my_app_mail_homepagees',);
- }
- // homepage
- if (rtrim($pathinfo, '/') === '') {
- if (substr($pathinfo, -1) !== '/') {
- return $this->redirect($pathinfo.'/', 'homepage');
- }
- return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction', '_route' => 'homepage',);
- }
- if (0 === strpos($pathinfo, '/log')) {
- if (0 === strpos($pathinfo, '/login')) {
- // fos_user_security_login
- if ($pathinfo === '/login') {
- if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
- 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 ($pathinfo === '/login_check') {
- if ($this->context->getMethod() != 'POST') {
- $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 ($pathinfo === '/logout') {
- if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'HEAD'));
- 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, '/profile')) {
- // fos_user_profile_show
- if (rtrim($pathinfo, '/') === '/profile') {
- if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'HEAD'));
- goto not_fos_user_profile_show;
- }
- if (substr($pathinfo, -1) !== '/') {
- return $this->redirect($pathinfo.'/', 'fos_user_profile_show');
- }
- return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::showAction', '_route' => 'fos_user_profile_show',);
- }
- not_fos_user_profile_show:
- // fos_user_profile_edit
- if ($pathinfo === '/profile/edit') {
- if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
- goto not_fos_user_profile_edit;
- }
- return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::editAction', '_route' => 'fos_user_profile_edit',);
- }
- not_fos_user_profile_edit:
- }
- if (0 === strpos($pathinfo, '/re')) {
- if (0 === strpos($pathinfo, '/register')) {
- // fos_user_registration_register
- if (rtrim($pathinfo, '/') === '/register') {
- if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
- goto not_fos_user_registration_register;
- }
- if (substr($pathinfo, -1) !== '/') {
- return $this->redirect($pathinfo.'/', 'fos_user_registration_register');
- }
- return array ( '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::registerAction', '_route' => 'fos_user_registration_register',);
- }
- not_fos_user_registration_register:
- if (0 === strpos($pathinfo, '/register/c')) {
- // fos_user_registration_check_email
- if ($pathinfo === '/register/check-email') {
- if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'HEAD'));
- 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 (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'HEAD'));
- 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 ($pathinfo === '/register/confirmed') {
- if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'HEAD'));
- goto not_fos_user_registration_confirmed;
- }
- return array ( '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::confirmedAction', '_route' => 'fos_user_registration_confirmed',);
- }
- not_fos_user_registration_confirmed:
- }
- }
- }
- if (0 === strpos($pathinfo, '/resetting')) {
- // fos_user_resetting_request
- if ($pathinfo === '/resetting/request') {
- if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
- 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_send_email
- if ($pathinfo === '/resetting/send-email') {
- if ($this->context->getMethod() != 'POST') {
- $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 ($pathinfo === '/resetting/check-email') {
- if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'HEAD'));
- 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:
- // fos_user_resetting_reset
- if (0 === strpos($pathinfo, '/resetting/reset') && preg_match('#^/resetting/reset/(?P<token>[^/]++)$#s', $pathinfo, $matches)) {
- if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
- 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_change_password
- if ($pathinfo === '/profile/change-password') {
- if (!in_array($this->context->getMethod(), array('GET', 'POST', 'HEAD'))) {
- $allow = array_merge($allow, array('GET', 'POST', 'HEAD'));
- goto not_fos_user_change_password;
- }
- return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ChangePasswordController::changePasswordAction', '_route' => 'fos_user_change_password',);
- }
- not_fos_user_change_password:
- throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
- }
- }