8000 Sorting files while extracting translation messages from a twig templ… · symfony/symfony@ba0bcb1 · GitHub
[go: up one dir, main page]

Skip to content

Commit ba0bcb1

Browse files
pauluzfabpot
authored andcommitted
Sorting files while extracting translation messages from a twig templates
1 parent 430c6d7 commit ba0bcb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Translation/TwigExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function extract($directory, MessageCatalogue $catalogue)
5656
{
5757
// load any existing translation files
5858
$finder = new Finder();
59-
$files = $finder->files()->name('*.twig')->in($directory);
59+
$files = $finder->files()->name('*.twig')->sortByName()->in($directory);
6060
foreach ($files as $file) {
6161
$this->extractTemplate(file_get_contents($file->getPathname()), $catalogue);
6262
}

0 commit comments

Comments
 (0)
0