mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 18:43:49 +00:00
Merge branch 'exports'
This commit is contained in:
@@ -24,6 +24,7 @@ use Doctrine\ORM\QueryBuilder;
|
||||
use Symfony\Component\Form\Extension\Core\Type\DateType;
|
||||
use Chill\MainBundle\Export\ExportElementValidatedInterface;
|
||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
||||
use Symfony\Component\Translation\TranslatorInterface;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -33,6 +34,17 @@ use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
||||
class AgeAggregator implements AggregatorInterface,
|
||||
ExportElementValidatedInterface
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @var
|
||||
*/
|
||||
protected $translator;
|
||||
|
||||
public function __construct($translator)
|
||||
{
|
||||
$this->translator = $translator;
|
||||
}
|
||||
|
||||
|
||||
public function addRole()
|
||||
{
|
||||
@@ -78,7 +90,7 @@ class AgeAggregator implements AggregatorInterface,
|
||||
}
|
||||
|
||||
if ($value === NULL) {
|
||||
return "no data";
|
||||
return $this->translator->trans("without data");
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
Reference in New Issue
Block a user