44 $this->
logger = $DIC->logger()->cal();
45 $this->archives =
$DIC->archives();
85 $this->
logger->debug(
'Start zipping input dir!');
86 $this->
logger->dump($input);
87 $string =
$input[0]->getValue();
88 $tmpdir = rtrim((
string) $string,
"/");
89 $this->
logger->debug(
'Zipping directory:' . $tmpdir);
90 $zip_name = $tmpdir .
'.zip';
92 $zip = $this->archives->zip([]);
93 $zip->addDirectory($tmpdir);
94 $zip_stream = $zip->get();
95 stream_copy_to_stream($zip_stream->detach(), fopen($zip_name,
'wb'));
101 $zip_file_name->setValue($zip_name);
103 return $zip_file_name;
static delDir(string $a_dir, bool $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
Component logger with individual log levels by component id.
Description of class class.
run(array $input, Observer $observer)
@inheritDoc
getOutputType()
@inheritDoc
getInputTypes()
@inheritDoc
getExpectedTimeOfTaskInSeconds()
int the amount of seconds this task usually taskes. If your task-duration scales with the the amount ...