/** * @param \Magento\Backend\App\Action\Context $context * @param \Magento\Framework\Registry $coreRegistry * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory */ public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Framework\View\Result\PageFactory $resultPageFactory) { $this->resultPageFactory = $resultPageFactory; parent::__construct($context, $coreRegistry); }
/** * @param Context $context * @param \Magento\Framework\Registry $coreRegistry * @param DataPersistorInterface $dataPersistor */ public function __construct(Context $context, \Magento\Framework\Registry $coreRegistry, DataPersistorInterface $dataPersistor) { $this->dataPersistor = $dataPersistor; parent::__construct($context, $coreRegistry); }