Composer API
Class

Composer\Command\HomeCommand

class HomeCommand extends BaseCommand

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 47
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 68
public setComposer(Composer $composer)

Parameters

Composer $composer

in BaseCommand at line 76
public resetComposer()

Removes the cached composer instance

in BaseCommand at line 89
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 97
public IOInterface getIO()

Return Value

IOInterface

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

Parameters

IOInterface $io