From 586e94f39701ab4009408591e340ad0694bf98cc Mon Sep 17 00:00:00 2001 From: Jop Peters Date: Thu, 18 Jan 2018 18:55:37 +0100 Subject: [PATCH] Fix fetching config for symfony4 --- Command/DownloadCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Command/DownloadCommand.php b/Command/DownloadCommand.php index 53bfa0d8..3e3ced85 100644 --- a/Command/DownloadCommand.php +++ b/Command/DownloadCommand.php @@ -45,8 +45,10 @@ protected function execute(InputInterface $input, OutputInterface $output) /** @var StorageService $storage */ $storage = $container->get('php_translation.storage.'.$configName); + /** @var Configuration $configuration */ - $configuration = $this->getContainer()->get('php_translation.configuration.'.$configName); + $configuration = $container->get('php_translation.configuration_manager') + ->getConfiguration($input->getArgument('configuration')); $this->configureBundleDirs($input, $configuration); if ($input->getOption('cache')) {