From 77bccd5c4e577ebbd3fdce243bcebd624b3825b0 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 27 Aug 2025 17:01:06 +0200 Subject: [PATCH] Remove deprecated ContainerAwareTrait --- .../ChillActivityBundle/DataFixtures/ORM/LoadActivity.php | 2 -- .../ChillMainBundle/Templating/TranslatableStringTwig.php | 3 --- src/Bundle/ChillMainBundle/config/services.yaml | 2 -- 3 files changed, 7 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivity.php b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivity.php index 80c1e4254..1055f2140 100644 --- a/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivity.php +++ b/src/Bundle/ChillActivityBundle/DataFixtures/ORM/LoadActivity.php @@ -27,8 +27,6 @@ use Faker\Factory as FakerFactory; class LoadActivity extends AbstractFixture implements OrderedFixtureInterface { - use \Symfony\Component\DependencyInjection\ContainerAwareTrait; - private readonly \Faker\Generator $faker; public function __construct(private readonly EntityManagerInterface $em) diff --git a/src/Bundle/ChillMainBundle/Templating/TranslatableStringTwig.php b/src/Bundle/ChillMainBundle/Templating/TranslatableStringTwig.php index a9b551b81..0ec9f7afb 100644 --- a/src/Bundle/ChillMainBundle/Templating/TranslatableStringTwig.php +++ b/src/Bundle/ChillMainBundle/Templating/TranslatableStringTwig.php @@ -11,14 +11,11 @@ declare(strict_types=1); namespace Chill\MainBundle\Templating; -use Symfony\Component\DependencyInjection\ContainerAwareTrait; use Twig\Extension\AbstractExtension; use Twig\TwigFilter; class TranslatableStringTwig extends AbstractExtension { - use ContainerAwareTrait; - /** * TranslatableStringTwig constructor. */ diff --git a/src/Bundle/ChillMainBundle/config/services.yaml b/src/Bundle/ChillMainBundle/config/services.yaml index 14f0f851a..17009a172 100644 --- a/src/Bundle/ChillMainBundle/config/services.yaml +++ b/src/Bundle/ChillMainBundle/config/services.yaml @@ -56,8 +56,6 @@ services: class: Chill\MainBundle\Templating\TranslatableStringTwig arguments: - "@chill.main.helper.translatable_string" - calls: - - [ setContainer, ["@service_container"]] tags: - { name: twig.extension }