src/Formatter/Formatter.php
protected function getComponent($name)
    {
        $formatter = $this->cache->rememberForever('flarum.formatter', function () {
            return $this->getConfigurator()->finalize();
        });

        return $formatter[$name];
    }
protected function getComponent($name)
    {
        $formatter = $this->cache->rememberForever('flarum.formatter', function () {
            return $this->getConfigurator()->finalize();
        });

        return $formatter[$name];
    }
protected function getComponent ( $ name ) { $ formatter = $ this -> cache -> rememberForever ( 'flarum.formatter' , function ( ) { return $ this -> getConfigurator ( ) -> finalize ( ) ; } ) ; return $ formatter [ $ name ] ; }
Get a TextFormatter component.

@param string $name "renderer" or "parser" or "js"
@return mixed
Get a TextFormatter component .