From 3f080643aeac6ad87115faa80b3385e468e4a145 Mon Sep 17 00:00:00 2001 From: Nicolas Joubert Date: Wed, 4 Nov 2026 16:49:39 +0100 Subject: [PATCH] #75 - Documentation: use the form option of ui-process-bundle in the import_archive cookbook Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + docs/cookbooks/import_archive.md | 17 ++++++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb4ccde..e935db9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/docs/cookbooks/import_archive.md b/docs/cookbooks/import_archive.md index d7b9dfb..1e93aec 100644 --- a/docs/cookbooks/import_archive.md +++ b/docs/cookbooks/import_archive.md @@ -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 @@ -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)