Completed
Push — issue-37 ( 46b1e6...b187aa )
by Fèvre
04:23
created

ReplyExtension::getBlockParsers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Xetaravel\Markdown\Reply;
3
4
use League\CommonMark\ConfigurableEnvironmentInterface;
5
use League\CommonMark\Extension\ExtensionInterface;
6
7
final class ReplyExtension implements ExtensionInterface
8
{
9
    /**
10
     * Returns a list of block parsers to add to the existing list.
11
     *
12
     * @return array
13
     */
14
    /*public function getBlockParsers()
15
    {
16
        return [
17
            new ReplyParser(),
18
        ];
19
    }
20
21
    /**
22
     * Returns a list of block renderers to add to the existing list.
23
     *
24
     * @return array
25
     */
26
    /*public function getBlockRenderers()
27
    {
28
        return [
29
            Reply::class => new ReplyRenderer(),
30
        ];
31
    }*/
32
33
    public function register(ConfigurableEnvironmentInterface $environment)
34
    {
35
        $environment
36
            ->addBlockParser(new ReplyParser)
37
            ->addBlockRenderer(Reply::class, new ReplyRenderer);
38
    }
39
}
40