1 | <?php |
||
25 | class InitializeCommand |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * @var Context |
||
30 | */ |
||
31 | private $context; |
||
32 | |||
33 | /** |
||
34 | * @var Stdio |
||
35 | */ |
||
36 | private $stdio; |
||
37 | |||
38 | /** |
||
39 | * @var \Eloquent\Pathogen\AbsolutePath |
||
40 | */ |
||
41 | private $destDirectoryPath; |
||
42 | |||
43 | /** |
||
44 | * @var \Eloquent\Pathogen\AbsolutePath |
||
45 | */ |
||
46 | private $destDirectoryFilePath; |
||
47 | |||
48 | /** |
||
49 | * @param Context $context |
||
50 | * @param Stdio $stdio |
||
51 | */ |
||
52 | public function __construct(Context $context, Stdio $stdio) |
||
57 | |||
58 | /** |
||
59 | * @param string|null $projectDirectory |
||
60 | * @return int |
||
61 | */ |
||
62 | public function __invoke($projectDirectory = null) |
||
72 | |||
73 | /** |
||
74 | * @param string|null $projectDirectory |
||
75 | */ |
||
76 | private function prepare($projectDirectory = null) |
||
98 | |||
99 | /** |
||
100 | * @param PrintableException $exception |
||
101 | * @return int |
||
102 | */ |
||
103 | private function failed(PrintableException $exception) |
||
108 | |||
109 | /** |
||
110 | * @return int |
||
111 | */ |
||
112 | private function performAction() |
||
122 | |||
123 | /** |
||
124 | * @return int |
||
125 | */ |
||
126 | private function copyTemplateFile() |
||
136 | |||
137 | } |
||
138 |