Composer API
Class

Composer\Command\Command

abstract class Command extends Command

Base class for Composer commands

Methods

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

setComposer(Composer $composer)

resetComposer()

Removes the cached composer instance

IOInterface getIO()

setIO(IOInterface $io)

Details

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

Parameters

bool $required
bool $disablePlugins

Return Value

Composer

Exceptions

RuntimeException

at line 68
public setComposer(Composer $composer)

Parameters

Composer $composer

at line 76
public resetComposer()

Removes the cached composer instance

at line 85
public IOInterface getIO()

Return Value

IOInterface

at line 103
public setIO(IOInterface $io)

Parameters

IOInterface $io