/** * {@inheritdoc} */ public function initialize() { if (null === $this->flatRowBuffer) { $this->flatRowBuffer = $this->bufferFactory->create(); } $exportDirectory = dirname($this->getPath()); if (!is_dir($exportDirectory)) { $this->localFs->mkdir($exportDirectory); } }
/** * {@inheritdoc} */ public function initialize() { if (null === $this->flatRowBuffer) { $this->flatRowBuffer = $this->bufferFactory->create(); } }
/** * @param FilePathResolverInterface $filePathResolver * @param BufferFactory $bufferFactory */ public function __construct(FilePathResolverInterface $filePathResolver, BufferFactory $bufferFactory) { parent::__construct($filePathResolver); $this->buffer = $bufferFactory->create(); }