PHP Class Webmozart\Console\Args\DefaultArgsParser

This parser delegates most of the work to Symfony's {@link ArgvInput} class.
Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: extends Symfony\Component\Console\Input\ArgvInput, implements Webmozart\Console\Api\Args\ArgsParser
Mostra file Open project: webmozart/console Class Usage Examples

Public Methods

Method Description
__construct ( ) Creates a new parser.
parseArgs ( Webmozart\Console\Api\Args\RawArgs $args, ArgsFormat $format, $lenient = false )

Private Methods

Method Description
copyArgumentValues ( array &$actualValues, array &$inputArguments, array &$fixedValues, $lenient = false )
createArgs ( ArgsFormat $format, Webmozart\Console\Api\Args\RawArgs $rawArgs ) : Args Creates the arguments from the current class state.
flatten ( array $arguments, array &$result = [] )
insertMissingCommandNames ( ArgsFormatInputDefinition $inputDefinition, $lenient = false )
skipCommandNames ( array &$arguments, array $commandNames )

Method Details

__construct() public method

Creates a new parser.
public __construct ( )

parseArgs() public method

public parseArgs ( Webmozart\Console\Api\Args\RawArgs $args, ArgsFormat $format, $lenient = false )
$args Webmozart\Console\Api\Args\RawArgs
$format Webmozart\Console\Api\Args\Format\ArgsFormat