Lines Matching refs:environment
54 public function register(EnvironmentBuilderInterface $environment): void
56 $environment->addBlockStartParser(new FootnoteStartParser(), 51);
57 $environment->addInlineParser(new AnonymousFootnoteRefParser(), 35);
58 $environment->addInlineParser(new FootnoteRefParser(), 51);
60 $environment->addRenderer(FootnoteContainer::class, new FootnoteContainerRenderer());
61 $environment->addRenderer(Footnote::class, new FootnoteRenderer());
62 $environment->addRenderer(FootnoteRef::class, new FootnoteRefRenderer());
63 $environment->addRenderer(FootnoteBackref::class, new FootnoteBackrefRenderer());
65 $environment->addEventListener(DocumentParsedEvent::class, [new AnonymousFootnotesListener(), 'onDocumentParsed'], 40);
66 $environment->addEventListener(DocumentParsedEvent::class, [new FixOrphanedFootnotesAndRefsListener(), 'onDocumentParsed'], 30);
67 $environment->addEventListener(DocumentParsedEvent::class, [new NumberFootnotesListener(), 'onDocumentParsed'], 20);
68 $environment->addEventListener(DocumentParsedEvent::class, [new GatherFootnotesListener(), 'onDocumentParsed'], 10);