Skip to content

Commit 2121759

Browse files
committed
Merge branch 'patch-1' into 8.x
2 parents 2a66f57 + 40e8d25 commit 2121759

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/Illuminate/Translation/FileLoader.php

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,16 @@ public function addNamespace($namespace, $hint)
164164
$this->hints[$namespace] = $hint;
165165
}
166166

167+
/**
168+
* Get an array of all the registered namespaces.
169+
*
170+
* @return array
171+
*/
172+
public function namespaces()
173+
{
174+
return $this->hints;
175+
}
176+
167177
/**
168178
* Add a new JSON path to the loader.
169179
*
@@ -176,12 +186,12 @@ public function addJsonPath($path)
176186
}
177187

178188
/**
179-
* Get an array of all the registered namespaces.
189+
* Get an array of all the registered paths to JSON translation files.
180190
*
181191
* @return array
182192
*/
183-
public function namespaces()
193+
public function jsonPaths()
184194
{
185-
return $this->hints;
195+
return $this->jsonPaths;
186196
}
187197
}

0 commit comments

Comments
 (0)