Skip to content

Commit

Permalink
Merge pull request #4370 in SW/shopware from SW-17166/5.2/log-install…
Browse files Browse the repository at this point in the history
…er-language to 5.2

* commit '9585ddbba84c09609a5ae31fa5e2191851d01873':
  SW-17166 - log installer language
  • Loading branch information
janbuecker committed Jan 12, 2017
2 parents eae105e + 9585ddb commit 07698fb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion recovery/install/src/Command/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
$systemLocker();

$container->offsetGet('uniqueid.persister')->store();
$container->offsetGet('shopware.notify')->doTrackEvent('Installer finished');

$additionalInformation = [
'method' => 'console'
];

$container->offsetGet('shopware.notify')->doTrackEvent('Installer finished', $additionalInformation);

if ($this->IOHelper->isInteractive()) {
$this->IOHelper->writeln("<info>Shop successfully installed.</info>");
Expand Down
8 changes: 7 additions & 1 deletion recovery/install/src/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,13 @@ function prefixSessionVars(\Slim\Slim $app)
$systemLocker();

$container['uniqueid.persister']->store();
$container['shopware.notify']->doTrackEvent('Installer finished');

$additionalInformation = [
'language' => $container->offsetGet('install.language'),
'method' => 'installer'
];

$container->offsetGet('shopware.notify')->doTrackEvent('Installer finished', $additionalInformation);

$app->render(
"finish.php",
Expand Down

0 comments on commit 07698fb

Please sign in to comment.