The Export plugin allows you to export all data of any entity directly from the configuration file.
Require plugin with composer :
composer require abenmada/sylius-export-plugin
Change your config/bundles.php
file to add the line for the plugin :
<?php
return [
//..
Abenmada\ExportPlugin\ExportPlugin::class => ['all' => true],
]
Then create the config file in config/packages/abenmada_export_plugin.yaml
:
imports:
- { resource: "@ExportPlugin/Resources/config/services.yaml" }
Then import the routes in config/routes/abenmada_export_plugin.yaml
:
abenmada_export_plugin_routing:
resource: "@ExportPlugin/Resources/config/routes.yaml"
prefix: /%sylius_admin.path_name%