1 | <?php |
||
7 | class UnignoreComposerLock implements SetupScript |
||
8 | { |
||
9 | const COMPOSER_LOCK = "composer.lock"; |
||
10 | |||
11 | /** |
||
12 | * Fire the install script |
||
13 | * |
||
14 | * @param Command $command |
||
15 | * @return mixed |
||
16 | */ |
||
17 | public function fire(Command $command) |
||
31 | |||
32 | /** |
||
33 | * @param $gitignorePath |
||
34 | * @return bool |
||
35 | */ |
||
36 | private function gitignoreContainsComposerLock($gitignorePath) |
||
40 | |||
41 | /** |
||
42 | * @param $gitignorePath |
||
43 | * @return array |
||
44 | */ |
||
45 | private function getGitignoreLinesButComposerLock($gitignorePath) |
||
57 | |||
58 | /** |
||
59 | * @param $gitignorePath |
||
60 | * @param $out |
||
61 | */ |
||
62 | private function writeNewGitignore($gitignorePath, $out) |
||
72 | } |
||
73 |