Composer API
Class

Composer\Command\LicensesCommand

class LicensesCommand 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
array appendPackages(array $packages, array $bucket)

Adds packages to the package list

Details

in BaseCommand at line 48
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 69
public setComposer(Composer $composer)

Parameters

Composer $composer

in BaseCommand at line 77
public resetComposer()

Removes the cached composer instance

in BaseCommand 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 98
public IOInterface getIO()

Return Value

IOInterface

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

Parameters

IOInterface $io

at line 148
public array appendPackages(array $packages, array $bucket)

Adds packages to the package list

Parameters

array $packages the list of packages to add
array $bucket the list to add packages to

Return Value

array