src/Controller/DefaultController.php line 20

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: uwethiess
  5.  * Date: 26.09.16
  6.  * Time: 14:45
  7.  */
  8. namespace App\Controller;
  9. use Symfony\Component\Routing\Annotation\Route;
  10. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  11. use Symfony\Component\HttpFoundation\Response;
  12. class DefaultController extends AbstractController
  13. {
  14.     
  15.     /**
  16.      * @Route("/", name="root")
  17.      */
  18.     public function rootAction()
  19.     {
  20.         return $this->render('landingpage.html.twig', ['blank' => false]);
  21.     }
  22.     
  23.     /**
  24.      * @Route("/activate", name="link_activate")
  25.      */
  26.     public function linkactivateAction()
  27.     {
  28.         return $this->redirectToRoute('user_account');
  29.     }
  30.     
  31.     /**
  32.      * @Route("/service/privacy", name="service_privacy")
  33.      */
  34.     public function privacyAction()
  35.     {
  36.         return $this->render('common/privacy.html.twig');
  37.     }
  38.     
  39.     /**
  40.      * @Route("/service/tos", name="service_tos")
  41.      */
  42.     public function tosAction()
  43.     {
  44.         return $this->render('common/tos_new.html.twig');
  45.     }
  46.     /**
  47.      * @Route("/service/tos2023", name="service_tos_new")
  48.      */
  49.     public function tosnewAction()
  50.     {
  51.         return $this->render('common/tos_new.html.twig');
  52.     }
  53.     /**
  54.      * @Route("/service/legal", name="service_legal")
  55.      */
  56.     public function legalAction()
  57.     {
  58.         return $this->render('common/legal.html.twig');
  59.     }
  60.     /**
  61.      * @Route("/service/pricing", name="service_pricing")
  62.      */
  63.     public function pricingAction()
  64.     {
  65.         return $this->render('common/pricing.html.twig');
  66.     }
  67.     /**
  68.      * @Route("/public/map/{key}", name="public_shared_map")
  69.      */
  70.     public function publicMapAction($key) {
  71. //        die("test");
  72.         return $this->render('public/shared_map.html.twig', ['user_key' => $key]);
  73.     }
  74.     
  75. }