packagist easycorp/easyadmin-bundle v4.24.0
4.24.0

latest release: 4.x-dev
one day ago

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)

Don't miss a new easyadmin-bundle release

NewReleases is sending notifications on new releases.