Skip to content

Reference

phil/markup-bundle
TypeKindRole
Phil\MarkupBundle\PhilMarkupBundleAbstractBundleThe phil_markup configuration and the services
…\Infrastructure\DependencyInjection\MarkupServicesfinal classRegisters the services; formats(), isEnabledDefault() for the configuration
…\Infrastructure\DependencyInjection\MediaHostsPasscompiler passGives SanitizerPurifier the media_hosts, whichever bundle registered it
…\Infrastructure\DependencyInjection\SmartPunctuationPasscompiler passGives the smart punctuation the typographers of phil/typography-bundle, or its own, and its formats
…\Infrastructure\Typography\SmartPunctuationCompilerfinal readonly classA LevelAwareCompiler decorating MarkupCompiler: its HTML through a typographer
…\Infrastructure\Format\MarkupFormatsfinal readonly classenabled(), isEnabled(), format(), label(), level(), ceiling(); formats by name
…\Infrastructure\Format\UnavailableFormatexceptionA format not enabled: see Exceptions
…\Infrastructure\Conversion\UjoConverterfinal readonly classreader(), read(), toJson(): see Conversion into UJO
…\Infrastructure\Form\MarkupFormatTypeform typeA choice of an enabled format: see Forms
…\Infrastructure\Twig\MarkupExtensionTwig runtimemarkup_html, markup_purify and markup_ujo: see Twig

Services

Id
Phil\Ujo\Html\HtmlRendererbuilt by HtmlRenderer::default()
Phil\Markup\Adapter\DefaultCompiler, alias Phil\Markup\MarkupCompilerrenders UJO with HtmlRenderer
Phil\Markup\Adapter\SanitizerPurifier, alias Phil\Markup\HtmlPurifierbuilt by defaultPolicies(media_hosts)
phil_markup.smart_punctuationSmartPunctuationCompiler, decorating Phil\Markup\MarkupCompiler; with phil/typography, unless smart_punctuation is off
phil_markup.typographersPhil\Typography\Typographers of the smart punctuation, when phil/typography-bundle registers none
Phil\Markup\Markuppublic
Phil\MarkupBundle\Infrastructure\Format\MarkupFormatspublic; formats, default_format, default_level, levels, the labels of added_formats
Phil\MarkupBundle\Infrastructure\Conversion\UjoConverterpublic; reads with DefaultCompiler
Phil\MarkupBundle\Infrastructure\Form\MarkupFormatTypewith Symfony Form, tagged form.type
Phil\MarkupBundle\Infrastructure\Twig\MarkupExtensionwith Twig

Translations

translations/phil_markup.en.php and translations/phil_markup.fr.php: the labels of the formats.

The formats, levels, readers and adapters are phil/markup's, the renderer phil/ujo's: see their references.