mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
fix twig
This commit is contained in:
parent
b49a0eb8e7
commit
66bcfd82e3
@ -3,8 +3,9 @@
|
|||||||
namespace Nelmio\ApiDocBundle\Twig\Extension;
|
namespace Nelmio\ApiDocBundle\Twig\Extension;
|
||||||
|
|
||||||
use Michelf\MarkdownExtra;
|
use Michelf\MarkdownExtra;
|
||||||
|
use Twig\Extension\AbstractExtension;
|
||||||
|
|
||||||
class MarkdownExtension extends \Twig_Extension
|
class MarkdownExtension extends AbstractExtension
|
||||||
{
|
{
|
||||||
protected $markdownParser;
|
protected $markdownParser;
|
||||||
|
|
||||||
@ -19,7 +20,7 @@ class MarkdownExtension extends \Twig_Extension
|
|||||||
public function getFilters()
|
public function getFilters()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
new \Twig_SimpleFilter('extra_markdown', array($this, 'markdown'), array('is_safe' => array('html'))),
|
new \Twig\TwigFilter('extra_markdown', array($this, 'markdown'), array('is_safe' => array('html'))),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user