public function registerFormatter($formatter)
{
$this->formatter->register($formatter);
}
public function load(\Transphporm\Config $config) { $locale = $this->getLocale(); $config->registerFormatter(new \Transphporm\Formatter\Number($locale)); $config->registerFormatter(new \Transphporm\Formatter\Date($locale)); $config->registerFormatter(new \Transphporm\Formatter\StringFormatter()); $config->registerFormatter(new \Transphporm\Formatter\Nl2br()); }