Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
/*
6
 * This file is part of the league/commonmark package.
7
 *
8
 * (c) Colin O'Dell <colinodell@gmail.com>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
 
14
namespace League\CommonMark\Environment;
15
 
16
use League\CommonMark\Delimiter\Processor\DelimiterProcessorCollection;
17
use League\CommonMark\Extension\ExtensionInterface;
18
use League\CommonMark\Node\Node;
19
use League\CommonMark\Normalizer\TextNormalizerInterface;
20
use League\CommonMark\Parser\Block\BlockStartParserInterface;
21
use League\CommonMark\Parser\Inline\InlineParserInterface;
22
use League\CommonMark\Renderer\NodeRendererInterface;
23
use League\Config\ConfigurationProviderInterface;
24
use Psr\EventDispatcher\EventDispatcherInterface;
25
 
26
interface EnvironmentInterface extends ConfigurationProviderInterface, EventDispatcherInterface
27
{
28
    /**
29
     * Get all registered extensions
30
     *
31
     * @return ExtensionInterface[]
32
     */
33
    public function getExtensions(): iterable;
34
 
35
    /**
36
     * @return iterable<BlockStartParserInterface>
37
     */
38
    public function getBlockStartParsers(): iterable;
39
 
40
    /**
41
     * @return iterable<InlineParserInterface>
42
     */
43
    public function getInlineParsers(): iterable;
44
 
45
    public function getDelimiterProcessors(): DelimiterProcessorCollection;
46
 
47
    /**
48
     * @psalm-param class-string<Node> $nodeClass
49
     *
50
     * @return iterable<NodeRendererInterface>
51
     */
52
    public function getRenderersForClass(string $nodeClass): iterable;
53
 
54
    public function getSlugNormalizer(): TextNormalizerInterface;
55
}