Initial Base

This commit is contained in:
2025-10-31 22:07:28 +00:00
parent 629a58b595
commit 3ace0308cf
717 changed files with 107359 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
<?php
namespace Symfony\Config\TwigExtra;
use Symfony\Component\Config\Loader\ParamConfigurator;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
/**
* This class is automatically generated to help in creating a config.
*/
class CacheConfig
{
private $enabled;
private $_usedProperties = [];
/**
* @default false
* @param ParamConfigurator|bool $value
* @return $this
*/
public function enabled($value): static
{
$this->_usedProperties['enabled'] = true;
$this->enabled = $value;
return $this;
}
public function __construct(array $value = [])
{
if (array_key_exists('enabled', $value)) {
$this->_usedProperties['enabled'] = true;
$this->enabled = $value['enabled'];
unset($value['enabled']);
}
if ([] !== $value) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($value)));
}
}
public function toArray(): array
{
$output = [];
if (isset($this->_usedProperties['enabled'])) {
$output['enabled'] = $this->enabled;
}
return $output;
}
}

View File

@@ -0,0 +1,144 @@
<?php
namespace Symfony\Config\TwigExtra\Commonmark;
use Symfony\Component\Config\Loader\ParamConfigurator;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
/**
* This class is automatically generated to help in creating a config.
*/
class CommonmarkConfig
{
private $enableEm;
private $enableStrong;
private $useAsterisk;
private $useUnderscore;
private $unorderedListMarkers;
private $_usedProperties = [];
/**
* @default true
* @param ParamConfigurator|bool $value
* @return $this
*/
public function enableEm($value): static
{
$this->_usedProperties['enableEm'] = true;
$this->enableEm = $value;
return $this;
}
/**
* @default true
* @param ParamConfigurator|bool $value
* @return $this
*/
public function enableStrong($value): static
{
$this->_usedProperties['enableStrong'] = true;
$this->enableStrong = $value;
return $this;
}
/**
* @default true
* @param ParamConfigurator|bool $value
* @return $this
*/
public function useAsterisk($value): static
{
$this->_usedProperties['useAsterisk'] = true;
$this->useAsterisk = $value;
return $this;
}
/**
* @default true
* @param ParamConfigurator|bool $value
* @return $this
*/
public function useUnderscore($value): static
{
$this->_usedProperties['useUnderscore'] = true;
$this->useUnderscore = $value;
return $this;
}
/**
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
*
* @return $this
*/
public function unorderedListMarkers(ParamConfigurator|array $value): static
{
$this->_usedProperties['unorderedListMarkers'] = true;
$this->unorderedListMarkers = $value;
return $this;
}
public function __construct(array $value = [])
{
if (array_key_exists('enable_em', $value)) {
$this->_usedProperties['enableEm'] = true;
$this->enableEm = $value['enable_em'];
unset($value['enable_em']);
}
if (array_key_exists('enable_strong', $value)) {
$this->_usedProperties['enableStrong'] = true;
$this->enableStrong = $value['enable_strong'];
unset($value['enable_strong']);
}
if (array_key_exists('use_asterisk', $value)) {
$this->_usedProperties['useAsterisk'] = true;
$this->useAsterisk = $value['use_asterisk'];
unset($value['use_asterisk']);
}
if (array_key_exists('use_underscore', $value)) {
$this->_usedProperties['useUnderscore'] = true;
$this->useUnderscore = $value['use_underscore'];
unset($value['use_underscore']);
}
if (array_key_exists('unordered_list_markers', $value)) {
$this->_usedProperties['unorderedListMarkers'] = true;
$this->unorderedListMarkers = $value['unordered_list_markers'];
unset($value['unordered_list_markers']);
}
if ([] !== $value) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($value)));
}
}
public function toArray(): array
{
$output = [];
if (isset($this->_usedProperties['enableEm'])) {
$output['enable_em'] = $this->enableEm;
}
if (isset($this->_usedProperties['enableStrong'])) {
$output['enable_strong'] = $this->enableStrong;
}
if (isset($this->_usedProperties['useAsterisk'])) {
$output['use_asterisk'] = $this->useAsterisk;
}
if (isset($this->_usedProperties['useUnderscore'])) {
$output['use_underscore'] = $this->useUnderscore;
}
if (isset($this->_usedProperties['unorderedListMarkers'])) {
$output['unordered_list_markers'] = $this->unorderedListMarkers;
}
return $output;
}
}

