Skip to content

Commit fb560bb

Browse files
author
Olivier Dolbeau
authored
Merge pull request #382 from Guite/master
Configure bundle dir before fetching catalogues
2 parents d693057 + 5c85690 commit fb560bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Catalogue/CatalogueManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function getMessages(string $locale, string $domain): array
5858
}
5959

6060
foreach ($this->catalogues[$locale]->all($domain) as $key => $text) {
61-
$messages[] = $this->createMessage($this->catalogues[$locale], $locale, $domain, $key, $text);
61+
$messages[] = $this->createMessage($this->catalogues[$locale], $locale, $domain, $key, $text ?? '');
6262
}
6363

6464
return $messages;

Command/ExtractCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9898
$locales = [$inputLocale];
9999
}
100100

101-
$catalogues = $this->catalogueFetcher->getCatalogues($config, $locales);
102101
$this->configureBundleDirs($input, $config);
102+
$catalogues = $this->catalogueFetcher->getCatalogues($config, $locales);
103103
$finder = $this->getConfiguredFinder($config);
104104

105105
$result = $this->importer->extractToCatalogues($finder, $catalogues, [

0 commit comments

Comments
 (0)