src/PHPDish/Bundle/PaymentBundle/Controller/PaymentController.php
public function getWalletAction(Request $request)
    {
        $this->denyAccessUnlessGranted('IS_AUTHENTICATED_REMEMBERED');
        $wallet = $this->getWalletManager()->getUserWallet($this->getUser());
        $histories = $this->getWalletManager()->findUserWalletHistories($wallet,
            $request->query->getInt('page', 1)
        );
        return $this->render($this->configuration->getTemplate('Wallet:index.html.twig'), [
            'wallet' => $wallet,
            'histories' => $histories
        ]);
    }
public function getWalletAction(Request $request)
    {
        $this->denyAccessUnlessGranted('IS_AUTHENTICATED_REMEMBERED');
        $wallet = $this->getWalletManager()->getUserWallet($this->getUser());
        $histories = $this->getWalletManager()->findUserWalletHistories($wallet,
            $request->query->getInt('page', 1)
        );
        return $this->render($this->configuration->getTemplate('Wallet:index.html.twig'), [
            'wallet' => $wallet,
            'histories' => $histories
        ]);
    }
处理消息推送
@Route("/wallet", name="user_wallet")
@param Request $request
@return Response