Reverted the interface renaming done in #50

All code in the bundle is still relying on the transformMarkdown method in
parsers, not on the transform method.
Normal parsers are still working because they still have the method, and
PHP does not have strict type checking for typehints.
However, the SundownParser was still broken. #51 renamed the method to
avoid a fatal error for the interface, but then the method used by the
bundle became missing.
This commit is contained in:
Christophe Coevoet 2014-02-20 11:34:05 +01:00
parent ddc5d775b6
commit 7f115dc73f
2 changed files with 2 additions and 2 deletions

View File

@ -11,5 +11,5 @@ interface MarkdownParserInterface
*
* @return string rendered html
*/
function transform($text);
function transformMarkdown($text);
}

View File

@ -23,7 +23,7 @@ class SundownParser implements MarkdownParserInterface
/**
* {@inheritdoc}
*/
public function transform($text)
public function transformMarkdown($text)
{
return $this->parser->render($text);
}