Skip to content

Releases: Warxcell/files

Fix bug with multiple files.

01 Feb 09:08
Compare
Choose a tag to compare
2.1.1

Merge branch '2.0' into 2.1

Fix bug with multiple files.

01 Feb 09:07
Compare
Choose a tag to compare
2.0.1

fix bug with multiple files

Support Doctrine/Persistence ^2.1

01 Feb 06:58
Compare
Choose a tag to compare

Support Doctrine/Persistence ^2.1

New features and FlySystem V2 Support.

15 Jan 16:36
Compare
Choose a tag to compare

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

29 Sep 19:04
Compare
Choose a tag to compare

Also add translations to Form Theme.

Add command to migrate between strategies.

18 Sep 18:42
Compare
Choose a tag to compare

Also bump PHP to ^7.4, because of added typehinting of class variables.

Extend Symfony File Type for full-capabilities

20 Jul 14:34
Compare
Choose a tag to compare
1.0.1

Extend Symfony File type for full-capabilities.

Initial Release

19 May 13:18
Compare
Choose a tag to compare
1.0.0

Add README.md about serving files.