Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #36868 [Validator] Use Mime component to determine mime type for …
…file validator (pierredup) This PR was merged into the 4.4 branch. Discussion ---------- [Validator] Use Mime component to determine mime type for file validator | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A When validating the mime type for a file, the Validator component relies on the `Symfony\Component\HttpFoundation\File\File` class, but if the HttpFoundation component is not installed, then you just get the error ``` PHP Fatal error: Uncaught Error: Class 'Symfony\Component\HttpFoundation\File\File' not found ``` This PR uses the Mime component to get the mime type for a file and throws an exception if the Mime component is not installed. Commits ------- 4728833 [Validator] Use Mime component to determine mime type for file validator
- Loading branch information