mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-25 08:05:00 +00:00
Remove deprecated ContainerAwareTrait
This commit is contained in:
@@ -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)
|
||||
|
@@ -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.
|
||||
*/
|
||||
|
@@ -56,8 +56,6 @@ services:
|
||||
class: Chill\MainBundle\Templating\TranslatableStringTwig
|
||||
arguments:
|
||||
- "@chill.main.helper.translatable_string"
|
||||
calls:
|
||||
- [ setContainer, ["@service_container"]]
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
|
Reference in New Issue
Block a user