46 $this->
logger = $DIC->logger()->cal();
99 $download_name =
$input[0];
101 $this->
logger->debug(
'User interaction download zip ' . $input[0]->
getValue() .
' as '
104 if ($user_selected_option->
getValue() !== self::OPTION_DOWNLOAD) {
105 $this->
logger->info(
'Download canceled');
107 $filesystem =
$DIC->filesystem()->temp();
110 $path = LegacyPathHelper::createRelativePath($zip_name->getValue());
111 }
catch (InvalidArgumentException) {
114 if (!is_null(
$path) && $filesystem->has(
$path)) {
115 $filesystem->deleteDir(dirname(
$path));
121 $this->
logger->info(
"Delivering File.");
The legacy path helper provides convenient functions for the integration of the filesystem service wi...
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.