class ConfigCommand extends BaseCommand (View source)

Properties

protected Config $config
protected JsonFile $configFile
protected JsonConfigSource $configSource
protected JsonFile $authConfigFile
protected JsonConfigSource $authConfigSource

Methods

getComposer(bool $required = true, bool|null $disablePlugins = null)

No description

setComposer(Composer $composer)

No description

resetComposer()

Removes the cached composer instance

bool
isProxyCommand()

Whether or not this command is meant to call another command.

getIO()

No description

setIO(IOInterface $io)

No description

initialize(InputInterface $input, OutputInterface $output)

{@inheritDoc}

bool[]
getPreferredInstallOptions(Config $config, InputInterface $input, bool $keepVcsRequiresPreferSource = false)

Returns preferSource and preferDist values based on the configuration.

configure()

{@inheritDoc}

execute(InputInterface $input, OutputInterface $output)

{@inheritDoc}

handleSingleValue($key, array $callbacks, array $values, $method)

No description

handleMultiValue($key, array $callbacks, array $values, $method)

No description

listConfiguration(array $contents, array $rawContents, OutputInterface $output, string|null $k = null)

Display the contents of the file in a pretty formatted way

Details

Composer getComposer(bool $required = true, bool|null $disablePlugins = null)

Parameters

bool $required
bool|null $disablePlugins

Return Value

Composer

Exceptions

RuntimeException

setComposer(Composer $composer)

Parameters

Composer $composer

resetComposer()

Removes the cached composer instance

bool isProxyCommand()

Whether or not this command is meant to call another command.

This is mainly needed to avoid duplicated warnings messages.

Return Value

bool

IOInterface getIO()

Return Value

IOInterface

setIO(IOInterface $io)

Parameters

IOInterface $io

protected initialize(InputInterface $input, OutputInterface $output)

{@inheritDoc}

Parameters

InputInterface $input
OutputInterface $output

protected bool[] getPreferredInstallOptions(Config $config, InputInterface $input, bool $keepVcsRequiresPreferSource = false)

Returns preferSource and preferDist values based on the configuration.

Parameters

Config $config
InputInterface $input
bool $keepVcsRequiresPreferSource

Return Value

bool[] An array composed of the preferSource and preferDist values

protected configure()

{@inheritDoc}

protected execute(InputInterface $input, OutputInterface $output)

{@inheritDoc}

Parameters

InputInterface $input
OutputInterface $output

protected handleSingleValue($key, array $callbacks, array $values, $method)

Parameters

$key
array $callbacks
array $values
$method

protected handleMultiValue($key, array $callbacks, array $values, $method)

Parameters

$key
array $callbacks
array $values
$method

protected listConfiguration(array $contents, array $rawContents, OutputInterface $output, string|null $k = null)

Display the contents of the file in a pretty formatted way

Parameters

array $contents
array $rawContents
OutputInterface $output
string|null $k