ArgvInput

Extends \Symfony\Component\Console\Input\ArgvInput

Argv input for the Console component of Symfony adapted to phpDocumentor.

This InputStream for the Symfony Console component prepends the namespace and command name project:run to the Argv array if no command has been provided.

package

Default

Methods

Constructor.

__construct(array<mixed,string> $argv = null, \Symfony\Component\Console\Input\InputDefinition $definition = null) 
api

The constructor has been overridden to check whether the first element in the argument list is an argument (as it represents the command name).

If it is not then we insert the command name: project:run.

This way we can ensure that if no command name is given that the project defaults to the execution of phpDocumentor. This is behavior that is expected from previous releases of phpDocumentor.

Arguments

$argv

array<mixed,string>

An array of parameters from the CLI (in the argv format)

$definition

\Symfony\Component\Console\Input\InputDefinition

A InputDefinition instance