Composer API
Class

Composer\Command\DependsCommand

class DependsCommand extends BaseDependencyCommand

Constants

ARGUMENT_PACKAGE

ARGUMENT_CONSTRAINT

OPTION_RECURSIVE

OPTION_TREE

Methods

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

from BaseCommand
setComposer(Composer $composer)

from BaseCommand
resetComposer()

Removes the cached composer instance

from BaseCommand
bool isProxyCommand()

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

from BaseCommand
IOInterface getIO()

from BaseCommand
setIO(IOInterface $io)

from BaseCommand

Details

in BaseCommand at line 48
public Composer getComposer(bool $required = true, bool|null $disablePlugins = null)

Parameters

bool $required
bool|null $disablePlugins

Return Value

Composer

Exceptions

RuntimeException

in BaseCommand at line 69
public setComposer(Composer $composer)

Parameters

Composer $composer

in BaseCommand at line 77
public resetComposer()

Removes the cached composer instance

in BaseCommand at line 90
public 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

in BaseCommand at line 98
public IOInterface getIO()

Return Value

IOInterface

in BaseCommand at line 116
public setIO(IOInterface $io)

Parameters

IOInterface $io