| @@ 304-314 (lines=11) @@ | ||
| 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 | } |
|
| @@ 127-137 (lines=11) @@ | ||
| 124 | * @param array $config |
|
| 125 | * @param OutputInterface $output |
|
| 126 | */ |
|
| 127 | protected function saveConfigFile(array $config, OutputInterface $output) |
|
| 128 | { |
|
| 129 | $dumper = new Dumper(); |
|
| 130 | $yaml = $dumper->dump($config, 6); |
|
| 131 | ||
| 132 | try { |
|
| 133 | file_put_contents($this->_projectPath . '/magestead.yaml', $yaml); |
|
| 134 | } catch (\Exception $e) { |
|
| 135 | $output->writeln('<error>Unable to write to the YAML file</error>'); |
|
| 136 | } |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * @param OutputInterface $output |
|