mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
- removed @since 2.0.0 as it is a base release - updated version in @since and @deprecated tag taking into account all patch releases
30 lines
862 B
PHP
30 lines
862 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Persistent\Controller\Index;
|
|
|
|
use Magento\Persistent\Controller\Index;
|
|
use Magento\Framework\Controller\ResultFactory;
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
class ExpressCheckout extends Index
|
|
{
|
|
/**
|
|
* Add appropriate session message and redirect to shopping cart
|
|
*
|
|
* @return \Magento\Framework\Controller\Result\Redirect
|
|
*/
|
|
public function execute()
|
|
{
|
|
$this->messageManager->addNotice(__('Your shopping cart has been updated with new prices.'));
|
|
/** @var \Magento\Framework\Controller\Result\Redirect $resultRedirect */
|
|
$resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
|
|
$resultRedirect->setPath('checkout/cart');
|
|
return $resultRedirect;
|
|
}
|
|
}
|