PHP Class PhpGitHooks\Module\Git\Service\PreCommitTool

显示文件 Open project: bruli/php-git-hooks Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\Console\Output\OutputInterface $output, FilesCommittedExtractor $filesCommittedExtractor, Bruli\EventBusBundle\QueryBus\QueryBus $queryBus, Bruli\EventBusBundle\CommandBus\CommandBus $commandBus, ToolTittleOutputWriter $tittleOutputWriter ) PreCommitTool constructor.
execute ( )

Private Methods

Method Description
executeTools ( PreCommitResponse $preCommitResponse, array $committedFiles )
getPhpFiles ( array $committedFiles ) : array

Method Details

__construct() public method

PreCommitTool constructor.
public __construct ( Symfony\Component\Console\Output\OutputInterface $output, FilesCommittedExtractor $filesCommittedExtractor, Bruli\EventBusBundle\QueryBus\QueryBus $queryBus, Bruli\EventBusBundle\CommandBus\CommandBus $commandBus, ToolTittleOutputWriter $tittleOutputWriter )
$output Symfony\Component\Console\Output\OutputInterface
$filesCommittedExtractor PhpGitHooks\Module\Git\Infrastructure\Files\FilesCommittedExtractor
$queryBus Bruli\EventBusBundle\QueryBus\QueryBus
$commandBus Bruli\EventBusBundle\CommandBus\CommandBus
$tittleOutputWriter PhpGitHooks\Module\Git\Infrastructure\OutputWriter\ToolTittleOutputWriter

execute() public method

public execute ( )