app/Customize/Controller/TradeLawCustomizeController.php line 15

Open in your IDE?
  1. <?php
  2. namespace Customize\Controller;
  3. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. use Eccube\Controller\TradeLawController;
  6. class TradeLawCustomizeController extends TradeLawController
  7. {
  8.     /**
  9.      * @Route("/order", name="help_tradelaw", methods={"GET"})
  10.      * @Template("Help/tradelaw.twig")
  11.      */
  12.     public function index()
  13.     {
  14.         $tradelaws $this->tradeLawRepository->findBy([], ['sortNo' => 'ASC']);
  15.         return [
  16.             'tradelaws' => $tradelaws,
  17.         ];
  18.     }
  19. }