sonata-project / SonataBlockBundle

Symfony SonataBlockBundle
https://docs.sonata-project.org/projects/SonataBlockBundle
MIT License
413 stars 142 forks source link

Allow blockContext without template #1026

Closed VincentLanglet closed 2 years ago

VincentLanglet commented 2 years ago

Subject

SonataAdmin is using BlockContext without template. The template is provided instead by the admin. I think it's fine to not provide a template then. But we should have the deprecation for null template in the getter then.

Changelog

### Fixed
- Do not trigger a deprecation if a template setting is not provided in a block context `__construct`.
SonataCI commented 2 years ago

Could you please rebase your PR and fix merge conflicts?