19declare(strict_types=1);
43 return 'zip_structure_reader';
53 return NoEngine::class;
72 throw new \InvalidArgumentException(
'Invalid definition');
76 $data = $reader->getStructure();
80 Streams::ofString($for_definition->sleep(
$data)),
82 $for_definition->persist()
Stream factory which enables the user to create streams without the knowledge of the concrete class.
withEngine(Engine $engine)
The demanded Engine will be passed here.
canHandleDefinition(FlavourDefinition $definition)
Check if a corresponding configuration can be processed by this Machine.
__construct()
FlavourMachines must be able to be created without further dependencies.
dependsOnEngine()
Return the class name of the Engine that is required for this Machine to work.
processStream(FileInformation $information, FileStream $stream, FlavourDefinition $for_definition)
The base interface for all filesystem streams.
if(!file_exists('../ilias.ini.php'))