コード例 #1
0
 /**
  * {@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);
     }
 }
コード例 #2
0
ファイル: Writer.php プロジェクト: a2xchip/pim-community-dev
 /**
  * {@inheritdoc}
  */
 public function initialize()
 {
     if (null === $this->flatRowBuffer) {
         $this->flatRowBuffer = $this->bufferFactory->create();
     }
 }
コード例 #3
0
 /**
  * @param FilePathResolverInterface $filePathResolver
  * @param BufferFactory             $bufferFactory
  */
 public function __construct(FilePathResolverInterface $filePathResolver, BufferFactory $bufferFactory)
 {
     parent::__construct($filePathResolver);
     $this->buffer = $bufferFactory->create();
 }