Eccube\Controller\Mypage\MypageController::index PHP Method

index() public method

マイページ
public index ( Application $app, Request $request ) : Response
$app Eccube\Application
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response
    public function index(Application $app, Request $request)
    {
        $Customer = $app['user'];
        /* @var $softDeleteFilter \Eccube\Doctrine\Filter\SoftDeleteFilter */
        $softDeleteFilter = $app['orm.em']->getFilters()->getFilter('soft_delete');
        $softDeleteFilter->setExcludes(array('Eccube\\Entity\\ProductClass'));
        // 購入処理中/決済処理中ステータスの受注を非表示にする.
        $app['orm.em']->getFilters()->enable('incomplete_order_status_hidden');
        // paginator
        $qb = $app['eccube.repository.order']->getQueryBuilderByCustomer($Customer);
        $event = new EventArgs(array('qb' => $qb, 'Customer' => $Customer), $request);
        $app['eccube.event.dispatcher']->dispatch(EccubeEvents::FRONT_MYPAGE_MYPAGE_INDEX_SEARCH, $event);
        $pagination = $app['paginator']()->paginate($qb, $request->get('pageno', 1), $app['config']['search_pmax']);
        return $app->render('Mypage/index.twig', array('pagination' => $pagination));
    }