BundlesConfigurator
extends AbstractConfigurator
in package
Tags
Table of Contents
- $composer : mixed
- $io : mixed
- $options : mixed
- $path : mixed
- __construct() : mixed
- configure() : mixed
- unconfigure() : mixed
- update() : void
- extractSection() : string|null
- isFileMarked() : bool
- isFileXmlMarked() : bool
- markData() : string
- markXmlData() : string
- updateData() : bool
- updateDataString() : string|null
- write() : mixed
- buildContents() : string
- configureBundles() : array<string|int, mixed>
- dump() : mixed
- getConfFile() : string
- getLocalConfFile() : string
- load() : array<string|int, mixed>
- prepareBundles() : array<string|int, 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 $bundles, Lock $lock[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
Return values
mixed —unconfigure()
public
unconfigure(Recipe $recipe, mixed $bundles, Lock $lock) : mixed
Parameters
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 —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
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 —buildContents()
private
buildContents(array<string|int, mixed> $bundles) : string
Parameters
- $bundles : array<string|int, mixed>
Return values
string —configureBundles()
private
configureBundles(array<string|int, mixed> $bundles[, bool $resetEnvironments = false ]) : array<string|int, mixed>
Parameters
- $bundles : array<string|int, mixed>
- $resetEnvironments : bool = false
Return values
array<string|int, mixed> —dump()
private
dump(string $file, array<string|int, mixed> $bundles) : mixed
Parameters
- $file : string
- $bundles : array<string|int, mixed>
Return values
mixed —getConfFile()
private
getConfFile() : string
Return values
string —getLocalConfFile()
private
getLocalConfFile() : string
Return values
string —load()
private
load(string $file) : array<string|int, mixed>
Parameters
- $file : string
Return values
array<string|int, mixed> —prepareBundles()
private
prepareBundles(array<string|int, mixed> $bundles) : array<string|int, mixed>
Parameters
- $bundles : array<string|int, mixed>