Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds Symfony Form integration with a compound FileType that preserves the original Model\File across submissions, supports MIME type validation, multiple uploads, and an optional delete checkbox. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…on validation - Fix PRE_SUBMIT not restoring original files in multiple mode (empty array is not null, so ??= never triggered) - Add explicit priorities to POST_SET_DATA listeners to guarantee data capture runs before delete checkbox is added - Skip empty File constraint when mime_types is not configured - Add normalizer to throw LogicException when allow_delete conflicts with required option instead of silently ignoring Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…lace $entityClass with $entity in events - Add 17 integration tests for FileType covering single file, collection, delete, view vars, and cleanup - Fix FileType nested options (delete_options, entry_options) to use Symfony 8 setOptions() API - Replace $entityClass (string) with $entity (object) across all events and Handler::remove() - Update README and CLAUDE.md to reflect the event API changes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
delete_optionsandentry_optionsfrom inline closures insetDefaults()to Symfony 8'ssetOptions()API — the old API no longer auto-detectsOptionsResolver-parameter closures as nested options$entityClasswith$entityin all events: All events (PreUploadEvent,PostUploadEvent,PreRemoveEvent,PostRemoveEvent) now carry the entity object instead of the class name string, enablinginstanceofchecks instead of string comparisonTest plan
composer run-script test— 131 tests, 306 assertions, all passcomposer run-script analyse— PHPStan level max, no errorscomposer run-script cs-check— no CS violations🤖 Generated with Claude Code