src/App/Controller/Web/Sites/CalendarController.php line 237

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Web\Sites;
  3. use Symfony\Component\HttpFoundation\Response;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. /**
  6.  *
  7.  */
  8. final class CalendarController extends AbstractSiteController
  9. {
  10.     const ROUTES__LANDING__ROOT 'app.web.sites.calendar.landing.root';
  11.     const ROUTES__LANDING__SUB 'app.web.sites.calendar.landing.sub';
  12.     const ROUTES__PRINT_CURRENT__ROOT 'app.web.sites.calendar.print_current.root';
  13.     const ROUTES__PRINT_CURRENT__SUB 'app.web.sites.calendar.print_current.sub';
  14.     const ROUTES__SUBSCRIBE__ROOT 'app.web.sites.calendar.subscribe.root';
  15.     const ROUTES__SUBSCRIBE__SUB 'app.web.sites.calendar.subscribe.sub';
  16.     const ROUTES__FEED__ROOT 'app.web.sites.calendar.feed.root';
  17.     const ROUTES__FEED__SUB 'app.web.sites.calendar.feed.sub';
  18.     const ROUTES__MONTHLY__ROOT 'app.web.sites.calendar.monthly.root';
  19.     const ROUTES__MONTHLY__SUB 'app.web.sites.calendar.monthly.sub';
  20.     const ROUTES__PRINT_MONTHLY__ROOT 'app.web.sites.calendar.print_monthly.root';
  21.     const ROUTES__PRINT_MONTHLY__SUB 'app.web.sites.calendar.print_monthly.sub';
  22.     const ROUTES__DETAILS__ROOT 'app.web.sites.calendar.details.root';
  23.     const ROUTES__DETAILS__SUB 'app.web.sites.calendar.details.sub';
  24.     const ROUTES__VIEW__ROOT 'app.web.sites.calendar.view.root';
  25.     const ROUTES__VIEW__SUB 'app.web.sites.calendar.view.sub';
  26.     /**
  27.      * @param string $host
  28.      * @param string|null $path
  29.      * @return Response
  30.      *
  31.      * @Route(
  32.      *     "/calendar",
  33.      *     name = self::ROUTES__LANDING__ROOT,
  34.      * )
  35.      * @Route(
  36.      *     "/{path}/calendar",
  37.      *     name = self::ROUTES__LANDING__SUB,
  38.      *     requirements = {
  39.      *         "path" = ".+",
  40.      *     },
  41.      * )
  42.      */
  43.     public function landingAction(string $host, ?string $path null): Response
  44.     {
  45.         return $this->legacy();
  46.     }
  47.     /**
  48.      * @param string $host
  49.      * @param string|null $path
  50.      * @return Response
  51.      *
  52.      * @Route(
  53.      *     "/calendar/print",
  54.      *     name = self::ROUTES__PRINT_CURRENT__ROOT,
  55.      * )
  56.      * @Route(
  57.      *     "/{path}/calendar/print",
  58.      *     name = self::ROUTES__PRINT_CURRENT__SUB,
  59.      *     requirements = {
  60.      *         "path" = ".+",
  61.      *     },
  62.      * )
  63.      */
  64.     public function printCurrentAction(string $host, ?string $path null): Response
  65.     {
  66.         return $this->legacy();
  67.     }
  68.     /**
  69.      * @param string $host
  70.      * @param string|null $path
  71.      * @return Response
  72.      *
  73.      * @Route(
  74.      *     "/calendar/subscribe",
  75.      *     name = self::ROUTES__SUBSCRIBE__ROOT,
  76.      * )
  77.      * @Route(
  78.      *     "/{path}/calendar/subscribe",
  79.      *     name = self::ROUTES__SUBSCRIBE__SUB,
  80.      *     requirements = {
  81.      *         "path" = ".+",
  82.      *     },
  83.      * )
  84.      */
  85.     public function subscribeAction(string $host, ?string $path null): Response
  86.     {
  87.         return $this->legacy();
  88.     }
  89.     /**
  90.      * @param string $host
  91.      * @param string $type
  92.      * @param string|null $path
  93.      * @return Response
  94.      *
  95.      * @Route(
  96.      *     "/calendar/feed/{type}",
  97.      *     name = self::ROUTES__FEED__ROOT,
  98.      *     requirements = {
  99.      *         "type" = "rss",
  100.      *     },
  101.      * )
  102.      * @Route(
  103.      *     "/{path}/calendar/feed/{type}",
  104.      *     name = self::ROUTES__FEED__SUB,
  105.      *     requirements = {
  106.      *         "path" = ".+",
  107.      *         "type" = "rss",
  108.      *     },
  109.      * )
  110.      */
  111.     public function feedAction(string $hoststring $type, ?string $path null): Response
  112.     {
  113.         return $this->legacy();
  114.     }
  115.     /**
  116.      * @param string $host
  117.      * @param string $year
  118.      * @param string $month
  119.      * @param string|null $path
  120.      * @return Response
  121.      *
  122.      * @Route(
  123.      *     "/calendar/monthly/{year}/{month}",
  124.      *     name = self::ROUTES__MONTHLY__ROOT,
  125.      *     requirements = {
  126.      *         "year" = "20(?:33|32|31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13)",
  127.      *         "month" = "01|02|03|04|05|06|07|08|09|10|11|12",
  128.      *     },
  129.      * )
  130.      * @Route(
  131.      *     "/{path}/calendar/monthly/{year}/{month}",
  132.      *     name = self::ROUTES__MONTHLY__SUB,
  133.      *     requirements = {
  134.      *         "path" = ".+",
  135.      *         "year" = "20(?:33|32|31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13)",
  136.      *         "month" = "01|02|03|04|05|06|07|08|09|10|11|12",
  137.      *     },
  138.      * )
  139.      */
  140.     public function monthlyAction(string $hoststring $yearstring $month, ?string $path null): Response
  141.     {
  142.         return $this->legacy();
  143.     }
  144.     /**
  145.      * @param string $host
  146.      * @param string $year
  147.      * @param string $month
  148.      * @param string|null $path
  149.      * @return Response
  150.      *
  151.      * @Route(
  152.      *     "/calendar/monthly/{year}/{month}/print",
  153.      *     name = self::ROUTES__PRINT_MONTHLY__ROOT,
  154.      *     requirements = {
  155.      *         "year" = "20(?:33|32|31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13)",
  156.      *         "month" = "01|02|03|04|05|06|07|08|09|10|11|12",
  157.      *     },
  158.      * )
  159.      * @Route(
  160.      *     "/{path}/calendar/monthly/{year}/{month}/print",
  161.      *     name = self::ROUTES__PRINT_MONTHLY__SUB,
  162.      *     requirements = {
  163.      *         "path" = ".+",
  164.      *         "year" = "20(?:33|32|31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13)",
  165.      *         "month" = "01|02|03|04|05|06|07|08|09|10|11|12",
  166.      *     },
  167.      * )
  168.      */
  169.     public function printMonthlyAction(string $hoststring $yearstring $month, ?string $path null): Response
  170.     {
  171.         return $this->legacy();
  172.     }
  173.     /**
  174.      * @param string $host
  175.      * @param string $id
  176.      * @param string|null $path
  177.      * @return Response
  178.      *
  179.      * @Route(
  180.      *     "/calendar/details/{id}",
  181.      *     name = self::ROUTES__DETAILS__ROOT,
  182.      *     requirements = {
  183.      *         "id" = "[^/]+",
  184.      *     },
  185.      * )
  186.      * @Route(
  187.      *     "/{path}/calendar/details/{id}",
  188.      *     name = self::ROUTES__DETAILS__SUB,
  189.      *     requirements = {
  190.      *         "path" = ".+",
  191.      *         "id" = "[^/]+",
  192.      *     },
  193.      * )
  194.      */
  195.     public function detailsAction(string $hoststring $id, ?string $path null): Response
  196.     {
  197.         return $this->legacy();
  198.     }
  199.     /**
  200.      * @param string $host
  201.      * @param string $id
  202.      * @param string $slug
  203.      * @param string|null $path
  204.      * @return Response
  205.      *
  206.      * @Route(
  207.      *     "/calendar/{id}/{slug}",
  208.      *     name = self::ROUTES__VIEW__ROOT,
  209.      *     requirements = {
  210.      *         "id" = "[^/]+",
  211.      *         "slug" = "[^/]+",
  212.      *     },
  213.      * )
  214.      * @Route(
  215.      *     "/{path}/calendar/{id}/{slug}",
  216.      *     name = self::ROUTES__VIEW__SUB,
  217.      *     requirements = {
  218.      *         "path" = ".+",
  219.      *         "id" = "[^/]+",
  220.      *         "slug" = "[^/]+",
  221.      *     },
  222.      * )
  223.      */
  224.     public function viewAction(string $hoststring $idstring $slug, ?string $path null): Response
  225.     {
  226.         return $this->legacy();
  227.     }
  228. }