<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
*
* http://www.ec-cube.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eccube\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\Routing\Annotation\Route;
use Eccube\Service\CalendarService;
class HelpController extends AbstractController
{
/**
* @var CalendarService
*/
protected $calendarService;
/**
* HelpController constructor.
*/
public function __construct(CalendarService $calendarService)
{
$this->calendarService = $calendarService;
}
/**
* ご利用ガイド.
*
* @Route("/guide", name="help_guide", methods={"GET"})
* @Template("Help/guide.twig")
*/
public function guide()
{
$calendarData = $this->calendarService->getCalendarData();
return [
// 必要なデータを返します
'ThisMonthTitle' => $calendarData['ThisMonthTitle'],
'NextMonthTitle' => $calendarData['NextMonthTitle'],
'ThisMonthCalendar' => $calendarData['ThisMonthCalendar'],
'NextMonthCalendar' => $calendarData['NextMonthCalendar'],
];
}
/**
* 当サイトについて.
*
* @Route("/help/about", name="help_about", methods={"GET"})
* @Template("Help/about.twig")
*/
public function about()
{
return [];
}
/**
* プライバシーポリシー.
*
* @Route("/help/privacy", name="help_privacy", methods={"GET"})
* @Template("Help/privacy.twig")
*/
public function privacy()
{
return [];
}
/**
* 利用規約.
*
* @Route("/help/agreement", name="help_agreement", methods={"GET"})
* @Template("Help/agreement.twig")
*/
public function agreement()
{
return [];
}
}