Gaufrette is fully removed from the plugin. Files copied by the
monsieurbiz_rich_editor_file fixture are stored through the Flysystem storage
monsieurbiz_rich_editor_fixture_file (provided by league/flysystem-bundle, already
shipped with Sylius 2).
- The plugin no longer declares or reads any
knp_gaufretteconfiguration. The following keys are ignored:knp_gaufrette.adapters.monsieurbiz_rich_editor_fixture_fileknp_gaufrette.filesystems.monsieurbiz_rich_editor_fixture_file
- The service
gaufrette.monsieurbiz_rich_editor_fixture_file_filesystemno longer exists. MonsieurBiz\SyliusRichEditorPlugin\Uploader\FixtureFileUploadernow expects aLeague\Flysystem\FilesystemOperatorinstead of aGaufrette\FilesystemInterface. It is autowired with themonsieurbiz_rich_editor_fixture_filestorage.
The default behavior is unchanged: files are still written to %sylius_core.public_dir%/media.
If you did not override the Gaufrette adapter or filesystem, there is nothing to do.
If you did, move your override to the Flysystem storage. For example, this configuration:
knp_gaufrette:
adapters:
monsieurbiz_rich_editor_fixture_file:
local:
directory: '%kernel.project_dir%/public/my-media'
create: truebecomes:
flysystem:
storages:
monsieurbiz_rich_editor_fixture_file:
adapter: 'local'
options:
directory: '%kernel.project_dir%/public/my-media'
directory_visibility: 'public'If you injected gaufrette.monsieurbiz_rich_editor_fixture_file_filesystem in your own services,
inject monsieurbiz_rich_editor_fixture_file instead and use the Flysystem API
(fileExists(), write(), delete(), …).
If you decorated or replaced FixtureFileUploader, update its constructor to receive a
League\Flysystem\FilesystemOperator.
You can then remove knplabs/knp-gaufrette-bundle from your project if nothing else uses it.