mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-04-09 14:33:44 +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:
@@ -15,7 +15,7 @@ namespace Chill\MainBundle\Templating\Entity;
|
||||
* Interface to implement which will render an entity in template on a custom
|
||||
* manner.
|
||||
*
|
||||
* @template T
|
||||
* @template T of object
|
||||
*/
|
||||
interface ChillEntityRenderInterface
|
||||
{
|
||||
@@ -31,7 +31,7 @@ interface ChillEntityRenderInterface
|
||||
* </span>
|
||||
* ```
|
||||
*
|
||||
* @param T $entity
|
||||
* @param T|null $entity
|
||||
*
|
||||
* @phpstan-pure
|
||||
*/
|
||||
@@ -42,7 +42,7 @@ interface ChillEntityRenderInterface
|
||||
*
|
||||
* Example: returning the name of a person.
|
||||
*
|
||||
* @param T $entity
|
||||
* @param T|null $entity
|
||||
*
|
||||
* @phpstan-pure
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user