123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- /**
- *
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Checkout\Controller\Cart;
- use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
- class Index extends \Magento\Checkout\Controller\Cart implements HttpGetActionInterface
- {
- /**
- * @var \Magento\Framework\View\Result\PageFactory
- */
- protected $resultPageFactory;
- /**
- * @param \Magento\Framework\App\Action\Context $context
- * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
- * @param \Magento\Checkout\Model\Session $checkoutSession
- * @param \Magento\Store\Model\StoreManagerInterface $storeManager
- * @param \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator
- * @param \Magento\Checkout\Model\Cart $cart
- * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
- * @codeCoverageIgnore
- */
- public function __construct(
- \Magento\Framework\App\Action\Context $context,
- \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
- \Magento\Checkout\Model\Session $checkoutSession,
- \Magento\Store\Model\StoreManagerInterface $storeManager,
- \Magento\Framework\Data\Form\FormKey\Validator $formKeyValidator,
- \Magento\Checkout\Model\Cart $cart,
- \Magento\Framework\View\Result\PageFactory $resultPageFactory
- ) {
- parent::__construct(
- $context,
- $scopeConfig,
- $checkoutSession,
- $storeManager,
- $formKeyValidator,
- $cart
- );
- $this->resultPageFactory = $resultPageFactory;
- }
- /**
- * Shopping cart display action
- *
- * @return \Magento\Framework\View\Result\Page
- */
- public function execute()
- {
- $resultPage = $this->resultPageFactory->create();
- $resultPage->getConfig()->getTitle()->set(__('Shopping Cart'));
- return $resultPage;
- }
- }
|