fix loading of some twig extensions in DI

This commit is contained in:
2025-11-03 14:08:25 +01:00
parent 9554d21f82
commit 843ae0a36a
4 changed files with 16 additions and 28 deletions

View File

@@ -61,22 +61,18 @@ services:
chill.main.twig.translatable_string:
class: Chill\MainBundle\Templating\TranslatableStringTwig
arguments:
- "@chill.main.helper.translatable_string"
tags:
- { name: twig.extension }
autoconfigure: true
autowire: true
chill.main.twig.widget:
class: Chill\MainBundle\Templating\Widget\WidgetRenderingTwig
arguments:
- "@event_dispatcher"
tags:
- { name: twig.extension }
autoconfigure: true
autowire: true
chill.main.twig.csv_cell:
class: Chill\MainBundle\Templating\CSVCellTwig
tags:
- { name: twig.extension }
autoconfigure: true
autowire: true
chill.main.validator.role_scope_scope_presence:
class: Chill\MainBundle\Validation\Validator\RoleScopeScopePresence

View File

@@ -28,12 +28,12 @@ services:
arguments:
$requestStack: '@Symfony\Component\HttpFoundation\RequestStack'
$originalExtension: '@twig.extension.routing'
tags:
- { name: twig.extension }
autoconfigure: true
autowire: true
Chill\MainBundle\Templating\Entity\ChillEntityRenderExtension:
tags:
- { name: twig.extension }
autoconfigure: true
autowire: true
Chill\MainBundle\Templating\Entity\ChillEntityRenderManager:
arguments:
@@ -47,8 +47,8 @@ services:
- { name: 'chill.render_entity' }
Chill\MainBundle\Templating\ChillMarkdownRenderExtension:
tags:
- { name: twig.extension }
autoconfigure: true
autowire: true
Chill\MainBundle\Templating\Entity\AddressRender: ~

View File

@@ -22,15 +22,9 @@ class CountNotificationTask implements NotificationCounterInterface
{
final public const string CACHE_KEY = 'chill_task.count_notifications.user.%d.%s';
/**
* @var CacheItempPoolInterface
*/
protected $cachePool;
protected CacheItemPoolInterface $cachePool;
/**
* @var SingleTaskRepository
*/
protected $singleTaskRepository;
protected SingleTaskRepository $singleTaskRepository;
public function __construct(
SingleTaskRepository $singleTaskRepository,

View File

@@ -1,9 +1,7 @@
services:
Chill\TaskBundle\Templating\TaskTwigExtension:
arguments:
$taskWorkflowManager: '@Chill\TaskBundle\Workflow\TaskWorkflowManager'
tags:
- { name: 'twig.extension' }
autoconfigure: true
autowire: true
Chill\TaskBundle\Templating\UI\CountNotificationTask:
autoconfigure: true