CopyFromRecipeConfigurator
extends AbstractConfigurator
in package
Tags
Table of Contents
- $composer : mixed
- $io : mixed
- $options : mixed
- $path : mixed
- __construct() : mixed
- configure() : mixed
- unconfigure() : mixed
- isFileMarked() : bool
- isFileXmlMarked() : bool
- markData() : string
- markXmlData() : string
- updateData() : bool
- write() : mixed
- copyDir() : array<string|int, mixed>
- copyFile() : string
- copyFiles() : array<string|int, mixed>
- getRemovableFilesFromRecipeAndLock() : array<string|int, mixed>
- removeFile() : mixed
- removeFiles() : mixed
Properties
$composer
protected
mixed
$composer
$io
protected
mixed
$io
$options
protected
mixed
$options
$path
protected
mixed
$path
Methods
__construct()
public
__construct(Composer $composer, IOInterface $io, Options $options) : mixed
Parameters
- $composer : Composer
- $io : IOInterface
- $options : Options
Return values
mixed —configure()
public
configure(Recipe $recipe, mixed $config, Lock $lock[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
Return values
mixed —unconfigure()
public
unconfigure(Recipe $recipe, mixed $config, Lock $lock) : mixed
Parameters
Return values
mixed —isFileMarked()
protected
isFileMarked(Recipe $recipe, string $file) : bool
Parameters
- $recipe : Recipe
- $file : string
Return values
bool —isFileXmlMarked()
protected
isFileXmlMarked(Recipe $recipe, string $file) : bool
Parameters
- $recipe : Recipe
- $file : string
Return values
bool —markData()
protected
markData(Recipe $recipe, string $data) : string
Parameters
- $recipe : Recipe
- $data : string
Return values
string —markXmlData()
protected
markXmlData(Recipe $recipe, string $data) : string
Parameters
- $recipe : Recipe
- $data : string
Return values
string —updateData()
protected
updateData(string $file, string $data) : bool
Parameters
- $file : string
- $data : string
Return values
bool —True if section was found and replaced
write()
protected
write(mixed $messages) : mixed
Parameters
- $messages : mixed
Return values
mixed —copyDir()
private
copyDir(string $source, string $target, array<string|int, mixed> $files, array<string|int, mixed> $options) : array<string|int, mixed>
Parameters
- $source : string
- $target : string
- $files : array<string|int, mixed>
- $options : array<string|int, mixed>
Return values
array<string|int, mixed> —copyFile()
private
copyFile(string $to, string $contents, bool $executable, array<string|int, mixed> $options) : string
Parameters
- $to : string
- $contents : string
- $executable : bool
- $options : array<string|int, mixed>
Return values
string —copyFiles()
private
copyFiles(array<string|int, mixed> $manifest, array<string|int, mixed> $files, array<string|int, mixed> $options) : array<string|int, mixed>
Parameters
- $manifest : array<string|int, mixed>
- $files : array<string|int, mixed>
- $options : array<string|int, mixed>
Return values
array<string|int, mixed> —getRemovableFilesFromRecipeAndLock()
private
getRemovableFilesFromRecipeAndLock(Recipe $recipe, Lock $lock) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed> —removeFile()
private
removeFile(string $to) : mixed
Parameters
- $to : string
Return values
mixed —removeFiles()
private
removeFiles(array<string|int, mixed> $manifest, array<string|int, mixed> $files, string $to) : mixed
Parameters
- $manifest : array<string|int, mixed>
- $files : array<string|int, mixed>
- $to : string