PHP Class Overtrue\PHPLint\Console\Application

Inheritance: extends Symfony\Component\Console\Application
Show file Open project: overtrue/phplint

Public Methods

Method Description
__construct ( ) Constructor.
getDefinition ( ) Overridden so that the application doesn't expect the command name to be the first argument.

Protected Methods

Method Description
getCommandName ( Symfony\Component\Console\Input\InputInterface $input ) : string Gets the name of the command based on input.

Method Details

__construct() public method

Constructor.
public __construct ( )

getCommandName() protected method

Gets the name of the command based on input.
protected getCommandName ( Symfony\Component\Console\Input\InputInterface $input ) : string
$input Symfony\Component\Console\Input\InputInterface The input interface
return string The command name

getDefinition() public method

Overridden so that the application doesn't expect the command name to be the first argument.
public getDefinition ( )