<?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 Customize\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\Routing\Annotation\Route;
use Eccube\Controller\AbstractController;
use Eccube\Repository\CustomerRepository;
use Eccube\Repository\ProductRepository;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Eccube\Entity\Product;
class TopController extends AbstractController
{
/**
* @var CustomerRepository
*/
protected $customerRepository;
/**
* @var ProductRepository
*/
protected $productRepository;
/**
* ProductController constructor.
*
* @param CustomerRepository $customerRepository
* @param ProductRepository $productRepository
*/
public function __construct(
CustomerRepository $customerRepository ,
ProductRepository $productRepository
) {
$this->customerRepository = $customerRepository;
$this->productRepository = $productRepository;
}
/**
* @Route("/", name="homepage")
* @Template("index.twig")
*/
public function index(Request $request)
{
return [];
}
/**
* @Route("/shop-intro", name="shop_intro")
* @Template("Help/shop_intro.twig")
*/
public function shop_intro()
{
// if($this->getUser() == null)
// {
// return [];
// }
// else{
// $Customer = $this->getUser();
// $flag = $Customer->getCustomData(10);
// return [
// 'flag' => $flag
// ];
// }
return [
];
}
/**
* @Route("/special-sale", name="special_sale")
* @Template("Help/special_sale.twig")
*/
public function special_sale(){
return[
] ;
}
/**
* @Route("/hajimete", name="hajimete")
* @Template("Help/hajimete.twig")
*/
public function hajimete(){
return[
] ;
}
}