Composer API
Class

Composer\Command\BaseDependencyCommand

class BaseDependencyCommand extends BaseCommand

Base implementation for commands mapping dependency relationships.

Constants

ARGUMENT_PACKAGE

ARGUMENT_CONSTRAINT

OPTION_RECURSIVE

OPTION_TREE

Methods

Composer getComposer(bool $required = true, bool $disablePlugins = false)

from BaseCommand
setComposer(Composer $composer)

from BaseCommand
resetComposer()

Removes the cached composer instance

from BaseCommand
IOInterface getIO()

from BaseCommand
setIO(IOInterface $io)

from BaseCommand

Details

in BaseCommand at line 47
public Composer getComposer(bool $required = true, bool $disablePlugins = false)

Parameters

bool $required
bool $disablePlugins

Return Value

Composer

Exceptions

RuntimeException

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

Parameters

Composer $composer

in BaseCommand at line 76
public resetComposer()

Removes the cached composer instance

in BaseCommand at line 85
public IOInterface getIO()

Return Value

IOInterface

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

Parameters

IOInterface $io