class ProhibitsCommand extends BaseDependencyCommand (View source)

Constants

ARGUMENT_PACKAGE

ARGUMENT_CONSTRAINT

OPTION_RECURSIVE

OPTION_TREE

Properties

protected $colors from BaseDependencyCommand

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()

Configure command metadata.

int|null
doExecute(InputInterface $input, OutputInterface $output, bool $inverted = false)

Execute the command.

printTable(OutputInterface $output, array $results)

Assembles and prints a bottom-up table of the dependencies.

initStyles(OutputInterface $output)

Init styles for tree

printTree(array $results, string $prefix = '', int $level = 1)

Recursively prints a tree of the selected results.

int|null
execute(InputInterface $input, OutputInterface $output)

Execute the function.

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()

Configure command metadata.

protected int|null doExecute(InputInterface $input, OutputInterface $output, bool $inverted = false)

Execute the command.

Parameters

InputInterface $input
OutputInterface $output
bool $inverted Whether to invert matching process (why-not vs why behaviour)

Return Value

int|null Exit code of the operation.

protected printTable(OutputInterface $output, array $results)

Assembles and prints a bottom-up table of the dependencies.

Parameters

OutputInterface $output
array $results

protected initStyles(OutputInterface $output)

Init styles for tree

Parameters

OutputInterface $output

protected printTree(array $results, string $prefix = '', int $level = 1)

Recursively prints a tree of the selected results.

Parameters

array $results Results to be printed at this level.
string $prefix Prefix of the current tree level.
int $level Current level of recursion.

protected int|null execute(InputInterface $input, OutputInterface $output)

Execute the function.

Parameters

InputInterface $input
OutputInterface $output

Return Value

int|null