mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
small adjustments
This commit is contained in:
@@ -13,6 +13,7 @@ namespace Chill\PersonBundle\Export\Aggregator\PersonAggregators;
|
||||
|
||||
use App\Repository\VendeePerson\SituationProfessionelleRepository;
|
||||
use Chill\MainBundle\Export\AggregatorInterface;
|
||||
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
||||
use Chill\PersonBundle\Export\Declarations;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
@@ -22,10 +23,13 @@ use Symfony\Component\Form\FormBuilderInterface;
|
||||
final class ProfessionalSituationAggregator implements AggregatorInterface
|
||||
{
|
||||
private SituationProfessionelleRepository $professionalSituationRepository;
|
||||
|
||||
private TranslatableStringHelper $translatableStringHelper;
|
||||
|
||||
public function __construct(SituationProfessionelleRepository $professionalSituationRepository)
|
||||
public function __construct(SituationProfessionelleRepository $professionalSituationRepository, TranslatableStringHelper $translatableStringHelper)
|
||||
{
|
||||
$this->professionalSituationRepository = $professionalSituationRepository;
|
||||
$this->translatableStringHelper = $translatableStringHelper;
|
||||
}
|
||||
|
||||
public function addRole()
|
||||
@@ -70,7 +74,7 @@ final class ProfessionalSituationAggregator implements AggregatorInterface
|
||||
|
||||
$g = $this->professionalSituationRepository->find($value);
|
||||
|
||||
return $g->getName()['fr'];
|
||||
return $this->translatableStringHelper->localize($g->getName());;
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user