-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix admin template setters #6766
Fix admin template setters #6766
Conversation
06e6879
to
528b48e
Compare
Mybe we can create In master (4.0) we dont use template registry services but take it directly from SonataAdminBundle/src/DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php Lines 403 to 415 in 7e0bdd2
WDYT? @sonata-project/contributors |
528b48e
to
a6b689e
Compare
a6b689e
to
9584dac
Compare
9584dac
to
86a4282
Compare
Update tests/Templating/MutableTemplateRegistryTest.php Co-authored-by: Javier Spagnoletti <[email protected]> Update src/Templating/MutableTemplateRegistry.php Co-authored-by: Javier Spagnoletti <[email protected]>
89bb570
to
cdd85c3
Compare
@sonata-project/contributors @phansys Can we merge it? |
Co-authored-by: Javier Spagnoletti <[email protected]>
Thanks @wbloszyk |
Not sure to understand everything and if it's related, but isn't it weird now to have a What would be the next @wbloszyk ? |
Next step will be add In 3.x template registry is created by compiler pass and can not be override(it is possibile but hard to do). In 4.x template registry will be create by admin constructor. Override template registry will be not allowed but override templates by registry will be easy. In 5.x I will try to present new templates registry system |
Subject
This PR will revert some deprecations to allow override
Admin
templates in old way.Also override templates by
TemplateRegistry::setTemplates()
should not replace but override it. People can call it in own code and break application working.I am targeting this branch, because this change respect BC.
Changelog