1 | <?php |
||
13 | class UnignoreComposerLock implements SetupScript |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * Fire the install script |
||
18 | * |
||
19 | * @param Command $command |
||
20 | * @return mixed |
||
21 | */ |
||
22 | public function fire(Command $command) |
||
37 | |||
38 | /** |
||
39 | * @param $gitignorePath |
||
40 | * @return bool |
||
41 | */ |
||
42 | private function gitignoreContainsComposerLock($gitignorePath, $composerLock) |
||
46 | |||
47 | /** |
||
48 | * @param $gitignorePath |
||
49 | * @param $composerLock |
||
50 | * @return array |
||
51 | */ |
||
52 | private function getGitignoreLinesButComposerLock($gitignorePath, $composerLock) |
||
64 | |||
65 | /** |
||
66 | * @param $gitignorePath |
||
67 | * @param $out |
||
68 | */ |
||
69 | private function writeNewGitignore($gitignorePath, $out) |
||
79 | } |