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

Inheritance: extends Symfony\Component\Console\Application
Show file Open project: mcrumm/phlack

Public Methods

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

Protected Methods

Method 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 method

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

getCommandName() protected method

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

getDefaultCommands() protected method

protected getDefaultCommands ( )

getDefinition() public method

public getDefinition ( )