PHP Class Flarum\Console\Command\AbstractCommand

Inheritance: extends Symfony\Component\Console\Command\Command
Show file Open project: flarum/core Class Usage Examples

Protected Properties

Property Type Description
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

Protected Methods

Method Description
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
fire ( ) Fire the command.
hasOption ( string $name ) : boolean Did the user pass the given option?
info ( string $string ) Send an info string to the user.

Method Details

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

fire() abstract protected method

Fire the command.
abstract protected fire ( )

hasOption() protected method

Did the user pass the given option?
protected hasOption ( string $name ) : boolean
$name string
return boolean

info() protected method

Send an info string to the user.
protected info ( string $string )
$string string

Property Details

$input protected property

protected InputInterface,Symfony\Component\Console\Input $input
return Symfony\Component\Console\Input\InputInterface

$output protected property

protected OutputInterface,Symfony\Component\Console\Output $output
return Symfony\Component\Console\Output\OutputInterface