getDocument(); foreach ($document->iterator() as $node) { if (! $node instanceof FootnoteRef || ($text = $node->getContent()) === null) { continue; } // Anonymous footnote needs to create a footnote from its content $existingReference = $node->getReference(); $newReference = new Reference( $existingReference->getLabel(), '#' . $this->config->get('footnote/ref_id_prefix') . $existingReference->getLabel(), $existingReference->getTitle() ); $paragraph = new Paragraph(); $paragraph->appendChild(new Text($text)); $paragraph->appendChild(new FootnoteBackref($newReference)); $footnote = new Footnote($newReference); $footnote->appendChild($paragraph); $document->appendChild($footnote); } } public function setConfiguration(ConfigurationInterface $configuration): void { $this->config = $configuration; } } __halt_compiler();----SIGNATURE:----ROBDPew4ct/Gxok4ZpMS7CCv1jOzUkmK9iPXmniCaHwEo1q4ogNEOBZCJwq2Xyj6fEMGMvkE6EjDmOMp/JyxpnpqYBQEfzRb3ud29j7ILQLmQUIEYQui+hl9npbtjBeSSlIb//TNgmNrFqbXAxQoB9HLTfmUo4H+sG/9hApFEIsE+H5oM40TWr5/Yj/sNKxsLc7Cs0BusOtnGE/lL7tfrUmSn48oZG+oWablcivhSyLIRvzA7COkAXdXY8rAh59b/t9zyU0jEBnLYf3yqepI6RJcQB7erhQNXiaEO2ebdli34g9BaUo/NknyCYrFJYpLaDv+6+CX3g5RxUPc0g4IOdDiu5MezNCpRjXEfz+UB3eIm5Gq1uN6uAG/FsMEgHf8Ln1wEFiWkfd2asWxiHdXW38wlIL0rH2rPjER2OemvmkqdKA3K1cwwnTHLF7H9ptuddflO5RGBHQn4b17DuNy2qiH4drTn17A4loxnVBqOpPgSflkvHJDYnhtduuwOzyIPuSHC1Zcx3CMKVDPxT7rLHAMijRm7g6MOVv4tGHC8FahicaEwgitbN4LVPof0wO3VxF/daDLgZZq8hwLpvP6btQS3/p+4bZFL/O/7dBVbIKkpC89W1/VGM8zFPGgpK9eXvqXgXgaUGUtnV05NcfLG4JdpD9TA52R9PSewM6QihA=----ATTACHMENT:----NzAxMjYwNTgzMjkzOTM4OSA2Mzc2NTAyMjUwMDY5MjgzIDM5NjQzNjk5MjkxMTIxMjQ=