Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AdminInterface::setContractTranslator method #1

Open
wants to merge 1 commit into
base: symfony_translation_v5
Choose a base branch
from

Conversation

franmomu
Copy link

@franmomu franmomu commented Sep 3, 2020

Hi @dmaicher, haven't fully tried, but what about adding another method (I called it setContractTranslator for instance) and call this method from the compiler pass? I haven't change the AdminTest class, this is just to see if this would work.

@dmaicher
Copy link
Owner

dmaicher commented Sep 4, 2020

Hey @franmomu thanks for suggesting this. Adding a new method might also be a nice approach to avoid BC 😊

But generally it seems unclear if full support for Symfony 5 on SonataAdminBundle 3.x is wanted? At least that's my impression from all the comments on different PRs 😕

@dmaicher
Copy link
Owner

dmaicher commented Sep 4, 2020

Although I think I personally would go for the __call approach instead. Overall this introduces less complexity I think

dmaicher pushed a commit that referenced this pull request Apr 23, 2022
Fixes Twig\Error\RuntimeError: nl2br(): Passing null to parameter #1 ($string) of type string is deprecated
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.

2 participants