Your IP : 127.0.0.1
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) 2020 Amasty (https://www.amasty.com)
* @package Amasty_Shopby
*/
namespace Amasty\Shopby\Controller\Adminhtml\Group;
use Magento\Framework\App\Cache\TypeListInterface;
/**
* Class NewAction
* @package Amasty\Shopby\Controller\Adminhtml\Group
*/
class NewAction extends \Amasty\Shopby\Controller\Adminhtml\Group
{
/**
* @var \Magento\Backend\Model\View\Result\ForwardFactory
*/
protected $resultForwardFactory;
/**
* NewAction constructor.
* @param \Magento\Backend\App\Action\Context $context
* @param \Magento\Framework\Registry $coreRegistry
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
* @param \Amasty\Shopby\Model\GroupAttrFactory $groupAttrFactory
* @param \Amasty\Shopby\Api\Data\GroupAttrRepositoryInterface $groupAttrRepository
* @param \Magento\Backend\Model\SessionFactory $sessionFactory
* @param TypeListInterface $typeList
* @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
*/
public function __construct(
\Magento\Backend\App\Action\Context $context,
\Magento\Framework\Registry $coreRegistry,
\Magento\Framework\View\Result\PageFactory $resultPageFactory,
\Amasty\Shopby\Model\GroupAttrFactory $groupAttrFactory,
\Amasty\Shopby\Api\Data\GroupAttrRepositoryInterface $groupAttrRepository,
\Magento\Backend\Model\SessionFactory $sessionFactory,
TypeListInterface $typeList,
\Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
) {
$this->resultForwardFactory = $resultForwardFactory;
parent::__construct(
$context,
$coreRegistry,
$resultPageFactory,
$groupAttrFactory,
$groupAttrRepository,
$sessionFactory,
$typeList
);
}
/**
* Create new CMS block
*
* @return \Magento\Framework\Controller\ResultInterface
*/
public function execute()
{
/** @var \Magento\Framework\Controller\Result\Forward $resultForward */
$resultForward = $this->resultForwardFactory->create();
return $resultForward->forward('edit');
}
/**
* {@inheritdoc}
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Amasty_Shopby::group_attributes');
}
}