Releases: Warxcell/files
Releases · Warxcell/files
Fix wrong exception thrown if upload fails
Full Changelog: 5.1.3...5.1.4
Add generics to DecoratedFile
5.1.3 add decorated file generics
Fix maxSize param of constraint
5.1.2 Fix maxSize param
Bump to php8.0
5.1.1 Bump to symfony 8.0
Introducing Storage!
This release introduces Storage and removes hard-dependency on FlySystem. This opens new possibilities. You can still use FlySystem throught adapter: $storage = new \Arxy\FilesBundle\Storage\FlysystemStorage($flysystem);
Other changes:
Removes SymfonyCachePathResolver. Replaced by CachePathResolver which uses PSR-16 Cache.
Add missing generics
4.0.1 generics on DelegatingPathResolver
Refactor MutableFile
Changelog:
- [BC]
writeStreamis removed,writenow acceptsSplFileInfoas second argument. - Convert all warnings into exceptions (fopen/fclose/etc).
- Use
RuntimeExtensionfor Twig Extensions. - Add command that verifies that files are same on db and fs level.
Add Exceptions and Generics. Aws S3 PreSigned PathResolver
- Add proper Exceptions
- Add generics annotations.
- Aws S3 PreSigned PathResolver
Version 3.0.0
This version comes with a lot of refactoring, removals and new features:
CHANGELOG.
- Split file into 2 interfaces: File and MutableFile.
- Added
Entity\MutableFile. It contains additional fieldmodifiedAt. - Removal of
ManagerInterface::refresh(File) - Removal of
RefreshDatabaseCommand - Added 2 new methods
write(MutableFile $file, string $contents)andwriteStream(MutableFile $file, resource $resource) - Renamed
md5Hashto justhash. This will allows usage of any hashing algotithm. (Sha1, sha256, etc.) - Make hash unique.
- Renamed
fileSizeto justsize. - Added support for Embeddable files. Added model for it: Entity\EmbeddableFile.
- Added events. (PostUpload, PreMove, PostMove, PreRemove, PreUpdate, PostUpdate).
- Added new naming strategies.
- Added utility which eases serving files from Controller.
- Added Preview sub-system.
- Added LiipImagine built-in support.
- Added
Model\DecoratedFilewhich eases decorating file. - Added numerous different Naming Strategies (DateStrategy, UUID V4, UUID V5, PersistentPath, NullDirectory)
- Created
ModelFactorywhich is responsible for instantiating File objects when uploading new file. - Added numerous different Path Resolvers (AzureBlobStorage, AzureBlobStorageSAS).
UPGRADE:
- Rename usages of
getMd5HashtogetHash. Rename queries from propertymd5Hashtohash - Rename usages of
getFileSizetogetSize. Rename queries from propertyfileSizetosize. - Constructor of
Managernow accepts arguments in different order. If you are not using named arguments - please take a look and update them. - Constructor of Manager now accepts
Psr\EventDispatcher\EventDispatcherInterface- please pass it in order to use Events. (If using Symfony Autowire, nothing to do).
Version 2.2.0
Changelog:
- Allow PHP8.
- Add
DelegatingManagerwhich allows fluent usage ofManagerInterfacefor read operations with more than 1 file entity. - Add option
manageronFileTypeform, which will allow usage of differentManagerInterfaceinstance when having more than 1 file entity. - Add 5th argument of
Managerwhich acceptsLeague\MimeTypeDetection\MimeTypeDetector\MimeTypeDetector, which are used to detect mime types. - add
AzureBlobStoragePathResolver. - add
DelegatingPathResolverwhich allows using of multiple file entities with different path resolvers. - add
Arxy\FilesBundle\Repository\ORMTraitwhich can be used on ORM Repositories. - add
file_contentfilter for Twig which returns contents of file. - add
public function clear(): void;onManagerInterfacewhich clears temporary files map.