Skip to content

Use AdminUrlGenerator instead of Symfony URL generator#6761

Closed
renanbr wants to merge 1 commit intoEasyCorp:4.xfrom
renanbr:admin-url-generator
Closed

Use AdminUrlGenerator instead of Symfony URL generator#6761
renanbr wants to merge 1 commit intoEasyCorp:4.xfrom
renanbr:admin-url-generator

Conversation

@renanbr
Copy link

@renanbr renanbr commented Jan 22, 2025

Context

I'm decorating AdminUrlGenerator to allow using parameters in the admin path.

Error

Some templates are using Symfony's path instead of ea_url, which generates this error:

Twig\Error\RuntimeError

An exception has been thrown during the rendering of a template ("Some mandatory parameters are missing ("") to generate a URL for route "some_dashboard".").

@renanbr
Copy link
Author

renanbr commented Jan 29, 2025

Closing it as I found a solution by decorating router service instead.

@renanbr renanbr closed this Jan 29, 2025
@renanbr renanbr deleted the admin-url-generator branch January 29, 2025 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant