Skip to content

Commit ab8e54d

Browse files
authored
Merge pull request #9 from jdlabails/fix/init-command
Fix #5 init command
2 parents 7656f8e + 857fd34 commit ab8e54d

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

Command/InitCommand.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
use Symfony\Component\Console\Output\OutputInterface;
88

99
/**
10-
* Command d'initialisation des repertoires de rapports d'analyses
10+
* Initialization command of analysis directories
1111
*/
1212
class InitCommand extends ContainerAwareCommand
1313
{
14-
1514
/**
16-
* Configuration de la commande
15+
* Configuration
1716
*/
1817
protected function configure()
1918
{
@@ -24,7 +23,7 @@ protected function configure()
2423
}
2524

2625
/**
27-
* Execution de la commande
26+
* Execution
2827
*
2928
* @param InputInterface $input
3029
* @param OutputInterface $output
@@ -54,11 +53,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
5453
'www-data:www-data'
5554
);
5655

57-
$output = [];
58-
exec($installerPath. ' ' . $webServer . ' ' . $reportPath, $output);
56+
$outputExec = [];
57+
exec($installerPath. ' ' . $webServer . ' ' . $reportPath, $outputExec);
5958

60-
$output[] = "\nInstallation done";
59+
$outputExec[] = "\nInstallation done";
6160

62-
$output->writeln($output);
61+
$output->writeln($outputExec);
6362
}
6463
}

0 commit comments

Comments
 (0)