init
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Stemcell\Customer\Controller\Adminhtml\Lab;
|
||||
|
||||
use Magento\Backend\App\Action\Context;
|
||||
use Magento\Framework\App\Action\HttpGetActionInterface;
|
||||
use Magento\Framework\App\Action\HttpPostActionInterface;
|
||||
use Magento\Framework\App\Response\Http\FileFactory;
|
||||
use Magento\Ui\Component\MassAction\Filter;
|
||||
use Magento\Ui\Model\Export\ConvertToCsv;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class Export extends \Magento\Ui\Controller\Adminhtml\Export\GridToCsv
|
||||
{
|
||||
public function __construct(
|
||||
Context $context,
|
||||
ConvertToCsv $converter,
|
||||
FileFactory $fileFactory,
|
||||
protected \Stemcell\Customer\Model\Lab\Export $exportModel,
|
||||
Filter $filter = null,
|
||||
LoggerInterface $logger = null
|
||||
){
|
||||
parent::__construct($context, $converter, $fileFactory, $filter, $logger);
|
||||
}
|
||||
|
||||
public function execute()
|
||||
{
|
||||
return $this->fileFactory->create('Labs-'.date('YmdHis').'.xlsx', $this->exportModel->getExcelFile(), 'var');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user