From 7f115dc73f3618dca6fc4b1cdb1a007a82b30015 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Thu, 20 Feb 2014 11:34:05 +0100 Subject: [PATCH] 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. --- MarkdownParserInterface.php | 2 +- Parser/SundownParser.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MarkdownParserInterface.php b/MarkdownParserInterface.php index ece239e..1cfe2d1 100644 --- a/MarkdownParserInterface.php +++ b/MarkdownParserInterface.php @@ -11,5 +11,5 @@ interface MarkdownParserInterface * * @return string rendered html */ - function transform($text); + function transformMarkdown($text); } diff --git a/Parser/SundownParser.php b/Parser/SundownParser.php index 1b1dfb2..572bc7d 100644 --- a/Parser/SundownParser.php +++ b/Parser/SundownParser.php @@ -23,7 +23,7 @@ class SundownParser implements MarkdownParserInterface /** * {@inheritdoc} */ - public function transform($text) + public function transformMarkdown($text) { return $this->parser->render($text); }