View File

@@ -0,0 +1,98 @@
<?php
namespace Symfony\Config\TwigExtra\Commonmark;
use Symfony\Component\Config\Loader\ParamConfigurator;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
/**
* This class is automatically generated to help in creating a config.
*/
class RendererConfig
{
private $blockSeparator;
private $innerSeparator;
private $softBreak;
private $_usedProperties = [];
/**
* @default null
* @param ParamConfigurator|mixed $value
* @return $this
*/
public function blockSeparator($value): static
{
$this->_usedProperties['blockSeparator'] = true;
$this->blockSeparator = $value;
return $this;
}
/**
* @default null
* @param ParamConfigurator|mixed $value
* @return $this
*/
public function innerSeparator($value): static
{
$this->_usedProperties['innerSeparator'] = true;
$this->innerSeparator = $value;
return $this;
}
/**
* @default null
* @param ParamConfigurator|mixed $value
* @return $this
*/
public function softBreak($value): static
{
$this->_usedProperties['softBreak'] = true;
$this->softBreak = $value;
return $this;
}
public function __construct(array $value = [])
{
if (array_key_exists('block_separator', $value)) {
$this->_usedProperties['blockSeparator'] = true;
$this->blockSeparator = $value['block_separator'];
unset($value['block_separator']);
}
if (array_key_exists('inner_separator', $value)) {
$this->_usedProperties['innerSeparator'] = true;
$this->innerSeparator = $value['inner_separator'];
unset($value['inner_separator']);
}
if (array_key_exists('soft_break', $value)) {
$this->_usedProperties['softBreak'] = true;
$this->softBreak = $value['soft_break'];
unset($value['soft_break']);
}
if ([] !== $value) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($value)));
}
}
public function toArray(): array
{
$output = [];
if (isset($this->_usedProperties['blockSeparator'])) {
$output['block_separator'] = $this->blockSeparator;
}
if (isset($this->_usedProperties['innerSeparator'])) {
$output['inner_separator'] = $this->innerSeparator;
}
if (isset($this->_usedProperties['softBreak'])) {
$output['soft_break'] = $this->softBreak;
}
return $output;
}
}

View File

@@ -0,0 +1,100 @@
<?php
namespace Symfony\Config\TwigExtra\Commonmark;
use Symfony\Component\Config\Loader\ParamConfigurator;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
/**
* This class is automatically generated to help in creating a config.
*/
class SlugNormalizerConfig
{
private $instance;
private $maxLength;
private $unique;
private $_usedProperties = [];
/**
* @default null
* @param ParamConfigurator|mixed $value
*
* @return $this
*/
public function instance(mixed $value): static
{
$this->_usedProperties['instance'] = true;
$this->instance = $value;
return $this;
}
/**
* @default 255
* @param ParamConfigurator|int $value
* @return $this
*/
public function maxLength($value): static
{
$this->_usedProperties['maxLength'] = true;
$this->maxLength = $value;
return $this;
}
/**
* @default null
* @param ParamConfigurator|mixed $value
*
* @return $this
*/
public function unique(mixed $value): static
{
$this->_usedProperties['unique'] = true;
$this->unique = $value;
return $this;
}
public function __construct(array $value = [])
{
if (array_key_exists('instance', $value)) {
$this->_usedProperties['instance'] = true;
$this->instance = $value['instance'];
unset($value['instance']);
}
if (array_key_exists('max_length', $value)) {
$this->_usedProperties['maxLength'] = true;
$this->maxLength = $value['max_length'];
unset($value['max_length']);
}
if (array_key_exists('unique', $value)) {
$this->_usedProperties['unique'] = true;
$this->unique = $value['unique'];
unset($value['unique']);
}
if ([] !== $value) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($value)));
}
}
public function toArray(): array
{
$output = [];
if (isset($this->_usedProperties['instance'])) {
$output['instance'] = $this->instance;
}
if (isset($this->_usedProperties['maxLength'])) {
$output['max_length'] = $this->maxLength;
}
if (isset($this->_usedProperties['unique'])) {
$output['unique'] = $this->unique;
}
return $output;
}
}

