Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Latest
------

### Changes
* [#75](https://github.com/cleverage/archive-process-bundle/issues/75) Documentation: the `import_archive` cookbook uses the `form` option of cleverage/ui-process-bundle 3.5 instead of the deprecated `entrypoint_type` and `constraints` UI options.
* [#73](https://github.com/cleverage/archive-process-bundle/issues/73) Documentation: the Flysystem storages of the `export_archive_upload` cookbook are configured with the format of league/flysystem-bundle 3.5 and later, the `adapter` / `options` format being deprecated since flysystem-bundle 3.5.

v2.5
Expand Down
17 changes: 8 additions & 9 deletions docs/cookbooks/import_archive.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ clever_age_process:
options:
ui:
ui_launch_mode: form
entrypoint_type: file # The uploaded file path is used as input
constraints:
- Collection:
fields:
input:
- File:
mimeTypes: [application/zip]
context: ~
form:
input: # The uploaded file path is used as input
type: Symfony\Component\Form\Extension\Core\Type\FileType
options:
constraints:
- File:
mimeTypes: [application/zip]
tasks:
prepare:
task: transformer
Expand Down Expand Up @@ -63,7 +62,7 @@ clever_age_process:

How it works:
- The process input is the path of the archive (`--input` option, or the uploaded file when launched from the UI with
`entrypoint_type: file`). As the [UnzipTask](../reference/tasks/unzip_task.md) only accepts an array input, the
a `FileType` input field). As the [UnzipTask](../reference/tasks/unzip_task.md) only accepts an array input, the
[TransformerTask](https://github.com/cleverage/process-bundle/blob/main/docs/reference/tasks/transformer_task.md)
wraps it under the `filename` key with the
[wrapper](https://github.com/cleverage/process-bundle/blob/main/docs/reference/transformers/wrapper_transformer.md)
Expand Down
Loading