builder = new ArchiveBuilder( $files ?? new WpFileSystem(), $cache ?? new WpCache(), $logger ?? new WpLogger(), ); } /** * @param \ZipArchive $zip open archive to write into * @param list $includes content roles ('plugins', 'themes', 'uploads') * @param list $excludes glob-ish exclusion patterns * @param string $prefix prefix inside the zip (e.g. 'files/') * * @return int number of files added */ public function archiveIntoZip(\ZipArchive $zip, array $includes, array $excludes, string $prefix, int $backupId): int { return $this->builder->archiveIntoZip($zip, $includes, $excludes, $prefix, $backupId); } }