\phpDocumentor\Console\InputArgvInput

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.

Summary

Methods
Properties
Constants
__construct()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

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

Constructor.

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.

Parameters

array<mixed,string> $argv

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

\Symfony\Component\Console\Input\InputDefinition $definition

A InputDefinition instance