@@ -76,6 +76,9 @@ |
||
76 | 76 | $this->templateRenderer = $templateRenderer; |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @param string $context |
|
81 | + */ |
|
79 | 82 | private function getRenderer($object, $context = null) |
80 | 83 | { |
81 | 84 | $cacheKey = "chainRendererByClass_".$this->uniqueName."/".$this->templateRenderer->getUniqueName()."/".$this->getTemplateRendererInstanceName()."/".get_class($object)."/".$context; |
@@ -54,8 +54,6 @@ |
||
54 | 54 | * |
55 | 55 | * @param string $directory The directory of the templates, relative to the project root. Does not start and does not finish with a / |
56 | 56 | * @param CacheInterface $cacheService This service is used to speed up the mapping between the object and the template. |
57 | - * @param string $type The type of the renderer. Should be one of "custom", "template" or "package". Defaults to "custom" (see ChainableRendererInterface for more details) |
|
58 | - * @param number $priority The priority of the renderer (within its type) |
|
59 | 57 | */ |
60 | 58 | public function __construct(string $directory, CacheInterface $cacheService, ContainerInterface $container, Twig $twig = null) |
61 | 59 | { |