src/Eccube/Controller/TradeLawController.php line 38

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 Eccube\Repository\TradeLawRepository;
  14. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  15. use Symfony\Component\Routing\Annotation\Route;
  16. class TradeLawController extends AbstractController
  17. {
  18.     /** @var TradeLawRepository */
  19.     protected $tradeLawRepository;
  20.     /**
  21.      * @param TradeLawRepository $tradeLawRepository
  22.      */
  23.     public function __construct(
  24.         TradeLawRepository $tradeLawRepository
  25.     ) {
  26.         $this->tradeLawRepository $tradeLawRepository;
  27.     }
  28.     /**
  29.      * @Route("/help/tradelaw", name="help_tradelaw", methods={"GET"})
  30.      * @Template("Help/tradelaw.twig")
  31.      */
  32.     public function index()
  33.     {
  34.         $tradelaws $this->tradeLawRepository->findBy([], ['sortNo' => 'ASC']);
  35.         return [
  36.             'tradelaws' => $tradelaws,
  37.         ];
  38.     }
  39. }