mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-06-21 07:05:05 +02:00
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:
parent
53ba26ce64
commit
9be7f15be0
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue