-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Describe the bug
on first run (before container has been compiled) ea_url().setDashboard('XXX') throws error
`"XXX" class is not a valid Dashboard controller. Make sure it extends from "EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractDashboardController" or implements "EasyCorp\Bundle\EasyAdminBundle\Contracts\Controller\DashboardControllerInterface"."
because
dashboardControllerRegistry->controllerFqcnToRouteMap is empty at the time.
To Reproduce
version 4.24.0 (symfony 7.2.3, php 8.3.16) with enabled pretty url feature
put
{{ ea_url().setDashboard('XXX') }} to index.html.twig
(OPTIONAL) Additional context
If they are useful, include logs, code samples, screenshots, etc.
pfpro
Metadata
Metadata
Assignees
Labels
No labels