feat(dump): add download functionality for dumps and improve UI interactions
This commit is contained in:
@@ -71,6 +71,23 @@ class DumpService
|
||||
$this->aeonDumpManagerFilesystemPrivate->delete($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return resource
|
||||
*/
|
||||
public function readStream(string $filename)
|
||||
{
|
||||
if (!$this->filenameParser->isValid($filename)) {
|
||||
throw DumpNotFoundException::create($filename);
|
||||
}
|
||||
|
||||
$path = DumpLister::path($filename);
|
||||
if (!$this->aeonDumpManagerFilesystemPrivate->fileExists($path)) {
|
||||
throw DumpNotFoundException::create($filename);
|
||||
}
|
||||
|
||||
return $this->aeonDumpManagerFilesystemPrivate->readStream($path);
|
||||
}
|
||||
|
||||
public function enforceMaxDumps(): void
|
||||
{
|
||||
$maxDumps = $this->systemConfigService->getInt('AeonDumpManager.config.maxDumps');
|
||||
|
||||
Reference in New Issue
Block a user