@@ -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; |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | |
| 8 | 8 | namespace Mouf\Html\Renderer; |
| 9 | 9 | |
| 10 | -use Mouf\Utils\Cache\CacheInterface; |
|
| 10 | +use Mouf\Utils\Cache\CacheInterface; |
|
| 11 | 11 | use Mouf\MoufManager; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -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 | {
|
@@ -7,10 +7,8 @@ |
||
| 7 | 7 | |
| 8 | 8 | namespace Mouf\Html\Renderer; |
| 9 | 9 | |
| 10 | -use Psr\Container\ContainerInterface; |
|
| 11 | -use Mouf\MoufException; |
|
| 12 | -use Mouf\Html\Renderer\Twig\MoufTwigExtension; |
|
| 13 | -use Mouf\MoufManager; |
|
| 10 | +use Psr\Container\ContainerInterface; |
|
| 11 | +use Mouf\Html\Renderer\Twig\MoufTwigExtension; |
|
| 14 | 12 | use Psr\SimpleCache\CacheInterface; |
| 15 | 13 | |
| 16 | 14 | /** |