src/UI/WebBundle/Controller/Zones/PublicZonesController.php line 20

Open in your IDE?
  1. <?php
  2. namespace Whater\UI\WebBundle\Controller\Zones;
  3. use Whater\UI\WebBundle\Controller\AbstractBusController;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. use Symfony\Component\HttpFoundation\RedirectResponse;
  6. use Symfony\Component\HttpFoundation\Request;
  7. /**
  8. * @Route("public/zones")
  9. */
  10. class PublicZonesController extends AbstractBusController
  11. {
  12. /**
  13. * USE web_public_town_show
  14. * @Route("/show/town/{townId}", name="web_public_town_show_1", defaults={"_format" = "html"})
  15. */
  16. public function showDistributionNetworkIdAction(Request $request, $townId)
  17. {
  18. return new RedirectResponse($this->router()->generate('web_public_town_show', ['townId' => $townId]));
  19. }
  20. /**
  21. * USE web_public_town_show
  22. * @Route("/show/town/id/{townId}", name="web_public_town_show_2", defaults={"_format" = "html"})
  23. */
  24. public function showTownAction(Request $request, $townId)
  25. {
  26. return new RedirectResponse($this->router()->generate('web_public_town_show', ['townId' => $townId]));
  27. }
  28. /**
  29. * USE web_public_town_show_by_slug
  30. * @Route("/show/town/name/{townSlug}", name="web_public_town_show_by_slug_1", defaults={"_format" = "html"})
  31. */
  32. public function showTownBySlugAction(Request $request, $townSlug)
  33. {
  34. return new RedirectResponse($this->router()->generate('web_public_town_show_by_slug', ['townSlug' => $townSlug]));
  35. }
  36. /**
  37. * USE web_public_location_show
  38. * @Route("/show/location/{ubicationId}", name="web_public_ubication_show_1", defaults={"_format" = "html"})
  39. */
  40. public function showLocationAction(Request $request, $ubicationId)
  41. {
  42. return new RedirectResponse($this->router()->generate('web_public_ubication_show', ['ubicationId' => $ubicationId]));
  43. }
  44. /**
  45. * USE web_public_establishment_show
  46. * @Route("/show/establishment/{establishmentId}", name="web_public_establishment_show_1", defaults={"_format" = "html"})
  47. */
  48. public function showEstablishmentAction(Request $request, $establishmentId)
  49. {
  50. return new RedirectResponse($this->router()->generate('web_public_establishment_show', ['establishmentId' => $establishmentId]));
  51. }
  52. }