diff --git a/bundle/Command/LegacyInitCommand.php b/bundle/Command/LegacyInitCommand.php
index a11758d9..0d245c80 100644
--- a/bundle/Command/LegacyInitCommand.php
+++ b/bundle/Command/LegacyInitCommand.php
@@ -54,7 +54,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->enableRoutes($output);
$output->writeln(<<<'EOT'
-All steps completed.
+
+All steps completed!
You can now check changes done and start to move over any legacy files (see above).
@@ -100,7 +101,7 @@ protected function updateComposeJson(OutputInterface $output)
$updateComposerJson = false;
$composerJson = json_decode(file_get_contents('composer.json'), true);
if ($composerJson === null) {
- $errOutput->writeln('Error: Unable to parse composer.json');
+ $errOutput->writeln('Error: Unable to parse composer.json');
return;
}
@@ -120,10 +121,11 @@ protected function updateComposeJson(OutputInterface $output)
$composerJson['scripts']['symfony-scripts'] = ['@legacy-scripts'];
$updateComposerJson = true;
$errOutput->writeln(<<<'EOT'
-Warning : Did not find a symfony-scripts section in composer.json, check
-source from eZ for how this is used and adapt your composer.json to take advantage.
+Warning : Did not find a symfony-scripts section in composer.json, check
+source from eZ for how this is used and adapt your composer.json to take advantage.
Example for stock 2.x setup:
+
"scripts": {
"legacy-scripts": [
"eZ\\Bundle\\EzPublishLegacyBundle\\Composer\\ScriptHandler::installAssets",
@@ -145,7 +147,7 @@ protected function updateComposeJson(OutputInterface $output)
"post-update-cmd": [
"@symfony-scripts"
],
- (...)
+
EOT
);
} elseif (!\in_array('@legacy-scripts', $composerJson['scripts']['symfony-scripts'])) {
@@ -176,7 +178,7 @@ protected function enableBundles(OutputInterface $output)
{
$errOutput = $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output;
if (!$text = file_get_contents('app/AppKernel.php')) {
- $errOutput->writeln('Error: Unable to load app/AppKernel.php');
+ $errOutput->writeln('Error: Unable to load app/AppKernel.php');
return;
}
@@ -197,7 +199,7 @@ protected function enableBundles(OutputInterface $output)
}
if (!$appOffset) {
- $errOutput->writeln('Error: Could not find "new AppBundle\AppBundle()" in app/AppKernel.php');
+ $errOutput->writeln('Error: Could not find "new AppBundle\AppBundle()" in app/AppKernel.php');
return;
}
@@ -223,7 +225,7 @@ protected function enableRoutes(OutputInterface $output)
{
$errOutput = $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output;
if (!$text = file_get_contents('app/config/routing.yml')) {
- $errOutput->writeln('Error: Unable to load app/config/routing.yml');
+ $errOutput->writeln('Error: Unable to load app/config/routing.yml');
return;
}