/** * {@inheritdoc} */ public function setImportExportContext(ContextInterface $context) { if (!$context->hasOption('filePath')) { throw new InvalidConfigurationException('Configuration of CSV writer must contain "filePath".'); } else { $this->setFilePath($context->getOption('filePath')); } parent::setImportExportContext($context); }
/** * {@inheritdoc} */ public function setImportExportContext(ContextInterface $context) { $this->filePath = 'php://output'; parent::setImportExportContext($context); }