/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/App/Action/Forward.php
54 строки
1 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2014 Adobe * All Rights Reserved. */ namespace Magento\Framework\App\Action; use Magento\Framework\App\CsrfAwareActionInterface; use Magento\Framework\App\RequestInterface; use Magento\Framework\App\Request\InvalidRequestException; use Magento\Framework\App\ResponseInterface; /** * Forward request further. * * @SuppressWarnings(PHPMD.AllPurposeAction) */ class Forward extends AbstractAction implements CsrfAwareActionInterface { /** * @inheritDoc * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function dispatch(RequestInterface $request) { return $this->execute(); } /** * @inheritdoc */ public function execute() { $this->_request->setDispatched(false); return $this->_response; } /** * @inheritDoc */ public function createCsrfValidationException(RequestInterface $request): ?InvalidRequestException { return new InvalidRequestException($this->_response); } /** * @inheritDoc */ public function validateForCsrf(RequestInterface $request): ?bool { // This exists so that we can forward to the noroute action in the admin return true; } }