Composer API
Class

Composer\Command\BaseCommand

abstract class BaseCommand extends Command

Base class for Composer commands

Methods

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

setComposer(Composer $composer)

resetComposer()

Removes the cached composer instance

bool isProxyCommand()

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

IOInterface getIO()

setIO(IOInterface $io)

Details

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

Parameters

bool $required
bool|null $disablePlugins

Return Value

Composer

Exceptions

RuntimeException

at line 69
public setComposer(Composer $composer)

Parameters

Composer $composer

at line 77
public resetComposer()

Removes the cached composer instance

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

at line 98
public IOInterface getIO()

Return Value

IOInterface

at line 116
public setIO(IOInterface $io)

Parameters

IOInterface $io