예제 #1
0
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\ImportExport\Model\Report\ReportProcessorInterface $reportProcessor
  * @param \Magento\ImportExport\Model\History $historyModel
  * @param \Magento\ImportExport\Helper\Report $reportHelper
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\ImportExport\Model\Report\ReportProcessorInterface $reportProcessor, \Magento\ImportExport\Model\History $historyModel, \Magento\ImportExport\Helper\Report $reportHelper)
 {
     parent::__construct($context);
     $this->reportProcessor = $reportProcessor;
     $this->historyModel = $historyModel;
     $this->reportHelper = $reportHelper;
 }
예제 #2
0
파일: Download.php 프로젝트: nja78/magento2
 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\App\Response\Http\FileFactory $fileFactory
  * @param \Magento\Framework\Controller\Result\RawFactory $resultRawFactory
  * @param \Magento\Framework\Filesystem $filesystem
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\App\Response\Http\FileFactory $fileFactory, \Magento\Framework\Controller\Result\RawFactory $resultRawFactory, \Magento\Framework\Filesystem $filesystem)
 {
     parent::__construct($context);
     $this->fileFactory = $fileFactory;
     $this->resultRawFactory = $resultRawFactory;
     $this->fileDirectory = $filesystem->getDirectoryWrite(DirectoryList::MODULES);
 }
예제 #3
0
 /**
  * Constructor
  *
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\App\Response\Http\FileFactory $fileFactory
  * @param \Magento\Framework\Controller\Result\RawFactory $resultRawFactory
  * @param \Magento\Framework\Filesystem\Directory\ReadFactory $readFactory
  * @param \Magento\Framework\Module\Dir\Reader $reader
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\App\Response\Http\FileFactory $fileFactory, \Magento\Framework\Controller\Result\RawFactory $resultRawFactory, \Magento\Framework\Filesystem\Directory\ReadFactory $readFactory, \Magento\Framework\Module\Dir\Reader $reader)
 {
     parent::__construct($context);
     $this->fileFactory = $fileFactory;
     $this->resultRawFactory = $resultRawFactory;
     $this->readFactory = $readFactory;
     $this->reader = $reader;
 }