Completed
Pull Request — 1.2 (#12)
by David
07:52
created
src/AutoChainRenderer.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -76,6 +76,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.
src/FileBasedRenderer.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,6 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,10 +7,8 @@
 block discarded – undo
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
 /**
Please login to merge, or discard this patch.