Transphporm\Config::registerFormatter PHP Method

registerFormatter() public method

public registerFormatter ( $formatter )
    public function registerFormatter($formatter)
    {
        $this->formatter->register($formatter);
    }

Usage Example

Ejemplo n.º 1
0
 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());
 }
All Usage Examples Of Transphporm\Config::registerFormatter