1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 14:16:46 +02:00

feat(parsers): standardise parsers container names with macroable ability for Parsers API. #519

This commit is contained in:
Awilum
2020-12-19 21:28:27 +03:00
parent bc01684988
commit 3442e5afe4
2 changed files with 3 additions and 4 deletions

View File

@@ -55,6 +55,9 @@ final class Markdown
protected function __construct()
{
$this->markdownFacade = new ParsedownExtra();
$this->markdownFacade->setBreaksEnabled(flextype('registry')->get('flextype.settings.markdown.auto_line_breaks'));
$this->markdownFacade->setUrlsLinked(flextype('registry')->get('flextype.settings.markdown.auto_url_links'));
$this->markdownFacade->setMarkupEscaped(flextype('registry')->get('flextype.settings.markdown.escape_markup'));
}
/**

View File

@@ -220,10 +220,6 @@ flextype()->container()['parsers'] = static function () {
return new Parsers();
};
//flextype('parsers')->markdown()->getInstance()->setBreaksEnabled(flextype('registry')->get('flextype.settings.markdown.auto_line_breaks'));
//flextype('parsers')->markdown()->getInstance()->setUrlsLinked(flextype('registry')->get('flextype.settings.markdown.auto_url_links'));
//flextype('parsers')->markdown()->getInstance()->setMarkupEscaped(flextype('registry')->get('flextype.settings.markdown.escape_markup'));
/**
* Add serializer service to Flextype container
*/