From 24e927c569901e2f8a0a3e0244b7b188bd9d3571 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 15 Mar 2022 12:01:41 +0100 Subject: [PATCH] wip #5161 @0.5 --- composer.json | 5 ++--- src/Translate.php | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index c471db3..8e2d67f 100644 --- a/composer.json +++ b/composer.json @@ -19,9 +19,8 @@ "require": { "php": ">=7.1.3", "umpirsky/locale-list": "^1.0", - "umpirsky/country-list": "^2.0" - }, - "require-dev": { + "umpirsky/country-list": "^2.0", + "barryvdh/laravel-debugbar": "^3.6" }, "extra": { "branch-alias": { diff --git a/src/Translate.php b/src/Translate.php index aa81e94..a15d56d 100644 --- a/src/Translate.php +++ b/src/Translate.php @@ -49,12 +49,14 @@ class Translate $this->_paths = array_unique($this->_paths); foreach ($this->_paths as $sectionLabel => $path) { + start_measure('Parse path for translations '.$path); $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)); foreach ($iterator as $p) { if ($p->isFile()) { $this->_parseFile($p, $sectionLabel); } } + stop_measure('Parse path for translations '.$path); } } -- 2.39.5