Releases: Warxcell/files
Releases · Warxcell/files
Fix bug with multiple files.
2.1.1 Merge branch '2.0' into 2.1
Fix bug with multiple files.
2.0.1 fix bug with multiple files
Support Doctrine/Persistence ^2.1
Support Doctrine/Persistence ^2.1
New features and FlySystem V2 Support.
Files is now supporting FlySystem V2. https://flysystem.thephpleague.com/v2/docs/what-is-new/
New features:
PathResolvers - Transforms Files to web browser path. Few built-in resolvers exists as per this release:
- AssetsPathResolver - uses The Asset Component
- AwsS3PathResolver - uses Amazon AWS S3 Client to generate paths.
- SymfonyCachePathResolver - decorator that uses Symfony Cache to cache response from decorated resolver, so next time it will not call it.
DirectoryPrefixStrategy - decorator that prefixes directory.
BC Breaks:
getDirectory() in NamingStrategy is now optional. Return type should be now ?string.
FileType form now uses internally 'file' field to handle files, instead extending FileType. This allows you to add custom fields for Files in forms.
$formMapper->add(
'image',
FileType::class,
[
'required' => false,
'constraints' => [ConstraintsOnEntity]
'input_options' => [
'attr' => [
'accept' => 'image/*',
],
'constraints' => [
SymfonyConstraintsOnFiles
]
],
]
);
Introduces ManagerInterface
- from now on use this interface for type-hints.
Use Twig 3.X format_datetime filter
Also add translations to Form Theme.
Add command to migrate between strategies.
Also bump PHP to ^7.4, because of added typehinting of class variables.
Extend Symfony File Type for full-capabilities
1.0.1 Extend Symfony File type for full-capabilities.
Initial Release
1.0.0 Add README.md about serving files.