View File

@@ -0,0 +1,216 @@
<?php
namespace Symfony\Config\TwigExtra;
require_once __DIR__.\DIRECTORY_SEPARATOR.'Commonmark'.\DIRECTORY_SEPARATOR.'RendererConfig.php';
require_once __DIR__.\DIRECTORY_SEPARATOR.'Commonmark'.\DIRECTORY_SEPARATOR.'SlugNormalizerConfig.php';
require_once __DIR__.\DIRECTORY_SEPARATOR.'Commonmark'.\DIRECTORY_SEPARATOR.'CommonmarkConfig.php';
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
use Symfony\Component\Config\Loader\ParamConfigurator;
/**
* This class is automatically generated to help in creating a config.
*/
class CommonmarkConfig
{
private $renderer;
private $htmlInput;
private $allowUnsafeLinks;
private $maxNestingLevel;
private $maxDelimitersPerLine;
private $slugNormalizer;
private $commonmark;
private $_usedProperties = [];
private $_extraKeys;
/**
* Array of options for rendering HTML.
*/
public function renderer(array $value = []): \Symfony\Config\TwigExtra\Commonmark\RendererConfig
{
if (null === $this->renderer) {
$this->_usedProperties['renderer'] = true;
$this->renderer = new \Symfony\Config\TwigExtra\Commonmark\RendererConfig($value);
} elseif (0 < \func_num_args()) {
throw new InvalidConfigurationException('The node created by "renderer()" has already been initialized. You cannot pass values the second time you call renderer().');
}
return $this->renderer;
}
/**
* How to handle HTML input.
* @default null
* @param ParamConfigurator|'strip'|'allow'|'escape' $value
* @return $this
*/
public function htmlInput($value): static
{
$this->_usedProperties['htmlInput'] = true;
$this->htmlInput = $value;
return $this;
}
/**
* Remove risky link and image URLs by setting this to false.
* @default true
* @param ParamConfigurator|bool $value
* @return $this
*/
public function allowUnsafeLinks($value): static
{
$this->_usedProperties['allowUnsafeLinks'] = true;
$this->allowUnsafeLinks = $value;
return $this;
}
/**
* The maximum nesting level for blocks.
* @default 9223372036854775807
* @param ParamConfigurator|int $value
* @return $this
*/
public function maxNestingLevel($value): static
{
$this->_usedProperties['maxNestingLevel'] = true;
$this->maxNestingLevel = $value;
return $this;
}
/**
* The maximum number of strong/emphasis delimiters per line.
* @default 9223372036854775807
* @param ParamConfigurator|int $value
* @return $this
*/
public function maxDelimitersPerLine($value): static
{
$this->_usedProperties['maxDelimitersPerLine'] = true;
$this->maxDelimitersPerLine = $value;
return $this;
}
/**
* Array of options for configuring how URL-safe slugs are created.
*/
public function slugNormalizer(array $value = []): \Symfony\Config\TwigExtra\Commonmark\SlugNormalizerConfig
{
if (null === $this->slugNormalizer) {
$this->_usedProperties['slugNormalizer'] = true;
$this->slugNormalizer = new \Symfony\Config\TwigExtra\Commonmark\SlugNormalizerConfig($value);
} elseif (0 < \func_num_args()) {
throw new InvalidConfigurationException('The node created by "slugNormalizer()" has already been initialized. You cannot pass values the second time you call slugNormalizer().');
}
return $this->slugNormalizer;
}
/**
* Array of options for configuring the CommonMark core extension.
*/
public function commonmark(array $value = []): \Symfony\Config\TwigExtra\Commonmark\CommonmarkConfig
{
if (null === $this->commonmark) {
$this->_usedProperties['commonmark'] = true;
$this->commonmark = new \Symfony\Config\TwigExtra\Commonmark\CommonmarkConfig($value);
} elseif (0 < \func_num_args()) {
throw new InvalidConfigurationException('The node created by "commonmark()" has already been initialized. You cannot pass values the second time you call commonmark().');
}
return $this->commonmark;
}
public function __construct(array $value = [])
{
if (array_key_exists('renderer', $value)) {
$this->_usedProperties['renderer'] = true;
$this->renderer = new \Symfony\Config\TwigExtra\Commonmark\RendererConfig($value['renderer']);
unset($value['renderer']);
}
if (array_key_exists('html_input', $value)) {
$this->_usedProperties['htmlInput'] = true;
$this->htmlInput = $value['html_input'];
unset($value['html_input']);
}
if (array_key_exists('allow_unsafe_links', $value)) {
$this->_usedProperties['allowUnsafeLinks'] = true;
$this->allowUnsafeLinks = $value['allow_unsafe_links'];
unset($value['allow_unsafe_links']);
}
if (array_key_exists('max_nesting_level', $value)) {
$this->_usedProperties['maxNestingLevel'] = true;
$this->maxNestingLevel = $value['max_nesting_level'];
unset($value['max_nesting_level']);
}
if (array_key_exists('max_delimiters_per_line', $value)) {
$this->_usedProperties['maxDelimitersPerLine'] = true;
$this->maxDelimitersPerLine = $value['max_delimiters_per_line'];
unset($value['max_delimiters_per_line']);
}
if (array_key_exists('slug_normalizer', $value)) {
$this->_usedProperties['slugNormalizer'] = true;
$this->slugNormalizer = new \Symfony\Config\TwigExtra\Commonmark\SlugNormalizerConfig($value['slug_normalizer']);
unset($value['slug_normalizer']);
}
if (array_key_exists('commonmark', $value)) {
$this->_usedProperties['commonmark'] = true;
$this->commonmark = new \Symfony\Config\TwigExtra\Commonmark\CommonmarkConfig($value['commonmark']);
unset($value['commonmark']);
}
$this->_extraKeys = $value;
}
public function toArray(): array
{
$output = [];
if (isset($this->_usedProperties['renderer'])) {
$output['renderer'] = $this->renderer->toArray();
}
if (isset($this->_usedProperties['htmlInput'])) {
$output['html_input'] = $this->htmlInput;
}
if (isset($this->_usedProperties['allowUnsafeLinks'])) {
$output['allow_unsafe_links'] = $this->allowUnsafeLinks;
}
if (isset($this->_usedProperties['maxNestingLevel'])) {
$output['max_nesting_level'] = $this->maxNestingLevel;
}
if (isset($this->_usedProperties['maxDelimitersPerLine'])) {
$output['max_delimiters_per_line'] = $this->maxDelimitersPerLine;
}
if (isset($this->_usedProperties['slugNormalizer'])) {
$output['slug_normalizer'] = $this->slugNormalizer->toArray();
}
if (isset($this->_usedProperties['commonmark'])) {
$output['commonmark'] = $this->commonmark->toArray();
}
return $output + $this->_extraKeys;
}
/**
* @param ParamConfigurator|mixed $value
*
* @return $this
*/
public function set(string $key, mixed $value): static
{
$this->_extraKeys[$key] = $value;
return $this;
}
}

