Don't load MarkdownExtraParser.php if the class MarkdownExtraParser already exists (if included previously to replace the one provided with the bundle)

This commit is contained in:
Jérôme Tamarelle 2011-04-05 00:01:16 +02:00
parent 53ba26ce64
commit 9be7f15be0

View file

@ -2,7 +2,9 @@
namespace Knplabs\Bundle\MarkdownBundle\Parser;
require_once(realpath(__DIR__.'/..').'/vendor/parser/MarkdownExtraParser.php');
if(!class_exists('\MarkdownExtraParser')) {
require_once(realpath(__DIR__.'/..').'/vendor/parser/MarkdownExtraParser.php');
}
/**
* MarkdownParser