37 if (isset($this->cache[
$key])) {
38 return $this->cache[
$key];
40 $renderer = $this->loader->getRendererFor($component, $contexts);
41 $this->cache[
$key] = $renderer;
54 return $component->
getCanonicalName() .
" " . implode(
"_", $this->getContextNames($contexts));
62 return $this->loader->getRendererFactoryFor($component);
Caches renderers loaded by another loader.
getCanonicalName()
Get the canonical name of the component.
getRendererFactoryFor(Component $component)
__construct(Loader $loader)
getCacheKey(Component $component, array $contexts)
Get a key for the cache.
Loads renderers for components.
getRendererFor(Component $component, array $contexts)