PHP Class GrumPHP\Console\Command\Git\InitCommand

Inheritance: extends Symfony\Component\Console\Command\Command
Show file Open project: phpro/grumphp

Public Properties

Property Type Description
$hooks array

Protected Properties

Property Type Description
$filesystem GrumPHP\Util\Filesystem
$grumPHP GrumPHP\Configuration\GrumPHP
$input Symfony\Component\Console\Input\InputInterface
$processBuilder Symfony\Component\Process\ProcessBuilder

Public Methods

Method Description
__construct ( GrumPHP $grumPHP, Filesystem $filesystem, Symfony\Component\Process\ProcessBuilder $processBuilder )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void

Protected Methods

Method Description
configure ( ) Configure command
generateHookCommand ( $command ) : string
parseHookBody ( $hook, SplFileInfo $templateFile ) : mixed
paths ( ) : PathsHelper
useExoticConfigFile ( ) : null | string This method will tell you which exotic configuration file should be used.

Method Details

__construct() public method

public __construct ( GrumPHP $grumPHP, Filesystem $filesystem, Symfony\Component\Process\ProcessBuilder $processBuilder )
$grumPHP GrumPHP\Configuration\GrumPHP
$filesystem GrumPHP\Util\Filesystem
$processBuilder Symfony\Component\Process\ProcessBuilder

configure() protected method

Configure command
protected configure ( )

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

generateHookCommand() protected method

protected generateHookCommand ( $command ) : string
$command
return string

parseHookBody() protected method

protected parseHookBody ( $hook, SplFileInfo $templateFile ) : mixed
$hook
$templateFile SplFileInfo
return mixed

paths() protected method

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

useExoticConfigFile() protected method

This method will tell you which exotic configuration file should be used.
protected useExoticConfigFile ( ) : null | string
return null | string

Property Details

$filesystem protected property

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

$grumPHP protected property

protected GrumPHP,GrumPHP\Configuration $grumPHP
return GrumPHP\Configuration\GrumPHP

$hooks public static property

public static array $hooks
return array

$input protected property

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

$processBuilder protected property

protected ProcessBuilder,Symfony\Component\Process $processBuilder
return Symfony\Component\Process\ProcessBuilder