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:----pafRnLjLwsCmZHHxSv56Wri9QFhRe6IOWEHUP3/2l+Nn4ILsGAurnzut0U/OZrGy/V1Qrb5ns8l0L+a8ogVo9pjn+HD+UUum1qEKSc5GRai4I7emgcL3V9LNnXYY5BBGIUndNYW8Htt+y1StGD+uc0SWXl1n2IWDkRlimiICaN2X2mDr7qbWUzGlo4B6CfgEbZn1KWokGA5wXuFJI/hbf/RMb9emtxduUkQy7tbCI3azqdCphUHlWe3x7BWSmxessf2WgWJYQHXAkLbrSSFYAMvBp5sjPJE44MbeSGuDrkrGZtYWuGfOxx48yynk34/4fgyGqMcecXCbPo1MdhXzB6/EJo+Ve1A0fZkBmW6RUo61JL1oc/4p15G4sxSNISOCDHrM+PfJCvk7FPn1fWrI17PLhTJUCzKRJP5Wt1UvUOrvjUVHv6mU9R1lMAp1OWV8ih9iNQCiT8UHyb7du5ixVgfDeSdQxOq1H3AYz0/Xx8Sp71RvmXOdsQ2m12PHclVlh0YC3VxzploDEcTaIDxZnu0L+bsMk0a/YrvA1ReY8CDFUrtPcSX4Nx7p7ANV58iLlbxHmqXbCYhp7ndV0HWHuvd1yRk/qd7z29TVux1Oiyk6Fo622e1XRY+VpDKhZJpK3wjHcA0QlZ/SdxSzT3QQUN1GFus6M9RFMDwb/yd3u4o=----ATTACHMENT:----NjY5NjE3MDU0NjAwMzEzNCA2ODE4MDA2NTYxNjk1NzQ4IDYyMzQ0ODY4MDExNzk3MjI=