Flarum\Formatter\Formatter::getComponent PHP 메소드

getComponent() 보호된 메소드

Get a TextFormatter component.
protected getComponent ( string $name ) : mixed
$name string "renderer" or "parser"
리턴 mixed
    protected function getComponent($name)
    {
        $cacheKey = 'flarum.formatter.' . $name;
        return $this->cache->rememberForever($cacheKey, function () use($name) {
            return $this->getConfigurator()->finalize()[$name];
        });
    }