Skip to content

EasyCorp/EasyAdminBundle

4.x
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

…ustmored)

This PR was squashed before being merged into the 4.x branch.

Discussion
----------

Helper methods for `Translatable` objects in filters

This simple PR introduces support for translatable objects in a few places missed before - the filters:
- A new `setTranslatableChoices` method is added to the `ChoiceFilter` and `ArrayFilter`, working exactly like the same method in `ChoiceField`,
- Translatable objects are now allowed as arguments to `NullFilter::setChoiceLabels` method,
- as an added value I have fixed two docblocks that allow `TranslatableInterface`, but weren't updated before.

I have tested those changes on my daily project and they work as expected. I see that tests for filters are verifying their filtering capabilities and not passing configuration, so I found no place to add tests for those changes.

Commits
-------

b4048ab Helper methods for `Translatable` objects in filters
12dad02

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
October 30, 2023 20:22
November 23, 2023 20:25
July 23, 2022 16:11
October 3, 2023 17:23
November 7, 2023 19:33

EasyAdmin

EasyAdmin is a fast, beautiful and modern admin generator for Symfony applications.

EasyAdmin, a fast, beautiful and modern admin generator for Symfony applications

Installation

EasyAdmin 4 requires PHP 8.0.2 or higher and Symfony 5.4 or higher. Run the following command to install it in your application:

$ composer require easycorp/easyadmin-bundle

Documentation

Versions

Repository Branch EasyAdmin Version Symfony Compatibility PHP Compatibility Status Docs
4.x 4.x 5.4, and 6.x 8.0.2 or higher New features and bug fixes Read Docs
3.x 3.x 4.4, and 5.x 7.2.5 or higher Bug fixes only; no new features Read Docs
2.x 2.x 4.x, and 5.x 7.1.3 or higher No longer maintained Read Docs
1.x 1.x 2.x, 3.x and 4.x 5.3.0 or higher No longer maintained -

Demo Application

easyadmin-demo is a complete Symfony application that showcases EasyAdmin features. It's based on the Symfony Demo project.

License

This software is published under the MIT License