Releases: EasyCorp/EasyAdminBundle
4.24.9
Special thanks in this release to Vincent (@VincentLanglet) for his work on raising the PHPStan level of the codebase.
New features
[48ed3eb][4ad35c9][1d8b03a] feature #6984 Bump PHPStan to level 6 (@VincentLanglet)
[0f6729d] Add missing EntityDto generics in CrudControllerInterface (@glaubinix)
Bug fixes
[d10ddd1][8cefeb1] Fix fileSize() method in Twig extension (@javiereguiluz)
4.24.8
New features
[8c5e5f3] Add some Generics (@VincentLanglet)
[046f72c][d8afd99] Add suport for enums in TextFields (@RiffFred)
Bug fixes
[1efbe33] Fix Symfony 7.3 deprecations (@maks-oleksyuk)
Minor
[5a78517] Add some files for AI coding agents (@javiereguiluz)
[22e7d5a] minor #6950 Fix the CSS linter (@javiereguiluz)
[89b037c] minor #6951 Add a JS and CSS linter and formatter (@javiereguiluz)
[629b4f0][30c47f9][355fe0c][8e30e5a] Misc doc fixes (@javiereguiluz)
4.24.7
New features
[78d24a4] Create InvalidEntityException to replace RuntimeException in EntityUpdater (@Pierstoval)
Bug fixes
[24144f9] Improve the content_footer block in the layout template (@javiereguiluz)
[ef6c722] Fix autocomplete entity on filter (@danut007ro)
[db3e0f2] Remove orphaned </div>
in layout.html.twig
(@JorickPepin)
[5db9f0b] Fix warning in ChoiceFilterType (@bt-nn)
[950b6c8] Do not override HTML attribute title
if already set for Action (@jbonnier)
[ae3ce67][50aecbd] Misc doc fixes (@sajadtorkamani, @tacman)
4.24.6
New features
[a8bef2e] Allow for custom routes to use EasyAdmin context, especially in templates (@Pierstoval)
Bug fixes
[9f1e6f4] Error message div should not inherit widget attr.class CSS classes (@psihius)
[5871eef] Fix double encoded URLs issue (@ksn135)
[dc0c669] Fix inability to disable CSRF (@alshenetsky)
4.24.5
New features
[902348b] Allow to render actions as forms with POST method (@fracsi)
Bug fixes
[4c1c63b] Always return to index action when using SAVE_AND_RETURN button (@fracsi)
[4d1ae6b] Fix redirection after deleting an entity (@eminjk)
[8add1b4] Fix issue with inherit Doctrine properties (@jorisdugue)
[68cdc0d] Upgrade to PHPStan 2.x and fix some issues (@javiereguiluz)
[80caf71] Fix Chinese translation (@ywisax)
[be09320][ae9e0da][3a84de0] Misc. doc fixes (@Shadow-Devil, @LaurentMarquet, @befresh-mweimerskirch)
4.24.4
Bug fixes
[f72bc2e] Remove prefix from URL to match in AdminRouterSubscriber::getSymfonyControllerFqcn (@pacproduct)
[da8f4e2] Use the Twig guard tag to handle optional functions/filters (@javiereguiluz)
[e9f8ee6] Fix remaining calls to deprecated getReferrer()
method (@AirBair)
[e128cf7] [Doc] Fix typo in route attribute (@elliotbruneel)
4.24.3
Bug fixes
[37fc36f] Fix warning when matching menu item URLs without path (@javiereguiluz)
[a16b068] Disable switch if user has no permission to edit (@IndraGunawan)
4.24.2
Bug fixes
[2c6493e] Wrap form tab HTML attributes in double quotes (@dimanche-matin)
[0bf1177] Fix how we get the value of a query parameter in the layout template (@javiereguiluz)
[b74f56c] Deprecate the custom CacheWarmer that won't be used in the next version (@javiereguiluz)
[0b60a4c] Change AdminRouterSubscriber::getSymfonyControllerFqcn so it generates relative paths (@pacproduct)
[448072e] [Doc] Clarify that AdminDashboard only works for pretty URLs (@javiereguiluz)
4.24.1
Bug fixes
[200beff] Fix custom action not working when URL has a search query (@allan-simon)
[ea7494d] Fix menu item highlight when using pretty urls (@a-r-m-i-n)
[2537a4c] Update Ukrainian translation (@Atantares)
[5e48501] Add default locale to all pretty routes (@danut007ro)
[fce5882] Misc doc fixes (@Bisb)
4.24.0
This new version changes the recommended way to define the main route of dashboards:
// BEFORE:
use Symfony\Component\Routing\Attribute\Route;
class DashboardController extends AbstractDashboardController
{
#[Route('/admin', name: 'admin')]
public function index(): Response
{
// ...
}
}
// AFTER:
use EasyCorp\Bundle\EasyAdminBundle\Attribute\AdminDashboard;
#[AdminDashboard(routePath: '/admin', routeName: 'admin')]
class DashboardController extends AbstractDashboardController
{
public function index(): Response
{
// ...
}
}
This will be the only supported way of defining the main dashboard route in Easyadmin 5.x. We do this because this change allows us to simplify a lot of features and improves the application performance slightly.
New features
[287f467] Improve the #[AdminDashboard]
attribute (@javiereguiluz)
Bug fixes
[64f33db] Fix an edge-case with pretty URLs and multiple dashboards (@javiereguiluz)
[32eaf4f][774d89f][d9320f8] Updated tests to remove all mocks related to final classes (@javiereguiluz)
[576f168] Misc doc fixes (@torchello)