Skip to content

Commit fa70c53

Browse files
author
Alexandre Guidet
committed
fix yml template
1 parent fabe477 commit fa70c53

3 files changed

Lines changed: 2 additions & 1 deletion

File tree

Migrate/Command/AddEnvCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7575
$defaultEditorQuestion = new Question("Please enter the text editor to use by default <info>(default vim)</info>: ", "vim");
7676
$defaultEditor = $questions->ask($input, $output, $defaultEditorQuestion);
7777

78-
$confTemplate = file_get_contents(__DIR__ . '/../../templates/env.yml');
78+
$confTemplate = file_get_contents(__DIR__ . '/../../templates/env.yml.tpl');
7979
$confTemplate = str_replace('{DRIVER}', $driver, $confTemplate);
8080
$confTemplate = str_replace('{HOST}', $dbHost, $confTemplate);
8181
$confTemplate = str_replace('{PORT}', $dbPort, $confTemplate);
File renamed without changes.

tests/Command/AddenvCommandTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public function testExecute()
6565
6666
changelog: changelog
6767
default_editor: vim
68+
6869
EXPECTED;
6970

7071
$fileContent = file_get_contents($envDir . '/testing.yml');

0 commit comments

Comments
 (0)