Skip to content

Commit

Permalink
Get hints method added
Browse files Browse the repository at this point in the history
  • Loading branch information
grinry committed Dec 7, 2016
1 parent c56b016 commit 207694e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Translation/ArrayLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
10 changes: 10 additions & 0 deletions src/Illuminate/Translation/FileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
7 changes: 7 additions & 0 deletions src/Illuminate/Translation/LoaderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 207694e

Please sign in to comment.