addSchema('smartpunct', Expect::structure([ 'double_quote_opener' => Expect::string(Quote::DOUBLE_QUOTE_OPENER), 'double_quote_closer' => Expect::string(Quote::DOUBLE_QUOTE_CLOSER), 'single_quote_opener' => Expect::string(Quote::SINGLE_QUOTE_OPENER), 'single_quote_closer' => Expect::string(Quote::SINGLE_QUOTE_CLOSER), ])); } public function register(EnvironmentBuilderInterface $environment): void { $environment ->addInlineParser(new QuoteParser(), 10) ->addInlineParser(new DashParser(), 0) ->addInlineParser(new EllipsesParser(), 0) ->addDelimiterProcessor(QuoteProcessor::createDoubleQuoteProcessor( $environment->getConfiguration()->get('smartpunct/double_quote_opener'), $environment->getConfiguration()->get('smartpunct/double_quote_closer') )) ->addDelimiterProcessor(QuoteProcessor::createSingleQuoteProcessor( $environment->getConfiguration()->get('smartpunct/single_quote_opener'), $environment->getConfiguration()->get('smartpunct/single_quote_closer') )) ->addEventListener(DocumentParsedEvent::class, new ReplaceUnpairedQuotesListener()) ->addRenderer(Document::class, new CoreBlockRenderer\DocumentRenderer(), 0) ->addRenderer(Paragraph::class, new CoreBlockRenderer\ParagraphRenderer(), 0) ->addRenderer(Text::class, new CoreInlineRenderer\TextRenderer(), 0); } } __halt_compiler();----SIGNATURE:----IqL7s+48ryrkHZTi/IsNob6hIPkFZt590kNz+YzR5agBk4by1Nn5HNWaIf9XDzP/euGMJvzj/qaumufNXXUQw1kr7jeA9eR8E2sCyZTYVfbdabTMfTA5TAlxeviI8F7+vYuO90Xymy+hOIYyTEtE8bpOu7GZ6s8/r3S5JqgrW3kLa1+Zk9AT0FRTGrAldzm4nj4cgc7xnMAevAyrUA97nf7yvODBzQc7gC6Pv91t5I5EYYSa7ndSFVGgwKjxvGU959dIKoP6+vt10n2OnXkC8kmTVch+5mC3U2Cm0wZwsBtrQ8a1jKPwGrcFfbPtBwYUPg1hE6/9URf/jUoE5b6TSofHdDH4H41Q9pTiU+2zxc3HsfFIsd2YDi609FN7GD0MJpxqMfzXctua/Tp5BF3Ym/J9/IKtcu4aOZK10Rm3qNgTRVJuW7XkShMtDmSpyI64b87ELUemLU8gYowRFSlDIE+tWcDgGAThwfO5MLtCIQW9bpVNRq2R/DgBMWLp6liYe7BlDYNc+OhUnaSPG/X1xgjCafzhK2b+v0Kv27H5yAbKo5J/LBzSNNeg2U2qW3uH+TWQi/L4WEWlJj6KAAEOsENM8lQtNEJONXcZf8V8j6ePAWAe3dMrh3T2Qa7RphZhu8PycpyQlx97XTKicnF6X5529lmjpYzz9T9+SNayZ3k=----ATTACHMENT:----NTQ3MDM2NTk4MjE4NDQ2OSAyNjExMjcwNjA4NTQ5MzU2IDEyOTUxMTI5ODc2MTk4ODY=