<?php
namespace App\Controller\Web\Sites;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
/**
*
*/
final class CalendarController extends AbstractSiteController
{
const ROUTES__LANDING__ROOT = 'app.web.sites.calendar.landing.root';
const ROUTES__LANDING__SUB = 'app.web.sites.calendar.landing.sub';
const ROUTES__PRINT_CURRENT__ROOT = 'app.web.sites.calendar.print_current.root';
const ROUTES__PRINT_CURRENT__SUB = 'app.web.sites.calendar.print_current.sub';
const ROUTES__SUBSCRIBE__ROOT = 'app.web.sites.calendar.subscribe.root';
const ROUTES__SUBSCRIBE__SUB = 'app.web.sites.calendar.subscribe.sub';
const ROUTES__FEED__ROOT = 'app.web.sites.calendar.feed.root';
const ROUTES__FEED__SUB = 'app.web.sites.calendar.feed.sub';
const ROUTES__MONTHLY__ROOT = 'app.web.sites.calendar.monthly.root';
const ROUTES__MONTHLY__SUB = 'app.web.sites.calendar.monthly.sub';
const ROUTES__PRINT_MONTHLY__ROOT = 'app.web.sites.calendar.print_monthly.root';
const ROUTES__PRINT_MONTHLY__SUB = 'app.web.sites.calendar.print_monthly.sub';
const ROUTES__DETAILS__ROOT = 'app.web.sites.calendar.details.root';
const ROUTES__DETAILS__SUB = 'app.web.sites.calendar.details.sub';
const ROUTES__VIEW__ROOT = 'app.web.sites.calendar.view.root';
const ROUTES__VIEW__SUB = 'app.web.sites.calendar.view.sub';
/**
* @param string $host
* @param string|null $path
* @return Response
*
* @Route(
* "/calendar",
* name = self::ROUTES__LANDING__ROOT,
* )
* @Route(
* "/{path}/calendar",
* name = self::ROUTES__LANDING__SUB,
* requirements = {
* "path" = ".+",
* },
* )
*/
public function landingAction(string $host, ?string $path = null): Response
{
return $this->legacy();
}
/**
* @param string $host
* @param string|null $path
* @return Response
*
* @Route(
* "/calendar/print",
* name = self::ROUTES__PRINT_CURRENT__ROOT,
* )
* @Route(
* "/{path}/calendar/print",
* name = self::ROUTES__PRINT_CURRENT__SUB,
* requirements = {
* "path" = ".+",
* },
* )
*/
public function printCurrentAction(string $host, ?string $path = null): Response
{
return $this->legacy();
}
/**
* @param string $host
* @param string|null $path
* @return Response
*
* @Route(
* "/calendar/subscribe",
* name = self::ROUTES__SUBSCRIBE__ROOT,
* )
* @Route(
* "/{path}/calendar/subscribe",
* name = self::ROUTES__SUBSCRIBE__SUB,
* requirements = {
* "path" = ".+",
* },
* )
*/
public function subscribeAction(string $host, ?string $path = null): Response
{
return $this->legacy();
}
/**
* @param string $host
* @param string $type
* @param string|null $path
* @return Response
*
* @Route(
* "/calendar/feed/{type}",
* name = self::ROUTES__FEED__ROOT,
* requirements = {
* "type" = "rss",
* },
* )
* @Route(
* "/{path}/calendar/feed/{type}",
* name = self::ROUTES__FEED__SUB,
* requirements = {
* "path" = ".+",
* "type" = "rss",
* },
* )
*/
public function feedAction(string $host, string $type, ?string $path = null): Response
{
return $this->legacy();
}
/**
* @param string $host
* @param string $year
* @param string $month
* @param string|null $path
* @return Response
*
* @Route(
* "/calendar/monthly/{year}/{month}",
* name = self::ROUTES__MONTHLY__ROOT,
* requirements = {
* "year" = "20(?:33|32|31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13)",
* "month" = "01|02|03|04|05|06|07|08|09|10|11|12",
* },
* )
* @Route(
* "/{path}/calendar/monthly/{year}/{month}",
* name = self::ROUTES__MONTHLY__SUB,
* requirements = {
* "path" = ".+",
* "year" = "20(?:33|32|31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13)",
* "month" = "01|02|03|04|05|06|07|08|09|10|11|12",
* },
* )
*/
public function monthlyAction(string $host, string $year, string $month, ?string $path = null): Response
{
return $this->legacy();
}
/**
* @param string $host
* @param string $year
* @param string $month
* @param string|null $path
* @return Response
*
* @Route(
* "/calendar/monthly/{year}/{month}/print",
* name = self::ROUTES__PRINT_MONTHLY__ROOT,
* requirements = {
* "year" = "20(?:33|32|31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13)",
* "month" = "01|02|03|04|05|06|07|08|09|10|11|12",
* },
* )
* @Route(
* "/{path}/calendar/monthly/{year}/{month}/print",
* name = self::ROUTES__PRINT_MONTHLY__SUB,
* requirements = {
* "path" = ".+",
* "year" = "20(?:33|32|31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13)",
* "month" = "01|02|03|04|05|06|07|08|09|10|11|12",
* },
* )
*/
public function printMonthlyAction(string $host, string $year, string $month, ?string $path = null): Response
{
return $this->legacy();
}
/**
* @param string $host
* @param string $id
* @param string|null $path
* @return Response
*
* @Route(
* "/calendar/details/{id}",
* name = self::ROUTES__DETAILS__ROOT,
* requirements = {
* "id" = "[^/]+",
* },
* )
* @Route(
* "/{path}/calendar/details/{id}",
* name = self::ROUTES__DETAILS__SUB,
* requirements = {
* "path" = ".+",
* "id" = "[^/]+",
* },
* )
*/
public function detailsAction(string $host, string $id, ?string $path = null): Response
{
return $this->legacy();
}
/**
* @param string $host
* @param string $id
* @param string $slug
* @param string|null $path
* @return Response
*
* @Route(
* "/calendar/{id}/{slug}",
* name = self::ROUTES__VIEW__ROOT,
* requirements = {
* "id" = "[^/]+",
* "slug" = "[^/]+",
* },
* )
* @Route(
* "/{path}/calendar/{id}/{slug}",
* name = self::ROUTES__VIEW__SUB,
* requirements = {
* "path" = ".+",
* "id" = "[^/]+",
* "slug" = "[^/]+",
* },
* )
*/
public function viewAction(string $host, string $id, string $slug, ?string $path = null): Response
{
return $this->legacy();
}
}