PHP Class Crummy\Phlack\Bridge\Symfony\Console\ShellBot

Inheritance: extends Symfony\Component\Console\Application
Afficher le fichier Open project: mcrumm/phlack

Méthodes publiques

Méthode Description
__construct ( $name = 'phlackbot', $version = 'UNKNOWN', BotCommand $botCommand = null )
getDefinition ( ) Replaces the default InputDefinition with one containing only the 'command' argument.

Méthodes protégées

Méthode Description
getCommandName ( Symfony\Component\Console\Input\InputInterface $input ) Overrides commandName for this ShellBot.
getDefaultCommands ( ) Adds BotCommand as the sole command for this ShellBot.

Method Details

__construct() public méthode

public __construct ( $name = 'phlackbot', $version = 'UNKNOWN', BotCommand $botCommand = null )
$botCommand BotCommand The BotCommand that executes for this ShellBot.

getCommandName() protected méthode

protected getCommandName ( Symfony\Component\Console\Input\InputInterface $input )
$input Symfony\Component\Console\Input\InputInterface

getDefaultCommands() protected méthode

protected getDefaultCommands ( )

getDefinition() public méthode

public getDefinition ( )