Sorting files while extracting translation messages from a twig templates
This commit is contained in:
parent
430c6d7485
commit
ba0bcb1bb3
@ -56,7 +56,7 @@ class TwigExtractor implements ExtractorInterface
|
|||||||
{
|
{
|
||||||
// load any existing translation files
|
// load any existing translation files
|
||||||
$finder = new Finder();
|
$finder = new Finder();
|
||||||
$files = $finder->files()->name('*.twig')->in($directory);
|
$files = $finder->files()->name('*.twig')->sortByName()->in($directory);
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
$this->extractTemplate(file_get_contents($file->getPathname()), $catalogue);
|
$this->extractTemplate(file_get_contents($file->getPathname()), $catalogue);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user