1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- /**
- * Forward action class
- *
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Framework\App\Action;
- use Magento\Framework\App\RequestInterface;
- use Magento\Framework\App\ResponseInterface;
- /**
- * Forward request further.
- *
- * @SuppressWarnings(PHPMD.AllPurposeAction)
- */
- class Forward extends AbstractAction
- {
- /**
- * @param RequestInterface $request
- * @return ResponseInterface
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
- */
- public function dispatch(RequestInterface $request)
- {
- return $this->execute();
- }
- /**
- * @inheritdoc
- */
- public function execute()
- {
- $this->_request->setDispatched(false);
- return $this->_response;
- }
- }
|