View File

@@ -0,0 +1,52 @@
<?php
namespace Symfony\Config\TwigExtra;
use Symfony\Component\Config\Loader\ParamConfigurator;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
/**
* This class is automatically generated to help in creating a config.
*/
class CssinlinerConfig
{
private $enabled;
private $_usedProperties = [];
/**
* @default false
* @param ParamConfigurator|bool $value
* @return $this
*/
public function enabled($value): static
{
$this->_usedProperties['enabled'] = true;
$this->enabled = $value;
return $this;
}
public function __construct(array $value = [])
{
if (array_key_exists('enabled', $value)) {
$this->_usedProperties['enabled'] = true;
$this->enabled = $value['enabled'];
unset($value['enabled']);
}
if ([] !== $value) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($value)));
}
}
public function toArray(): array
{
$output = [];
if (isset($this->_usedProperties['enabled'])) {
$output['enabled'] = $this->enabled;
}
return $output;
}
}

View File

@@ -0,0 +1,52 @@
<?php
namespace Symfony\Config\TwigExtra;
use Symfony\Component\Config\Loader\ParamConfigurator;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
/**
* This class is automatically generated to help in creating a config.
*/
class HtmlConfig
{
private $enabled;
private $_usedProperties = [];
/**
* @default false
* @param ParamConfigurator|bool $value
* @return $this
*/
public function enabled($value): static
{
$this->_usedProperties['enabled'] = true;
$this->enabled = $value;
return $this;
}
public function __construct(array $value = [])
{
if (array_key_exists('enabled', $value)) {
$this->_usedProperties['enabled'] = true;
$this->enabled = $value['enabled'];
unset($value['enabled']);
}
if ([] !== $value) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($value)));
}
}
public function toArray(): array
{
$output = [];
if (isset($this->_usedProperties['enabled'])) {
$output['enabled'] = $this->enabled;
}
return $output;
}
}

