-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TE-9182 Added possibility to download GUI tables as CSV file (#8346)
TE-9182 Export Table Views
- Loading branch information
Showing
4 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/Spryker/Zed/Customer/Communication/Controller/DownloadController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved. | ||
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
*/ | ||
|
||
namespace Spryker\Zed\Customer\Communication\Controller; | ||
|
||
use Spryker\Zed\Kernel\Communication\Controller\AbstractController; | ||
use Symfony\Component\HttpFoundation\StreamedResponse; | ||
|
||
/** | ||
* @method \Spryker\Zed\Customer\Business\CustomerFacadeInterface getFacade() | ||
* @method \Spryker\Zed\Customer\Communication\CustomerCommunicationFactory getFactory() | ||
* @method \Spryker\Zed\Customer\Persistence\CustomerQueryContainerInterface getQueryContainer() | ||
* @method \Spryker\Zed\Customer\Persistence\CustomerRepositoryInterface getRepository() | ||
*/ | ||
class DownloadController extends AbstractController | ||
{ | ||
/** | ||
* @return \Symfony\Component\HttpFoundation\StreamedResponse | ||
*/ | ||
public function indexAction(): StreamedResponse | ||
{ | ||
return $this->getFactory()->createCustomerTable()->streamDownload(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters