@@ 134-144 (lines=11) @@ | ||
131 | * @param array $config |
|
132 | * @param OutputInterface $output |
|
133 | */ |
|
134 | protected function saveConfigFile(array $config, OutputInterface $output) |
|
135 | { |
|
136 | $dumper = new Dumper(); |
|
137 | $yaml = $dumper->dump($config, 6); |
|
138 | ||
139 | try { |
|
140 | file_put_contents($this->_projectPath . '/magestead.yaml', $yaml); |
|
141 | } catch (\Exception $e) { |
|
142 | $output->writeln('<error>Unable to write to the YAML file</error>'); |
|
143 | } |
|
144 | } |
|
145 | ||
146 | /** |
|
147 | * @param OutputInterface $output |
@@ 304-315 (lines=12) @@ | ||
301 | * @param $behat |
|
302 | * @param $progress |
|
303 | */ |
|
304 | protected function saveBehatConfig($projectPath, OutputInterface $output, $behat, $progress) |
|
305 | { |
|
306 | $dumper = new Dumper(); |
|
307 | $yaml = $dumper->dump($behat, 6); |
|
308 | ||
309 | try { |
|
310 | file_put_contents($projectPath . '/behat.yml', $yaml); |
|
311 | $progress->advance(); |
|
312 | } catch (\Exception $e) { |
|
313 | $output->writeln('<error>Unable to write to the YAML file</error>'); |
|
314 | } |
|
315 | } |
|
316 | } |