45 $this->
logger = $DIC->logger()->cal();
97 $download_name =
$input[0];
99 $this->
logger->debug(
'User interaction download zip ' . $input[0]->
getValue() .
' as '
102 if ($user_selected_option->
getValue() != self::OPTION_DOWNLOAD) {
103 $this->
logger->info(
'Download canceled');
105 $filesystem =
$DIC->filesystem()->temp();
108 $path = LegacyPathHelper::createRelativePath($zip_name->getValue());
109 }
catch (InvalidArgumentException
$e) {
112 if (!is_null(
$path) && $filesystem->has(
$path)) {
113 $filesystem->deleteDir(dirname(
$path));
119 $this->
logger->info(
"Delivering File.");
Description of class class.
interaction(array $input, Option $user_selected_option, Bucket $bucket)
@inheritDoc
getRemoveOption()
@inheritDoc
getInputTypes()
Type[] A list of types that are taken as input.
getOptions(array $input)
@inheritDoc
canBeSkipped(array $input)
@inheritDoc
getOutputType()
@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.