Ejemplo n.º 1
0
 /**
  * @param DocumentsExportInterface $handler
  * @param AbstractArchiveBuilder   $archiveBuilder
  *
  * Procedure that add documents in the export's archive
  */
 protected function processExportDocuments(DocumentsExportInterface $handler, AbstractArchiveBuilder $archiveBuilder)
 {
     foreach ($handler->getDocumentsPaths() as $name => $documentPath) {
         $archiveBuilder->addFile($documentPath, $handler::DOCUMENTS_DIRECTORY, is_integer($name) ? null : $name);
     }
 }