/**
  * @param FieldHelper $fieldHelper
  * @param DatabaseHelper $databaseHelper
  * @param DataGridProviderInterface $dataGridProvider
  * @param TranslatorInterface $translator
  * @param NumberFormatter $numberFormatter
  * @param DateTimeFormatter $dateTimeFormatter
  * @param string $memberExtendedMergeVarClassName
  */
 public function __construct(FieldHelper $fieldHelper, DatabaseHelper $databaseHelper, DataGridProviderInterface $dataGridProvider, TranslatorInterface $translator, NumberFormatter $numberFormatter, DateTimeFormatter $dateTimeFormatter, $memberExtendedMergeVarClassName)
 {
     parent::__construct($fieldHelper);
     if (!is_string($memberExtendedMergeVarClassName) || empty($memberExtendedMergeVarClassName)) {
         throw new \InvalidArgumentException('MemberExtendedMergeVar class name should be provided.');
     }
     $this->databaseHelper = $databaseHelper;
     $this->dataGridProvider = $dataGridProvider;
     $this->translator = $translator;
     $this->numberFormatter = $numberFormatter;
     $this->dateTimeFormatter = $dateTimeFormatter;
     $this->memberExtendedMergeVarClassName = $memberExtendedMergeVarClassName;
 }
예제 #2
0
 /**
  * @param FieldHelper $fieldHelper
  * @param AbstractTableDataConverter $dataConverter
  */
 public function __construct(FieldHelper $fieldHelper, AbstractTableDataConverter $dataConverter)
 {
     parent::__construct($fieldHelper);
     $this->dataConverter = $dataConverter;
 }
예제 #3
0
 /**
  * @param FieldHelper   $fieldHelper
  * @param ImportHelper  $importHelper
  * @param ChannelHelper $channelHelper
  */
 public function __construct(FieldHelper $fieldHelper, ImportHelper $importHelper, ChannelHelper $channelHelper)
 {
     parent::__construct($fieldHelper);
     $this->importHelper = $importHelper;
     $this->channelImportHelper = $channelHelper;
 }