mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 13:03:50 +00:00
Refactor entity rendering with manager pattern
Introduce ChillEntityRenderManager to centralize entity rendering logic, reducing redundancy and improving code organization. Update dependencies and service configuration to support the new manager pattern, enhancing maintainability and flexibility of entity rendering in templates.
This commit is contained in:
@@ -32,11 +32,16 @@ services:
|
||||
- { name: twig.extension }
|
||||
|
||||
Chill\MainBundle\Templating\Entity\ChillEntityRenderExtension:
|
||||
arguments:
|
||||
$renders: !tagged_iterator chill.render_entity
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
Chill\MainBundle\Templating\Entity\ChillEntityRenderManager:
|
||||
arguments:
|
||||
$renders: !tagged_iterator chill.render_entity
|
||||
|
||||
Chill\MainBundle\Templating\Entity\ChillEntityRenderManagerInterface:
|
||||
alias: 'Chill\MainBundle\Templating\Entity\ChillEntityRenderManager'
|
||||
|
||||
Chill\MainBundle\Templating\Entity\CommentRender:
|
||||
tags:
|
||||
- { name: 'chill.render_entity' }
|
||||
|
Reference in New Issue
Block a user