CopyFromPackageConfigurator
extends AbstractConfigurator
in package
Tags
Table of Contents
- $composer : mixed
- $io : mixed
- $options : mixed
- $path : mixed
- __construct() : mixed
- configure() : mixed
- copyFile() : mixed
- unconfigure() : mixed
- isFileMarked() : bool
- isFileXmlMarked() : bool
- markData() : string
- markXmlData() : string
- updateData() : bool
- write() : mixed
- copyDir() : mixed
- copyFiles() : mixed
- createSourceIterator() : RecursiveIteratorIterator
- removeFiles() : mixed
- removeFilesFromDir() : 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 —copyFile()
public
copyFile(string $source, string $target, array<string|int, mixed> $options) : mixed
Parameters
- $source : string
- $target : string
- $options : array<string|int, mixed>
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> $options) : mixed
Parameters
- $source : string
- $target : string
- $options : array<string|int, mixed>
Return values
mixed —copyFiles()
private
copyFiles(array<string|int, mixed> $manifest, string $from, array<string|int, mixed> $options) : mixed
Parameters
- $manifest : array<string|int, mixed>
- $from : string
- $options : array<string|int, mixed>
Return values
mixed —createSourceIterator()
private
createSourceIterator(string $source, int $mode) : RecursiveIteratorIterator
Parameters
- $source : string
- $mode : int
Return values
RecursiveIteratorIterator —removeFiles()
private
removeFiles(array<string|int, mixed> $manifest, string $from, string $to) : mixed
Parameters
- $manifest : array<string|int, mixed>
- $from : string
- $to : string
Return values
mixed —removeFilesFromDir()
private
removeFilesFromDir(string $source, string $target) : mixed
Parameters
- $source : string
- $target : string