src/Eccube/Controller/HelpController.php line 41

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of EC-CUBE
  4.  *
  5.  * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6.  *
  7.  * http://www.ec-cube.co.jp/
  8.  *
  9.  * For the full copyright and license information, please view the LICENSE
  10.  * file that was distributed with this source code.
  11.  */
  12. namespace Eccube\Controller;
  13. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  14. use Symfony\Component\Routing\Annotation\Route;
  15. use Eccube\Service\CalendarService;
  16. class HelpController extends AbstractController
  17. {
  18.     /**
  19.      * @var CalendarService
  20.      */
  21.     protected $calendarService;
  22.     /**
  23.      * HelpController constructor.
  24.      */
  25.     public function __construct(CalendarService $calendarService)
  26.     {
  27.         $this->calendarService $calendarService;
  28.     }
  29.     /**
  30.      * ご利用ガイド.
  31.      *
  32.      * @Route("/guide", name="help_guide", methods={"GET"})
  33.      * @Template("Help/guide.twig")
  34.      */
  35.     public function guide()
  36.     {
  37.         $calendarData $this->calendarService->getCalendarData();
  38.         return [
  39.             // 必要なデータを返します
  40.             'ThisMonthTitle' => $calendarData['ThisMonthTitle'],
  41.             'NextMonthTitle' => $calendarData['NextMonthTitle'],
  42.             'ThisMonthCalendar' => $calendarData['ThisMonthCalendar'],
  43.             'NextMonthCalendar' => $calendarData['NextMonthCalendar'],
  44.         ];
  45.     }
  46.     /**
  47.      * 当サイトについて.
  48.      *
  49.      * @Route("/help/about", name="help_about", methods={"GET"})
  50.      * @Template("Help/about.twig")
  51.      */
  52.     public function about()
  53.     {
  54.         return [];
  55.     }
  56.     /**
  57.      * プライバシーポリシー.
  58.      *
  59.      * @Route("/help/privacy", name="help_privacy", methods={"GET"})
  60.      * @Template("Help/privacy.twig")
  61.      */
  62.     public function privacy()
  63.     {
  64.         return [];
  65.     }
  66.     /**
  67.      * 利用規約.
  68.      *
  69.      * @Route("/help/agreement", name="help_agreement", methods={"GET"})
  70.      * @Template("Help/agreement.twig")
  71.      */
  72.     public function agreement()
  73.     {
  74.         return [];
  75.     }
  76. }