mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-05-27 19:12:58 +02:00
Merge pull request #22 from stof/fix_typehint
Fixed the typehint to use the interface
This commit is contained in:
commit
b29850f792
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace Knp\Bundle\MarkdownBundle\DependencyInjection;
|
||||
|
||||
use Symfony\Component\Config\Definition\Builder\NodeBuilder;
|
||||
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
|
||||
|
||||
class Configuration
|
||||
|
@ -10,7 +9,7 @@ class Configuration
|
|||
/**
|
||||
* Generates the configuration tree.
|
||||
*
|
||||
* @return \Symfony\Component\DependencyInjection\Configuration\NodeInterface
|
||||
* @return TreeBuilder
|
||||
*/
|
||||
public function getConfigTree()
|
||||
{
|
||||
|
|
|
@ -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