1 | <?php |
||
16 | class PrePushTool |
||
17 | { |
||
18 | const PRE_PUSH_HOOK = '<comment>Pre-push hook</comment>'; |
||
19 | /** |
||
20 | * @var QueryBus |
||
21 | */ |
||
22 | private $queryBus; |
||
23 | /** |
||
24 | * @var PrePushOriginalExecutorInterface |
||
25 | */ |
||
26 | private $prePushOriginalExecutor; |
||
27 | /** |
||
28 | * @var OutputInterface |
||
29 | */ |
||
30 | private $output; |
||
31 | /** |
||
32 | * @var CommandBus |
||
33 | */ |
||
34 | private $commandBus; |
||
35 | |||
36 | /** |
||
37 | * PrePushTool constructor. |
||
38 | * |
||
39 | * @param QueryBus $queryBus |
||
40 | * @param PrePushOriginalExecutorInterface $prePushOriginalExecutor |
||
41 | * @param OutputInterface $output |
||
42 | * @param CommandBus $commandBus |
||
43 | */ |
||
44 | 3 | public function __construct( |
|
55 | |||
56 | /** |
||
57 | * @param string $remote |
||
58 | * @param string $url |
||
59 | * |
||
60 | * @throws InvalidPushException |
||
61 | */ |
||
62 | 3 | public function execute($remote, $url) |
|
84 | |||
85 | /** |
||
86 | * @param string $remote |
||
87 | * @param string $url |
||
88 | * @param string $errorMessage |
||
89 | * |
||
90 | * @throws InvalidPushException |
||
91 | */ |
||
92 | 2 | private function executeOriginalHook($remote, $url, $errorMessage) |
|
102 | } |
||
103 |