<?php

namespace Knp\Bundle\MarkdownBundle\Parser;

use Knp\Bundle\MarkdownBundle\MarkdownParserInterface;

use Sundown\Markdown;

/**
 * SundownParser
 *
 * This class wraps the original Sundown parser to implement the KnpMardownBundle interface
 */
class SundownParser implements MarkdownParserInterface
{
    private $parser;

    public function __construct(Markdown $parser)
    {
        $this->parser = $parser;
    }

    /**
     * {@inheritdoc}
     */
    public function transformMarkdown($text)
    {
        return $this->parser->render($text);
    }
}

<?php

namespace Knp\Bundle\MarkdownBundle\Parser;

use Knp\Bundle\MarkdownBundle\MarkdownParserInterface;

use Sundown\Markdown;

/**
 * SundownParser
 *
 * This class wraps the original Sundown parser to implement the KnpMardownBundle interface
 */
class SundownParser implements MarkdownParserInterface
{
    private $parser;

    public function __construct(Markdown $parser)
    {
        $this->parser = $parser;
    }

    /**
     * {@inheritdoc}
     */
    public function transform($text)
    {
        return $this->parser->render($text);
    }
}

Make the Sundown parser implement the renamed method from the parser interface
Make the Sundown parser implement the renamed method from the parser interface
