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]
writeStream
is removed,write
now acceptsSplFileInfo
as second argument. - Convert all warnings into exceptions (fopen/fclose/etc).
- Use
RuntimeExtension
for 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
md5Hash
to justhash
. This will allows usage of any hashing algotithm. (Sha1, sha256, etc.) - Make hash unique.
- Renamed
fileSize
to 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\DecoratedFile
which eases decorating file. - Added numerous different Naming Strategies (DateStrategy, UUID V4, UUID V5, PersistentPath, NullDirectory)
- Created
ModelFactory
which is responsible for instantiating File objects when uploading new file. - Added numerous different Path Resolvers (AzureBlobStorage, AzureBlobStorageSAS).
UPGRADE:
- Rename usages of
getMd5Hash
togetHash
. Rename queries from propertymd5Hash
tohash
- Rename usages of
getFileSize
togetSize
. Rename queries from propertyfileSize
tosize
. - Constructor of
Manager
now 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
DelegatingManager
which allows fluent usage ofManagerInterface
for read operations with more than 1 file entity. - Add option
manager
onFileType
form, which will allow usage of differentManagerInterface
instance when having more than 1 file entity. - Add 5th argument of
Manager
which acceptsLeague\MimeTypeDetection\MimeTypeDetector\MimeTypeDetector
, which are used to detect mime types. - add
AzureBlobStoragePathResolver
. - add
DelegatingPathResolver
which allows using of multiple file entities with different path resolvers. - add
Arxy\FilesBundle\Repository\ORMTrait
which can be used on ORM Repositories. - add
file_content
filter for Twig which returns contents of file. - add
public function clear(): void;
onManagerInterface
which clears temporary files map.