Composer API
Class

Composer\Command\GlobalCommand

class GlobalCommand 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.

IOInterface getIO()

from BaseCommand
setIO(IOInterface $io)

from BaseCommand
run(InputInterface $input, OutputInterface $output)

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

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 97
public IOInterface getIO()

Return Value

IOInterface

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

Parameters

IOInterface $io

at line 56
public run(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output