View File

@@ -0,0 +1,52 @@
<?php
namespace Symfony\Config\TwigExtra;
use Symfony\Component\Config\Loader\ParamConfigurator;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
/**
* This class is automatically generated to help in creating a config.
*/
class InkyConfig
{
private $enabled;
private $_usedProperties = [];
/**
* @default false
* @param ParamConfigurator|bool $value
* @return $this
*/
public function enabled($value): static
{
$this->_usedProperties['enabled'] = true;
$this->enabled = $value;
return $this;
}
public function __construct(array $value = [])
{
if (array_key_exists('enabled', $value)) {
$this->_usedProperties['enabled'] = true;
$this->enabled = $value['enabled'];
unset($value['enabled']);
}
if ([] !== $value) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($value)));
}
}
public function toArray(): array
{
$output = [];
if (isset($this->_usedProperties['enabled'])) {
$output['enabled'] = $this->enabled;
}
return $output;
}
}

View File

@@ -0,0 +1,52 @@
<?php
namespace Symfony\Config\TwigExtra;
use Symfony\Component\Config\Loader\ParamConfigurator;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
/**
* This class is automatically generated to help in creating a config.
*/
class IntlConfig
{
private $enabled;
private $_usedProperties = [];
/**
* @default false
* @param ParamConfigurator|bool $value
* @return $this
*/
public function enabled($value): static
{
$this->_usedProperties['enabled'] = true;
$this->enabled = $value;
return $this;
}
public function __construct(array $value = [])
{
if (array_key_exists('enabled', $value)) {
$this->_usedProperties['enabled'] = true;
$this->enabled = $value['enabled'];
unset($value['enabled']);
}
if ([] !== $value) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($value)));
}
}
public function toArray(): array
{
$output = [];
if (isset($this->_usedProperties['enabled'])) {
$output['enabled'] = $this->enabled;
}
return $output;
}
}

View File

@@ -0,0 +1,52 @@
<?php
namespace Symfony\Config\TwigExtra;
use Symfony\Component\Config\Loader\ParamConfigurator;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
/**
* This class is automatically generated to help in creating a config.
*/
class MarkdownConfig
{
private $enabled;
private $_usedProperties = [];
/**
* @default false
* @param ParamConfigurator|bool $value
* @return $this
*/
public function enabled($value): static
{
$this->_usedProperties['enabled'] = true;
$this->enabled = $value;
return $this;
}
public function __construct(array $value = [])
{
if (array_key_exists('enabled', $value)) {
$this->_usedProperties['enabled'] = true;
$this->enabled = $value['enabled'];
unset($value['enabled']);
}
if ([] !== $value) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($value)));
}
}
public function toArray(): array
{
$output = [];
if (isset($this->_usedProperties['enabled'])) {
$output['enabled'] = $this->enabled;
}
return $output;
}
}

View File

@@ -0,0 +1,52 @@
<?php
namespace Symfony\Config\TwigExtra;
use Symfony\Component\Config\Loader\ParamConfigurator;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
/**
* This class is automatically generated to help in creating a config.
*/
class StringConfig
{
private $enabled;
private $_usedProperties = [];
/**
* @default false
* @param ParamConfigurator|bool $value
* @return $this
*/
public function enabled($value): static
{
$this->_usedProperties['enabled'] = true;
$this->enabled = $value;
return $this;
}
public function __construct(array $value = [])
{
if (array_key_exists('enabled', $value)) {
$this->_usedProperties['enabled'] = true;
$this->enabled = $value['enabled'];
unset($value['enabled']);
}
if ([] !== $value) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($value)));
}
}
public function toArray(): array
{
$output = [];
if (isset($this->_usedProperties['enabled'])) {
$output['enabled'] = $this->enabled;
}
return $output;
}
}