Changed the typehint of the EsiFragmentRenderer to the interface

This commit is contained in:
Christophe Coevoet 2014-04-09 00:45:11 +02:00 committed by Fabien Potencier
parent 4293d40fce
commit d1fca907f9

View File

@ -32,10 +32,10 @@ class EsiFragmentRenderer extends RoutableFragmentRenderer
* The "fallback" strategy when ESI is not available should always be an
* instance of InlineFragmentRenderer.
*
* @param Esi $esi An Esi instance
* @param InlineFragmentRenderer $inlineStrategy The inline strategy to use when ESI is not supported
* @param Esi $esi An Esi instance
* @param FragmentRendererInterface $inlineStrategy The inline strategy to use when ESI is not supported
*/
public function __construct(Esi $esi, InlineFragmentRenderer $inlineStrategy)
public function __construct(Esi $esi, FragmentRendererInterface $inlineStrategy)
{
$this->esi = $esi;
$this->inlineStrategy = $inlineStrategy;