diff --git a/src/Illuminate/Translation/ArrayLoader.php b/src/Illuminate/Translation/ArrayLoader.php index 17d6c8b1794b..bcb665b08868 100644 --- a/src/Illuminate/Translation/ArrayLoader.php +++ b/src/Illuminate/Translation/ArrayLoader.php @@ -42,6 +42,16 @@ public function addNamespace($namespace, $hint) // } + /** + * Get array of all hints. + * + * @return array + */ + public function getHints() + { + return []; + } + /** * Add messages to the loader. * diff --git a/src/Illuminate/Translation/FileLoader.php b/src/Illuminate/Translation/FileLoader.php index 4fb6eeda9fe8..7a8b3cc1a5fc 100755 --- a/src/Illuminate/Translation/FileLoader.php +++ b/src/Illuminate/Translation/FileLoader.php @@ -144,4 +144,14 @@ public function addNamespace($namespace, $hint) { $this->hints[$namespace] = $hint; } + + /** + * Get array of all hints. + * + * @return array + */ + public function getHints() + { + return $this->hints; + } } diff --git a/src/Illuminate/Translation/LoaderInterface.php b/src/Illuminate/Translation/LoaderInterface.php index 9e4557243703..fff5a188e9dc 100755 --- a/src/Illuminate/Translation/LoaderInterface.php +++ b/src/Illuminate/Translation/LoaderInterface.php @@ -22,4 +22,11 @@ public function load($locale, $group, $namespace = null); * @return void */ public function addNamespace($namespace, $hint); + + /** + * Get array of all hints. + * + * @return array + */ + public function getHints(); }