mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 21:07:18 +00:00
Update configuration keys + allow extra keys for extensions
This commit is contained in:
@@ -39,14 +39,14 @@ class Configuration implements ConfigurationInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Full configuration from {@link https://commonmark.thephpleague.com/2.3/configuration}.
|
* Full configuration from {@link https://commonmark.thephpleague.com/2.7/configuration}.
|
||||||
*/
|
*/
|
||||||
private function addCommonMarkConfiguration(ArrayNodeDefinition $rootNode): void
|
private function addCommonMarkConfiguration(ArrayNodeDefinition $rootNode): void
|
||||||
{
|
{
|
||||||
$rootNode
|
$rootNode
|
||||||
->children()
|
->children()
|
||||||
->arrayNode('commonmark')
|
->arrayNode('commonmark')
|
||||||
->ignoreExtraKeys()
|
->ignoreExtraKeys(false)
|
||||||
->children()
|
->children()
|
||||||
->arrayNode('renderer')
|
->arrayNode('renderer')
|
||||||
->info('Array of options for rendering HTML.')
|
->info('Array of options for rendering HTML.')
|
||||||
@@ -68,6 +68,10 @@ class Configuration implements ConfigurationInterface
|
|||||||
->info('The maximum nesting level for blocks.')
|
->info('The maximum nesting level for blocks.')
|
||||||
->defaultValue(\PHP_INT_MAX)
|
->defaultValue(\PHP_INT_MAX)
|
||||||
->end()
|
->end()
|
||||||
|
->integerNode('max_delimiters_per_line')
|
||||||
|
->info('The maximum number of strong/emphasis delimiters per line.')
|
||||||
|
->defaultValue(\PHP_INT_MAX)
|
||||||
|
->end()
|
||||||
->arrayNode('slug_normalizer')
|
->arrayNode('slug_normalizer')
|
||||||
->info('Array of options for configuring how URL-safe slugs are created.')
|
->info('Array of options for configuring how URL-safe slugs are created.')
|
||||||
->children()
|
->children()
|
||||||
|
|||||||
Reference in New Issue
Block a user