Skip to content

Conversation

@dmitryuk
Copy link
Contributor

@dmitryuk dmitryuk commented Dec 18, 2025

Closes #6787 #6792 #6646

\EasyCorp\Bundle\EasyAdminBundle\Cache\CacheWarmer initializes DashboardControllerRegistry before cache warmed, so on first cold run DashboardControllerRegistry always threw an exception "XXX" class is not a valid Dashboard controller.

User story:

  • remove var/cache folder
  • Run example Console command with URL generation AdminUrlGenerator::generateUrl

@javiereguiluz javiereguiluz added this to the 4.x milestone Dec 27, 2025
@javiereguiluz javiereguiluz merged commit 21f4f77 into EasyCorp:4.x Dec 27, 2025
18 checks passed
@javiereguiluz
Copy link
Collaborator

Thanks Alexander!

while merging I did some minor tweaks (#51947f4870ce80c49339b9ce0f002934ca781f2f). Your code was perfectly correct, but in Symfony it's more common to use nullable properties that you check and then call the method to initialize them instead of using a flag property like $init. But both approaches are equally fine. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"XXX" class is not a valid Dashboard controller...

2 participants