mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2026-03-14 12:45:52 +01:00
Refactored way how parsers are initialized, and allow to select parser while rendering Interface `MarkdownParserInterface` method name was changed from `#transform($text)` to `#transformMarkdown($text)`
15 lines
408 B
PHP
15 lines
408 B
PHP
<?php
|
|
|
|
namespace Knp\Bundle\MarkdownBundle;
|
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Knp\Bundle\MarkdownBundle\DependencyInjection\Compiler\ParsersCompilerPass;
|
|
|
|
class KnpMarkdownBundle extends Bundle
|
|
{
|
|
public function build(ContainerBuilder $container)
|
|
{
|
|
$container->addCompilerPass(new ParsersCompilerPass());
|
|
}
|
|
}
|