PHP Class GrumPHP\Console\Command\ConfigureCommand

Inheritance: extends Symfony\Component\Console\Command\Command
Mostrar archivo Open project: phpro/grumphp

Protected Properties

Property Type Description
$config GrumPHP\Configuration\GrumPHP
$filesystem GrumPHP\Util\Filesystem
$input Symfony\Component\Console\Input\InputInterface
$repository Gitonomy\Git\Repository

Public Methods

Method Description
__construct ( GrumPHP $config, Filesystem $filesystem, Repository $repository )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
pathValidator ( $path ) : boolean

Protected Methods

Method Description
buildConfiguration ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : array This method will ask the developer for it's input and will result in a configuration array.
composer ( ) : ComposerHelper
configure ( ) Configure command
createQuestionString ( $question, null $default = null, string $separator = ':' ) : string
getAvailableTasks ( GrumPHP $config ) : array Return a list of all available tasks
guessBinDir ( ) : string Make a guess to the bin dir
guessGitDir ( ) : string
paths ( ) : PathsHelper
writeConfiguration ( array $configuration ) : boolean

Method Details

__construct() public method

public __construct ( GrumPHP $config, Filesystem $filesystem, Repository $repository )
$config GrumPHP\Configuration\GrumPHP
$filesystem GrumPHP\Util\Filesystem
$repository Gitonomy\Git\Repository

buildConfiguration() protected method

This method will ask the developer for it's input and will result in a configuration array.
protected buildConfiguration ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : array
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return array

composer() protected method

protected composer ( ) : ComposerHelper
return GrumPHP\Console\Helper\ComposerHelper

configure() protected method

Configure command
protected configure ( )

createQuestionString() protected method

protected createQuestionString ( $question, null $default = null, string $separator = ':' ) : string
$question
$default null
$separator string
return string

execute() public method

public execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return integer | void

getAvailableTasks() protected method

Return a list of all available tasks
protected getAvailableTasks ( GrumPHP $config ) : array
$config GrumPHP\Configuration\GrumPHP
return array

guessBinDir() protected method

Make a guess to the bin dir
protected guessBinDir ( ) : string
return string

guessGitDir() protected method

protected guessGitDir ( ) : string
return string

pathValidator() public method

public pathValidator ( $path ) : boolean
$path
return boolean

paths() protected method

protected paths ( ) : PathsHelper
return GrumPHP\Console\Helper\PathsHelper

writeConfiguration() protected method

protected writeConfiguration ( array $configuration ) : boolean
$configuration array
return boolean

Property Details

$config protected_oe property

protected GrumPHP,GrumPHP\Configuration $config
return GrumPHP\Configuration\GrumPHP

$filesystem protected_oe property

protected Filesystem,GrumPHP\Util $filesystem
return GrumPHP\Util\Filesystem

$input protected_oe property

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

$repository protected_oe property

protected Repository,Gitonomy\Git $repository
return Gitonomy\Git\Repository