1
0
mirror of https://github.com/flarum/core.git synced 2025-08-17 13:54:18 +02:00

Add todo about model validation

This commit is contained in:
Toby Zerner
2015-07-01 13:35:27 +09:30
parent eafdd415ef
commit c1595af84f
2 changed files with 10 additions and 3 deletions

View File

@@ -2,6 +2,9 @@
use Closure;
/**
* @todo implement Symfony\Component\Translation\TranslatorInterface
*/
class Translator
{
protected $translations;
@@ -16,9 +19,7 @@ class Translator
public function plural($count)
{
$callback = $this->plural;
return $callback($count);
return {$this->plural}($count);
}
public function translate($key, array $input = [])