![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/amasty/feed/Controller/Adminhtml/GoogleWizard/ |
<?php /** * @author Amasty Team * @copyright Copyright (c) Amasty (https://www.amasty.com) * @package Product Feed for Magento 2 */ namespace Amasty\Feed\Controller\Adminhtml\GoogleWizard; use Amasty\Feed\Controller\Adminhtml\AbstractGoogleWizard; use Amasty\Feed\Model\RegistryContainer; use Magento\Framework\Controller\ResultFactory; class Index extends AbstractGoogleWizard { /** * @var RegistryContainer */ private $registryContainer; public function __construct( \Magento\Backend\App\Action\Context $context, \Amasty\Feed\Model\RegistryContainer $registryContainer ) { parent::__construct($context); $this->registryContainer = $registryContainer; } /** * @inheritdoc */ public function execute() { /** @var \Magento\Backend\Model\View\Result\Page $resultPage */ $resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE); $valueOfFirstStep = RegistryContainer::VALUE_FIRST_STEP; $step = $this->getRequest()->getParam(RegistryContainer::VAR_STEP, $valueOfFirstStep); $categoryMappedId = $this->getRequest()->getParam(RegistryContainer::VAR_CATEGORY_MAPPER); $identifierExistsId = $this->getRequest()->getParam(RegistryContainer::VAR_IDENTIFIER_EXISTS); $feedId = $this->getRequest()->getParam(RegistryContainer::VAR_FEED); $this->registryContainer->setValue(RegistryContainer::VAR_CATEGORY_MAPPER, $categoryMappedId); $this->registryContainer->setValue(RegistryContainer::VAR_FEED, $feedId); $this->registryContainer->setValue(RegistryContainer::VAR_IDENTIFIER_EXISTS, $identifierExistsId); $this->registryContainer->setValue(RegistryContainer::VAR_STEP, $step); $resultPage->setActiveMenu('Amasty_Feed::feed'); $resultPage->addBreadcrumb(__('Amasty Feed'), __('Amasty Feed')); $resultPage->addBreadcrumb(__('Google Feed Wizard'), __('Google Feed Wizard')); $resultPage->getConfig()->getTitle()->prepend(__('Google Feed Wizard')); return $resultPage; } }