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