Skip to content

Commit

Permalink
Merge branch 'patch-1' into 8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 21, 2021
2 parents 2a66f57 + 40e8d25 commit 2121759
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/Illuminate/Translation/FileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,16 @@ public function addNamespace($namespace, $hint)
$this->hints[$namespace] = $hint;
}

/**
* Get an array of all the registered namespaces.
*
* @return array
*/
public function namespaces()
{
return $this->hints;
}

/**
* Add a new JSON path to the loader.
*
Expand All @@ -176,12 +186,12 @@ public function addJsonPath($path)
}

/**
* Get an array of all the registered namespaces.
* Get an array of all the registered paths to JSON translation files.
*
* @return array
*/
public function namespaces()
public function jsonPaths()
{
return $this->hints;
return $this->jsonPaths;
}
}

0 comments on commit 2121759

Please sign in to comment.