3declare(strict_types=1);
32 $this->
logger = $DIC->logger()->cal();
79 $download_name =
$input[0];
81 $this->
logger->debug(
'User interaction download zip ' . $input[0]->
getValue() .
' as '
84 if ($user_selected_option->
getValue() != self::OPTION_DOWNLOAD) {
85 $this->
logger->info(
'Download canceled');
87 $filesystem =
$DIC->filesystem()->temp();
90 $path = LegacyPathHelper::createRelativePath($zip_name->getValue());
91 }
catch (InvalidArgumentException
$e) {
94 if (!is_null(
$path) && $filesystem->has(
$path)) {
95 $filesystem->deleteDir(dirname(
$path));
99 return $download_name;
102 $this->
logger->info(
"Delivering File.");
105 $download_name->getValue(),
106 $zip_name->getValue(),
107 MimeType::APPLICATION__ZIP
111 return $download_name;
Description of class class.
getInputTypes()
Type[] A list of types that are taken as input.
getOutputType()
@inheritDoc
getRemoveOption()
@inheritDoc
interaction(array $input, Option $user_selected_option, Bucket $bucket)
@inheritDoc
getOptions(array $input)
@inheritDoc
static deliverFileAttached(string $path_to_file, ?string $download_file_name=null, ?string $mime_type=null, bool $delete_file=false)
Component logger with individual log levels by component id.