mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-06-26 09:20:07 +02:00
Fixed the typehint to use the interface
This commit is contained in:
parent
8a7637054b
commit
3cdc947f33
|
@ -3,17 +3,17 @@
|
|||
namespace Knp\Bundle\MarkdownBundle\Helper;
|
||||
|
||||
use Symfony\Component\Templating\Helper\HelperInterface;
|
||||
use Knp\Bundle\MarkdownBundle\Parser\MarkdownParser;
|
||||
use Knp\Bundle\MarkdownBundle\MarkdownParserInterface;
|
||||
|
||||
class MarkdownHelper implements HelperInterface
|
||||
{
|
||||
/**
|
||||
* @var MarkdownParser
|
||||
* @var MarkdownParserInterface
|
||||
*/
|
||||
protected $parser;
|
||||
protected $charset = 'UTF-8';
|
||||
|
||||
public function __construct(MarkdownParser $parser)
|
||||
public function __construct(MarkdownParserInterface $parser)
|
||||
{
|
||||
$this->parser = $parser;
|
||||
}
|
||||
|
@ -52,5 +52,4 @@ class MarkdownHelper implements HelperInterface
|
|||
{
|
||||
return $this->parser->transform($markdownText);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue