__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 |