Merge pull request #22 from stof/fix_typehint

Fixed the typehint to use the interface
This commit is contained in:
Klein Florian 2012-05-03 03:02:08 -07:00
commit b29850f792
2 changed files with 4 additions and 6 deletions

View file

@ -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()
{

View file

@ -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);
}
}