class Application extends Application (View source)

The console application that handles the commands

Properties

protected Composer $composer
protected IOInterface $io

Methods

__construct()

No description

run(InputInterface $input = null, OutputInterface $output = null)

{@inheritDoc}

doRun(InputInterface $input, OutputInterface $output)

{@inheritDoc}

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

No description

resetComposer()

Removes the cached composer instance

getIO()

No description

getHelp()

No description

getDefaultCommands()

Initializes all the composer commands.

getLongVersion()

{@inheritDoc}

getDefaultInputDefinition()

{@inheritDoc}

Details

__construct()

run(InputInterface $input = null, OutputInterface $output = null)

{@inheritDoc}

Parameters

InputInterface $input
OutputInterface $output

doRun(InputInterface $input, OutputInterface $output)

{@inheritDoc}

Parameters

InputInterface $input
OutputInterface $output

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

Parameters

bool $required
bool|null $disablePlugins

Return Value

Composer

Exceptions

JsonValidationException

resetComposer()

Removes the cached composer instance

IOInterface getIO()

Return Value

IOInterface

getHelp()

protected getDefaultCommands()

Initializes all the composer commands.

getLongVersion()

{@inheritDoc}

protected getDefaultInputDefinition()

{@inheritDoc}