Documentation

CopyFromPackageConfigurator extends AbstractConfigurator
in package

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

$composer  : mixed
$io  : mixed
$options  : mixed
$path  : mixed
__construct()  : mixed
configure()  : mixed
copyFile()  : mixed
unconfigure()  : mixed
update()  : void
extractSection()  : string|null
isFileMarked()  : bool
isFileXmlMarked()  : bool
markData()  : string
markXmlData()  : string
updateData()  : bool
updateDataString()  : string|null
write()  : mixed
createSourceIterator()  : RecursiveIteratorIterator
getFilesForDir()  : array<string|int, mixed>
getFilesToCopy()  : array<string|int, mixed>
removeFiles()  : mixed
removeFilesFromDir()  : mixed

Properties

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
$recipe : Recipe
$config : mixed
$lock : Lock
$options : array<string|int, mixed> = []
Return values
mixed

copyFile()

public copyFile(string $source, string $target, array<string|int, mixed> $options) : mixed
Parameters
$source : string

The absolute path to the source file

$target : string

The relative (to root dir) path to the target

$options : array<string|int, mixed>
Return values
mixed

update()

public update(RecipeUpdate $recipeUpdate, array<string|int, mixed> $originalConfig, array<string|int, mixed> $newConfig) : void
Parameters
$recipeUpdate : RecipeUpdate
$originalConfig : array<string|int, mixed>
$newConfig : array<string|int, mixed>
Return values
void

extractSection()

protected extractSection(Recipe $recipe, string $contents) : string|null
Parameters
$recipe : Recipe
$contents : string
Return values
string|null

isFileXmlMarked()

protected isFileXmlMarked(Recipe $recipe, string $file) : bool
Parameters
$recipe : Recipe
$file : string
Return values
bool

updateData()

protected updateData(string $file, string $data) : bool
Parameters
$file : string
$data : string
Return values
bool

True if section was found and replaced

updateDataString()

protected updateDataString(string $contents, string $data) : string|null
Parameters
$contents : string
$data : string
Return values
string|null

returns the updated content if the section was found, null if not found

write()

protected write(mixed $messages[, mixed $verbosity = IOInterface::VERBOSE ]) : mixed
Parameters
$messages : mixed
$verbosity : mixed = IOInterface::VERBOSE
Return values
mixed

createSourceIterator()

private createSourceIterator(string $source, int $mode) : RecursiveIteratorIterator
Parameters
$source : string
$mode : int
Return values
RecursiveIteratorIterator

getFilesForDir()

private getFilesForDir(string $source, string $target) : array<string|int, mixed>
Parameters
$source : string
$target : string
Return values
array<string|int, mixed>

getFilesToCopy()

private getFilesToCopy(array<string|int, mixed> $manifest, string $from) : array<string|int, mixed>
Parameters
$manifest : array<string|int, mixed>
$from : string
Return values
array<string|int, mixed>

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
Return values
mixed

Search results