initial commit
This commit is contained in:
52
var/cache/dev/Symfony/Config/Framework/AnnotationsConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Framework/AnnotationsConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 AnnotationsConfig
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
98
var/cache/dev/Symfony/Config/Framework/AssetMapper/PrecompressConfig.php
vendored
Normal file
98
var/cache/dev/Symfony/Config/Framework/AssetMapper/PrecompressConfig.php
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\AssetMapper;
|
||||
|
||||
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 PrecompressConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $formats;
|
||||
private $extensions;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function formats(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['formats'] = true;
|
||||
$this->formats = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function extensions(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['extensions'] = true;
|
||||
$this->extensions = $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 (array_key_exists('formats', $value)) {
|
||||
$this->_usedProperties['formats'] = true;
|
||||
$this->formats = $value['formats'];
|
||||
unset($value['formats']);
|
||||
}
|
||||
|
||||
if (array_key_exists('extensions', $value)) {
|
||||
$this->_usedProperties['extensions'] = true;
|
||||
$this->extensions = $value['extensions'];
|
||||
unset($value['extensions']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['formats'])) {
|
||||
$output['formats'] = $this->formats;
|
||||
}
|
||||
if (isset($this->_usedProperties['extensions'])) {
|
||||
$output['extensions'] = $this->extensions;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
334
var/cache/dev/Symfony/Config/Framework/AssetMapperConfig.php
vendored
Normal file
334
var/cache/dev/Symfony/Config/Framework/AssetMapperConfig.php
vendored
Normal file
@@ -0,0 +1,334 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'AssetMapper'.\DIRECTORY_SEPARATOR.'PrecompressConfig.php';
|
||||
|
||||
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 AssetMapperConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $paths;
|
||||
private $excludedPatterns;
|
||||
private $excludeDotfiles;
|
||||
private $server;
|
||||
private $publicPrefix;
|
||||
private $missingImportMode;
|
||||
private $extensions;
|
||||
private $importmapPath;
|
||||
private $importmapPolyfill;
|
||||
private $importmapScriptAttributes;
|
||||
private $vendorDir;
|
||||
private $precompress;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function path(string $namespace, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['paths'] = true;
|
||||
$this->paths[$namespace] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function excludedPatterns(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['excludedPatterns'] = true;
|
||||
$this->excludedPatterns = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* If true, any files starting with "." will be excluded from the asset mapper.
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function excludeDotfiles($value): static
|
||||
{
|
||||
$this->_usedProperties['excludeDotfiles'] = true;
|
||||
$this->excludeDotfiles = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* If true, a "dev server" will return the assets from the public directory (true in "debug" mode only by default).
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function server($value): static
|
||||
{
|
||||
$this->_usedProperties['server'] = true;
|
||||
$this->server = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The public path where the assets will be written to (and served from when "server" is true).
|
||||
* @default '/assets/'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function publicPrefix($value): static
|
||||
{
|
||||
$this->_usedProperties['publicPrefix'] = true;
|
||||
$this->publicPrefix = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Behavior if an asset cannot be found when imported from JavaScript or CSS files - e.g. "import './non-existent.js'". "strict" means an exception is thrown, "warn" means a warning is logged, "ignore" means the import is left as-is.
|
||||
* @default 'warn'
|
||||
* @param ParamConfigurator|'strict'|'warn'|'ignore' $value
|
||||
* @return $this
|
||||
*/
|
||||
public function missingImportMode($value): static
|
||||
{
|
||||
$this->_usedProperties['missingImportMode'] = true;
|
||||
$this->missingImportMode = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function extension(string $extension, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['extensions'] = true;
|
||||
$this->extensions[$extension] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The path of the importmap.php file.
|
||||
* @default '%kernel.project_dir%/importmap.php'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function importmapPath($value): static
|
||||
{
|
||||
$this->_usedProperties['importmapPath'] = true;
|
||||
$this->importmapPath = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The importmap name that will be used to load the polyfill. Set to false to disable.
|
||||
* @default 'es-module-shims'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function importmapPolyfill($value): static
|
||||
{
|
||||
$this->_usedProperties['importmapPolyfill'] = true;
|
||||
$this->importmapPolyfill = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function importmapScriptAttribute(string $key, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['importmapScriptAttributes'] = true;
|
||||
$this->importmapScriptAttributes[$key] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The directory to store JavaScript vendors.
|
||||
* @default '%kernel.project_dir%/assets/vendor'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function vendorDir($value): static
|
||||
{
|
||||
$this->_usedProperties['vendorDir'] = true;
|
||||
$this->vendorDir = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Precompress assets with Brotli, Zstandard and gzip.
|
||||
* @default {"enabled":false,"formats":[],"extensions":[]}
|
||||
*/
|
||||
public function precompress(array $value = []): \Symfony\Config\Framework\AssetMapper\PrecompressConfig
|
||||
{
|
||||
if (null === $this->precompress) {
|
||||
$this->_usedProperties['precompress'] = true;
|
||||
$this->precompress = new \Symfony\Config\Framework\AssetMapper\PrecompressConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "precompress()" has already been initialized. You cannot pass values the second time you call precompress().');
|
||||
}
|
||||
|
||||
return $this->precompress;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('paths', $value)) {
|
||||
$this->_usedProperties['paths'] = true;
|
||||
$this->paths = $value['paths'];
|
||||
unset($value['paths']);
|
||||
}
|
||||
|
||||
if (array_key_exists('excluded_patterns', $value)) {
|
||||
$this->_usedProperties['excludedPatterns'] = true;
|
||||
$this->excludedPatterns = $value['excluded_patterns'];
|
||||
unset($value['excluded_patterns']);
|
||||
}
|
||||
|
||||
if (array_key_exists('exclude_dotfiles', $value)) {
|
||||
$this->_usedProperties['excludeDotfiles'] = true;
|
||||
$this->excludeDotfiles = $value['exclude_dotfiles'];
|
||||
unset($value['exclude_dotfiles']);
|
||||
}
|
||||
|
||||
if (array_key_exists('server', $value)) {
|
||||
$this->_usedProperties['server'] = true;
|
||||
$this->server = $value['server'];
|
||||
unset($value['server']);
|
||||
}
|
||||
|
||||
if (array_key_exists('public_prefix', $value)) {
|
||||
$this->_usedProperties['publicPrefix'] = true;
|
||||
$this->publicPrefix = $value['public_prefix'];
|
||||
unset($value['public_prefix']);
|
||||
}
|
||||
|
||||
if (array_key_exists('missing_import_mode', $value)) {
|
||||
$this->_usedProperties['missingImportMode'] = true;
|
||||
$this->missingImportMode = $value['missing_import_mode'];
|
||||
unset($value['missing_import_mode']);
|
||||
}
|
||||
|
||||
if (array_key_exists('extensions', $value)) {
|
||||
$this->_usedProperties['extensions'] = true;
|
||||
$this->extensions = $value['extensions'];
|
||||
unset($value['extensions']);
|
||||
}
|
||||
|
||||
if (array_key_exists('importmap_path', $value)) {
|
||||
$this->_usedProperties['importmapPath'] = true;
|
||||
$this->importmapPath = $value['importmap_path'];
|
||||
unset($value['importmap_path']);
|
||||
}
|
||||
|
||||
if (array_key_exists('importmap_polyfill', $value)) {
|
||||
$this->_usedProperties['importmapPolyfill'] = true;
|
||||
$this->importmapPolyfill = $value['importmap_polyfill'];
|
||||
unset($value['importmap_polyfill']);
|
||||
}
|
||||
|
||||
if (array_key_exists('importmap_script_attributes', $value)) {
|
||||
$this->_usedProperties['importmapScriptAttributes'] = true;
|
||||
$this->importmapScriptAttributes = $value['importmap_script_attributes'];
|
||||
unset($value['importmap_script_attributes']);
|
||||
}
|
||||
|
||||
if (array_key_exists('vendor_dir', $value)) {
|
||||
$this->_usedProperties['vendorDir'] = true;
|
||||
$this->vendorDir = $value['vendor_dir'];
|
||||
unset($value['vendor_dir']);
|
||||
}
|
||||
|
||||
if (array_key_exists('precompress', $value)) {
|
||||
$this->_usedProperties['precompress'] = true;
|
||||
$this->precompress = \is_array($value['precompress']) ? new \Symfony\Config\Framework\AssetMapper\PrecompressConfig($value['precompress']) : $value['precompress'];
|
||||
unset($value['precompress']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['paths'])) {
|
||||
$output['paths'] = $this->paths;
|
||||
}
|
||||
if (isset($this->_usedProperties['excludedPatterns'])) {
|
||||
$output['excluded_patterns'] = $this->excludedPatterns;
|
||||
}
|
||||
if (isset($this->_usedProperties['excludeDotfiles'])) {
|
||||
$output['exclude_dotfiles'] = $this->excludeDotfiles;
|
||||
}
|
||||
if (isset($this->_usedProperties['server'])) {
|
||||
$output['server'] = $this->server;
|
||||
}
|
||||
if (isset($this->_usedProperties['publicPrefix'])) {
|
||||
$output['public_prefix'] = $this->publicPrefix;
|
||||
}
|
||||
if (isset($this->_usedProperties['missingImportMode'])) {
|
||||
$output['missing_import_mode'] = $this->missingImportMode;
|
||||
}
|
||||
if (isset($this->_usedProperties['extensions'])) {
|
||||
$output['extensions'] = $this->extensions;
|
||||
}
|
||||
if (isset($this->_usedProperties['importmapPath'])) {
|
||||
$output['importmap_path'] = $this->importmapPath;
|
||||
}
|
||||
if (isset($this->_usedProperties['importmapPolyfill'])) {
|
||||
$output['importmap_polyfill'] = $this->importmapPolyfill;
|
||||
}
|
||||
if (isset($this->_usedProperties['importmapScriptAttributes'])) {
|
||||
$output['importmap_script_attributes'] = $this->importmapScriptAttributes;
|
||||
}
|
||||
if (isset($this->_usedProperties['vendorDir'])) {
|
||||
$output['vendor_dir'] = $this->vendorDir;
|
||||
}
|
||||
if (isset($this->_usedProperties['precompress'])) {
|
||||
$output['precompress'] = $this->precompress instanceof \Symfony\Config\Framework\AssetMapper\PrecompressConfig ? $this->precompress->toArray() : $this->precompress;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
190
var/cache/dev/Symfony/Config/Framework/Assets/PackageConfig.php
vendored
Normal file
190
var/cache/dev/Symfony/Config/Framework/Assets/PackageConfig.php
vendored
Normal file
@@ -0,0 +1,190 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Assets;
|
||||
|
||||
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 PackageConfig
|
||||
{
|
||||
private $strictMode;
|
||||
private $versionStrategy;
|
||||
private $version;
|
||||
private $versionFormat;
|
||||
private $jsonManifestPath;
|
||||
private $basePath;
|
||||
private $baseUrls;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* Throw an exception if an entry is missing from the manifest.json.
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function strictMode($value): static
|
||||
{
|
||||
$this->_usedProperties['strictMode'] = true;
|
||||
$this->strictMode = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function versionStrategy($value): static
|
||||
{
|
||||
$this->_usedProperties['versionStrategy'] = true;
|
||||
$this->versionStrategy = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function version($value): static
|
||||
{
|
||||
$this->_usedProperties['version'] = true;
|
||||
$this->version = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function versionFormat($value): static
|
||||
{
|
||||
$this->_usedProperties['versionFormat'] = true;
|
||||
$this->versionFormat = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function jsonManifestPath($value): static
|
||||
{
|
||||
$this->_usedProperties['jsonManifestPath'] = true;
|
||||
$this->jsonManifestPath = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function basePath($value): static
|
||||
{
|
||||
$this->_usedProperties['basePath'] = true;
|
||||
$this->basePath = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function baseUrls(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['baseUrls'] = true;
|
||||
$this->baseUrls = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('strict_mode', $value)) {
|
||||
$this->_usedProperties['strictMode'] = true;
|
||||
$this->strictMode = $value['strict_mode'];
|
||||
unset($value['strict_mode']);
|
||||
}
|
||||
|
||||
if (array_key_exists('version_strategy', $value)) {
|
||||
$this->_usedProperties['versionStrategy'] = true;
|
||||
$this->versionStrategy = $value['version_strategy'];
|
||||
unset($value['version_strategy']);
|
||||
}
|
||||
|
||||
if (array_key_exists('version', $value)) {
|
||||
$this->_usedProperties['version'] = true;
|
||||
$this->version = $value['version'];
|
||||
unset($value['version']);
|
||||
}
|
||||
|
||||
if (array_key_exists('version_format', $value)) {
|
||||
$this->_usedProperties['versionFormat'] = true;
|
||||
$this->versionFormat = $value['version_format'];
|
||||
unset($value['version_format']);
|
||||
}
|
||||
|
||||
if (array_key_exists('json_manifest_path', $value)) {
|
||||
$this->_usedProperties['jsonManifestPath'] = true;
|
||||
$this->jsonManifestPath = $value['json_manifest_path'];
|
||||
unset($value['json_manifest_path']);
|
||||
}
|
||||
|
||||
if (array_key_exists('base_path', $value)) {
|
||||
$this->_usedProperties['basePath'] = true;
|
||||
$this->basePath = $value['base_path'];
|
||||
unset($value['base_path']);
|
||||
}
|
||||
|
||||
if (array_key_exists('base_urls', $value)) {
|
||||
$this->_usedProperties['baseUrls'] = true;
|
||||
$this->baseUrls = $value['base_urls'];
|
||||
unset($value['base_urls']);
|
||||
}
|
||||
|
||||
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['strictMode'])) {
|
||||
$output['strict_mode'] = $this->strictMode;
|
||||
}
|
||||
if (isset($this->_usedProperties['versionStrategy'])) {
|
||||
$output['version_strategy'] = $this->versionStrategy;
|
||||
}
|
||||
if (isset($this->_usedProperties['version'])) {
|
||||
$output['version'] = $this->version;
|
||||
}
|
||||
if (isset($this->_usedProperties['versionFormat'])) {
|
||||
$output['version_format'] = $this->versionFormat;
|
||||
}
|
||||
if (isset($this->_usedProperties['jsonManifestPath'])) {
|
||||
$output['json_manifest_path'] = $this->jsonManifestPath;
|
||||
}
|
||||
if (isset($this->_usedProperties['basePath'])) {
|
||||
$output['base_path'] = $this->basePath;
|
||||
}
|
||||
if (isset($this->_usedProperties['baseUrls'])) {
|
||||
$output['base_urls'] = $this->baseUrls;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
237
var/cache/dev/Symfony/Config/Framework/AssetsConfig.php
vendored
Normal file
237
var/cache/dev/Symfony/Config/Framework/AssetsConfig.php
vendored
Normal file
@@ -0,0 +1,237 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Assets'.\DIRECTORY_SEPARATOR.'PackageConfig.php';
|
||||
|
||||
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 AssetsConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $strictMode;
|
||||
private $versionStrategy;
|
||||
private $version;
|
||||
private $versionFormat;
|
||||
private $jsonManifestPath;
|
||||
private $basePath;
|
||||
private $baseUrls;
|
||||
private $packages;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Throw an exception if an entry is missing from the manifest.json.
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function strictMode($value): static
|
||||
{
|
||||
$this->_usedProperties['strictMode'] = true;
|
||||
$this->strictMode = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function versionStrategy($value): static
|
||||
{
|
||||
$this->_usedProperties['versionStrategy'] = true;
|
||||
$this->versionStrategy = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function version($value): static
|
||||
{
|
||||
$this->_usedProperties['version'] = true;
|
||||
$this->version = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default '%%s?%%s'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function versionFormat($value): static
|
||||
{
|
||||
$this->_usedProperties['versionFormat'] = true;
|
||||
$this->versionFormat = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function jsonManifestPath($value): static
|
||||
{
|
||||
$this->_usedProperties['jsonManifestPath'] = true;
|
||||
$this->jsonManifestPath = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function basePath($value): static
|
||||
{
|
||||
$this->_usedProperties['basePath'] = true;
|
||||
$this->basePath = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function baseUrls(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['baseUrls'] = true;
|
||||
$this->baseUrls = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function package(string $name, array $value = []): \Symfony\Config\Framework\Assets\PackageConfig
|
||||
{
|
||||
if (!isset($this->packages[$name])) {
|
||||
$this->_usedProperties['packages'] = true;
|
||||
$this->packages[$name] = new \Symfony\Config\Framework\Assets\PackageConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "package()" has already been initialized. You cannot pass values the second time you call package().');
|
||||
}
|
||||
|
||||
return $this->packages[$name];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('strict_mode', $value)) {
|
||||
$this->_usedProperties['strictMode'] = true;
|
||||
$this->strictMode = $value['strict_mode'];
|
||||
unset($value['strict_mode']);
|
||||
}
|
||||
|
||||
if (array_key_exists('version_strategy', $value)) {
|
||||
$this->_usedProperties['versionStrategy'] = true;
|
||||
$this->versionStrategy = $value['version_strategy'];
|
||||
unset($value['version_strategy']);
|
||||
}
|
||||
|
||||
if (array_key_exists('version', $value)) {
|
||||
$this->_usedProperties['version'] = true;
|
||||
$this->version = $value['version'];
|
||||
unset($value['version']);
|
||||
}
|
||||
|
||||
if (array_key_exists('version_format', $value)) {
|
||||
$this->_usedProperties['versionFormat'] = true;
|
||||
$this->versionFormat = $value['version_format'];
|
||||
unset($value['version_format']);
|
||||
}
|
||||
|
||||
if (array_key_exists('json_manifest_path', $value)) {
|
||||
$this->_usedProperties['jsonManifestPath'] = true;
|
||||
$this->jsonManifestPath = $value['json_manifest_path'];
|
||||
unset($value['json_manifest_path']);
|
||||
}
|
||||
|
||||
if (array_key_exists('base_path', $value)) {
|
||||
$this->_usedProperties['basePath'] = true;
|
||||
$this->basePath = $value['base_path'];
|
||||
unset($value['base_path']);
|
||||
}
|
||||
|
||||
if (array_key_exists('base_urls', $value)) {
|
||||
$this->_usedProperties['baseUrls'] = true;
|
||||
$this->baseUrls = $value['base_urls'];
|
||||
unset($value['base_urls']);
|
||||
}
|
||||
|
||||
if (array_key_exists('packages', $value)) {
|
||||
$this->_usedProperties['packages'] = true;
|
||||
$this->packages = array_map(fn ($v) => new \Symfony\Config\Framework\Assets\PackageConfig($v), $value['packages']);
|
||||
unset($value['packages']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['strictMode'])) {
|
||||
$output['strict_mode'] = $this->strictMode;
|
||||
}
|
||||
if (isset($this->_usedProperties['versionStrategy'])) {
|
||||
$output['version_strategy'] = $this->versionStrategy;
|
||||
}
|
||||
if (isset($this->_usedProperties['version'])) {
|
||||
$output['version'] = $this->version;
|
||||
}
|
||||
if (isset($this->_usedProperties['versionFormat'])) {
|
||||
$output['version_format'] = $this->versionFormat;
|
||||
}
|
||||
if (isset($this->_usedProperties['jsonManifestPath'])) {
|
||||
$output['json_manifest_path'] = $this->jsonManifestPath;
|
||||
}
|
||||
if (isset($this->_usedProperties['basePath'])) {
|
||||
$output['base_path'] = $this->basePath;
|
||||
}
|
||||
if (isset($this->_usedProperties['baseUrls'])) {
|
||||
$output['base_urls'] = $this->baseUrls;
|
||||
}
|
||||
if (isset($this->_usedProperties['packages'])) {
|
||||
$output['packages'] = array_map(fn ($v) => $v->toArray(), $this->packages);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
194
var/cache/dev/Symfony/Config/Framework/Cache/PoolConfig.php
vendored
Normal file
194
var/cache/dev/Symfony/Config/Framework/Cache/PoolConfig.php
vendored
Normal file
@@ -0,0 +1,194 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Cache;
|
||||
|
||||
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 PoolConfig
|
||||
{
|
||||
private $adapters;
|
||||
private $tags;
|
||||
private $public;
|
||||
private $defaultLifetime;
|
||||
private $provider;
|
||||
private $earlyExpirationMessageBus;
|
||||
private $clearer;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function adapters(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['adapters'] = true;
|
||||
$this->adapters = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function tags($value): static
|
||||
{
|
||||
$this->_usedProperties['tags'] = true;
|
||||
$this->tags = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function public($value): static
|
||||
{
|
||||
$this->_usedProperties['public'] = true;
|
||||
$this->public = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Default lifetime of the pool.
|
||||
* @example "300" for 5 minutes expressed in seconds, "PT5M" for five minutes expressed as ISO 8601 time interval, or "5 minutes" as a date expression
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultLifetime($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultLifetime'] = true;
|
||||
$this->defaultLifetime = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overwrite the setting from the default provider for this adapter.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function provider($value): static
|
||||
{
|
||||
$this->_usedProperties['provider'] = true;
|
||||
$this->provider = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @example "messenger.default_bus" to send early expiration events to the default Messenger bus.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function earlyExpirationMessageBus($value): static
|
||||
{
|
||||
$this->_usedProperties['earlyExpirationMessageBus'] = true;
|
||||
$this->earlyExpirationMessageBus = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function clearer($value): static
|
||||
{
|
||||
$this->_usedProperties['clearer'] = true;
|
||||
$this->clearer = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('adapters', $value)) {
|
||||
$this->_usedProperties['adapters'] = true;
|
||||
$this->adapters = $value['adapters'];
|
||||
unset($value['adapters']);
|
||||
}
|
||||
|
||||
if (array_key_exists('tags', $value)) {
|
||||
$this->_usedProperties['tags'] = true;
|
||||
$this->tags = $value['tags'];
|
||||
unset($value['tags']);
|
||||
}
|
||||
|
||||
if (array_key_exists('public', $value)) {
|
||||
$this->_usedProperties['public'] = true;
|
||||
$this->public = $value['public'];
|
||||
unset($value['public']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_lifetime', $value)) {
|
||||
$this->_usedProperties['defaultLifetime'] = true;
|
||||
$this->defaultLifetime = $value['default_lifetime'];
|
||||
unset($value['default_lifetime']);
|
||||
}
|
||||
|
||||
if (array_key_exists('provider', $value)) {
|
||||
$this->_usedProperties['provider'] = true;
|
||||
$this->provider = $value['provider'];
|
||||
unset($value['provider']);
|
||||
}
|
||||
|
||||
if (array_key_exists('early_expiration_message_bus', $value)) {
|
||||
$this->_usedProperties['earlyExpirationMessageBus'] = true;
|
||||
$this->earlyExpirationMessageBus = $value['early_expiration_message_bus'];
|
||||
unset($value['early_expiration_message_bus']);
|
||||
}
|
||||
|
||||
if (array_key_exists('clearer', $value)) {
|
||||
$this->_usedProperties['clearer'] = true;
|
||||
$this->clearer = $value['clearer'];
|
||||
unset($value['clearer']);
|
||||
}
|
||||
|
||||
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['adapters'])) {
|
||||
$output['adapters'] = $this->adapters;
|
||||
}
|
||||
if (isset($this->_usedProperties['tags'])) {
|
||||
$output['tags'] = $this->tags;
|
||||
}
|
||||
if (isset($this->_usedProperties['public'])) {
|
||||
$output['public'] = $this->public;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultLifetime'])) {
|
||||
$output['default_lifetime'] = $this->defaultLifetime;
|
||||
}
|
||||
if (isset($this->_usedProperties['provider'])) {
|
||||
$output['provider'] = $this->provider;
|
||||
}
|
||||
if (isset($this->_usedProperties['earlyExpirationMessageBus'])) {
|
||||
$output['early_expiration_message_bus'] = $this->earlyExpirationMessageBus;
|
||||
}
|
||||
if (isset($this->_usedProperties['clearer'])) {
|
||||
$output['clearer'] = $this->clearer;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
300
var/cache/dev/Symfony/Config/Framework/CacheConfig.php
vendored
Normal file
300
var/cache/dev/Symfony/Config/Framework/CacheConfig.php
vendored
Normal file
@@ -0,0 +1,300 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Cache'.\DIRECTORY_SEPARATOR.'PoolConfig.php';
|
||||
|
||||
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 $prefixSeed;
|
||||
private $app;
|
||||
private $system;
|
||||
private $directory;
|
||||
private $defaultPsr6Provider;
|
||||
private $defaultRedisProvider;
|
||||
private $defaultValkeyProvider;
|
||||
private $defaultMemcachedProvider;
|
||||
private $defaultDoctrineDbalProvider;
|
||||
private $defaultPdoProvider;
|
||||
private $pools;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* Used to namespace cache keys when using several apps with the same shared backend.
|
||||
* @example my-application-name/%kernel.environment%
|
||||
* @default '_%kernel.project_dir%.%kernel.container_class%'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function prefixSeed($value): static
|
||||
{
|
||||
$this->_usedProperties['prefixSeed'] = true;
|
||||
$this->prefixSeed = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* App related cache pools configuration.
|
||||
* @default 'cache.adapter.filesystem'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function app($value): static
|
||||
{
|
||||
$this->_usedProperties['app'] = true;
|
||||
$this->app = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* System related cache pools configuration.
|
||||
* @default 'cache.adapter.system'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function system($value): static
|
||||
{
|
||||
$this->_usedProperties['system'] = true;
|
||||
$this->system = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default '%kernel.cache_dir%/pools/app'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function directory($value): static
|
||||
{
|
||||
$this->_usedProperties['directory'] = true;
|
||||
$this->directory = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultPsr6Provider($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultPsr6Provider'] = true;
|
||||
$this->defaultPsr6Provider = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'redis://localhost'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultRedisProvider($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultRedisProvider'] = true;
|
||||
$this->defaultRedisProvider = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'valkey://localhost'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultValkeyProvider($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultValkeyProvider'] = true;
|
||||
$this->defaultValkeyProvider = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'memcached://localhost'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultMemcachedProvider($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultMemcachedProvider'] = true;
|
||||
$this->defaultMemcachedProvider = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'database_connection'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultDoctrineDbalProvider($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultDoctrineDbalProvider'] = true;
|
||||
$this->defaultDoctrineDbalProvider = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultPdoProvider($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultPdoProvider'] = true;
|
||||
$this->defaultPdoProvider = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Framework\Cache\PoolConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Framework\Cache\PoolConfig : static)
|
||||
*/
|
||||
public function pool(string $name, mixed $value = []): \Symfony\Config\Framework\Cache\PoolConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['pools'] = true;
|
||||
$this->pools[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!isset($this->pools[$name]) || !$this->pools[$name] instanceof \Symfony\Config\Framework\Cache\PoolConfig) {
|
||||
$this->_usedProperties['pools'] = true;
|
||||
$this->pools[$name] = new \Symfony\Config\Framework\Cache\PoolConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "pool()" has already been initialized. You cannot pass values the second time you call pool().');
|
||||
}
|
||||
|
||||
return $this->pools[$name];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('prefix_seed', $value)) {
|
||||
$this->_usedProperties['prefixSeed'] = true;
|
||||
$this->prefixSeed = $value['prefix_seed'];
|
||||
unset($value['prefix_seed']);
|
||||
}
|
||||
|
||||
if (array_key_exists('app', $value)) {
|
||||
$this->_usedProperties['app'] = true;
|
||||
$this->app = $value['app'];
|
||||
unset($value['app']);
|
||||
}
|
||||
|
||||
if (array_key_exists('system', $value)) {
|
||||
$this->_usedProperties['system'] = true;
|
||||
$this->system = $value['system'];
|
||||
unset($value['system']);
|
||||
}
|
||||
|
||||
if (array_key_exists('directory', $value)) {
|
||||
$this->_usedProperties['directory'] = true;
|
||||
$this->directory = $value['directory'];
|
||||
unset($value['directory']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_psr6_provider', $value)) {
|
||||
$this->_usedProperties['defaultPsr6Provider'] = true;
|
||||
$this->defaultPsr6Provider = $value['default_psr6_provider'];
|
||||
unset($value['default_psr6_provider']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_redis_provider', $value)) {
|
||||
$this->_usedProperties['defaultRedisProvider'] = true;
|
||||
$this->defaultRedisProvider = $value['default_redis_provider'];
|
||||
unset($value['default_redis_provider']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_valkey_provider', $value)) {
|
||||
$this->_usedProperties['defaultValkeyProvider'] = true;
|
||||
$this->defaultValkeyProvider = $value['default_valkey_provider'];
|
||||
unset($value['default_valkey_provider']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_memcached_provider', $value)) {
|
||||
$this->_usedProperties['defaultMemcachedProvider'] = true;
|
||||
$this->defaultMemcachedProvider = $value['default_memcached_provider'];
|
||||
unset($value['default_memcached_provider']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_doctrine_dbal_provider', $value)) {
|
||||
$this->_usedProperties['defaultDoctrineDbalProvider'] = true;
|
||||
$this->defaultDoctrineDbalProvider = $value['default_doctrine_dbal_provider'];
|
||||
unset($value['default_doctrine_dbal_provider']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_pdo_provider', $value)) {
|
||||
$this->_usedProperties['defaultPdoProvider'] = true;
|
||||
$this->defaultPdoProvider = $value['default_pdo_provider'];
|
||||
unset($value['default_pdo_provider']);
|
||||
}
|
||||
|
||||
if (array_key_exists('pools', $value)) {
|
||||
$this->_usedProperties['pools'] = true;
|
||||
$this->pools = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Framework\Cache\PoolConfig($v) : $v, $value['pools']);
|
||||
unset($value['pools']);
|
||||
}
|
||||
|
||||
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['prefixSeed'])) {
|
||||
$output['prefix_seed'] = $this->prefixSeed;
|
||||
}
|
||||
if (isset($this->_usedProperties['app'])) {
|
||||
$output['app'] = $this->app;
|
||||
}
|
||||
if (isset($this->_usedProperties['system'])) {
|
||||
$output['system'] = $this->system;
|
||||
}
|
||||
if (isset($this->_usedProperties['directory'])) {
|
||||
$output['directory'] = $this->directory;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultPsr6Provider'])) {
|
||||
$output['default_psr6_provider'] = $this->defaultPsr6Provider;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultRedisProvider'])) {
|
||||
$output['default_redis_provider'] = $this->defaultRedisProvider;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultValkeyProvider'])) {
|
||||
$output['default_valkey_provider'] = $this->defaultValkeyProvider;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultMemcachedProvider'])) {
|
||||
$output['default_memcached_provider'] = $this->defaultMemcachedProvider;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultDoctrineDbalProvider'])) {
|
||||
$output['default_doctrine_dbal_provider'] = $this->defaultDoctrineDbalProvider;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultPdoProvider'])) {
|
||||
$output['default_pdo_provider'] = $this->defaultPdoProvider;
|
||||
}
|
||||
if (isset($this->_usedProperties['pools'])) {
|
||||
$output['pools'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Framework\Cache\PoolConfig ? $v->toArray() : $v, $this->pools);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
123
var/cache/dev/Symfony/Config/Framework/CsrfProtectionConfig.php
vendored
Normal file
123
var/cache/dev/Symfony/Config/Framework/CsrfProtectionConfig.php
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 CsrfProtectionConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $statelessTokenIds;
|
||||
private $checkHeader;
|
||||
private $cookieName;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function statelessTokenIds(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['statelessTokenIds'] = true;
|
||||
$this->statelessTokenIds = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether to check the CSRF token in a header in addition to a cookie when using stateless protection.
|
||||
* @default false
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function checkHeader($value): static
|
||||
{
|
||||
$this->_usedProperties['checkHeader'] = true;
|
||||
$this->checkHeader = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the cookie to use when using stateless protection.
|
||||
* @default 'csrf-token'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function cookieName($value): static
|
||||
{
|
||||
$this->_usedProperties['cookieName'] = true;
|
||||
$this->cookieName = $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 (array_key_exists('stateless_token_ids', $value)) {
|
||||
$this->_usedProperties['statelessTokenIds'] = true;
|
||||
$this->statelessTokenIds = $value['stateless_token_ids'];
|
||||
unset($value['stateless_token_ids']);
|
||||
}
|
||||
|
||||
if (array_key_exists('check_header', $value)) {
|
||||
$this->_usedProperties['checkHeader'] = true;
|
||||
$this->checkHeader = $value['check_header'];
|
||||
unset($value['check_header']);
|
||||
}
|
||||
|
||||
if (array_key_exists('cookie_name', $value)) {
|
||||
$this->_usedProperties['cookieName'] = true;
|
||||
$this->cookieName = $value['cookie_name'];
|
||||
unset($value['cookie_name']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['statelessTokenIds'])) {
|
||||
$output['stateless_token_ids'] = $this->statelessTokenIds;
|
||||
}
|
||||
if (isset($this->_usedProperties['checkHeader'])) {
|
||||
$output['check_header'] = $this->checkHeader;
|
||||
}
|
||||
if (isset($this->_usedProperties['cookieName'])) {
|
||||
$output['cookie_name'] = $this->cookieName;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Framework/EsiConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Framework/EsiConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 EsiConfig
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
101
var/cache/dev/Symfony/Config/Framework/ExceptionConfig.php
vendored
Normal file
101
var/cache/dev/Symfony/Config/Framework/ExceptionConfig.php
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 ExceptionConfig
|
||||
{
|
||||
private $logLevel;
|
||||
private $statusCode;
|
||||
private $logChannel;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* The level of log message. Null to let Symfony decide.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function logLevel($value): static
|
||||
{
|
||||
$this->_usedProperties['logLevel'] = true;
|
||||
$this->logLevel = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The status code of the response. Null or 0 to let Symfony decide.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function statusCode($value): static
|
||||
{
|
||||
$this->_usedProperties['statusCode'] = true;
|
||||
$this->statusCode = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The channel of log message. Null to let Symfony decide.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function logChannel($value): static
|
||||
{
|
||||
$this->_usedProperties['logChannel'] = true;
|
||||
$this->logChannel = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('log_level', $value)) {
|
||||
$this->_usedProperties['logLevel'] = true;
|
||||
$this->logLevel = $value['log_level'];
|
||||
unset($value['log_level']);
|
||||
}
|
||||
|
||||
if (array_key_exists('status_code', $value)) {
|
||||
$this->_usedProperties['statusCode'] = true;
|
||||
$this->statusCode = $value['status_code'];
|
||||
unset($value['status_code']);
|
||||
}
|
||||
|
||||
if (array_key_exists('log_channel', $value)) {
|
||||
$this->_usedProperties['logChannel'] = true;
|
||||
$this->logChannel = $value['log_channel'];
|
||||
unset($value['log_channel']);
|
||||
}
|
||||
|
||||
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['logLevel'])) {
|
||||
$output['log_level'] = $this->logLevel;
|
||||
}
|
||||
if (isset($this->_usedProperties['statusCode'])) {
|
||||
$output['status_code'] = $this->statusCode;
|
||||
}
|
||||
if (isset($this->_usedProperties['logChannel'])) {
|
||||
$output['log_channel'] = $this->logChannel;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
119
var/cache/dev/Symfony/Config/Framework/Form/CsrfProtectionConfig.php
vendored
Normal file
119
var/cache/dev/Symfony/Config/Framework/Form/CsrfProtectionConfig.php
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Form;
|
||||
|
||||
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 CsrfProtectionConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $tokenId;
|
||||
private $fieldName;
|
||||
private $fieldAttr;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function tokenId($value): static
|
||||
{
|
||||
$this->_usedProperties['tokenId'] = true;
|
||||
$this->tokenId = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default '_token'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function fieldName($value): static
|
||||
{
|
||||
$this->_usedProperties['fieldName'] = true;
|
||||
$this->fieldName = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function fieldAttr(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['fieldAttr'] = true;
|
||||
$this->fieldAttr[$name] = $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 (array_key_exists('token_id', $value)) {
|
||||
$this->_usedProperties['tokenId'] = true;
|
||||
$this->tokenId = $value['token_id'];
|
||||
unset($value['token_id']);
|
||||
}
|
||||
|
||||
if (array_key_exists('field_name', $value)) {
|
||||
$this->_usedProperties['fieldName'] = true;
|
||||
$this->fieldName = $value['field_name'];
|
||||
unset($value['field_name']);
|
||||
}
|
||||
|
||||
if (array_key_exists('field_attr', $value)) {
|
||||
$this->_usedProperties['fieldAttr'] = true;
|
||||
$this->fieldAttr = $value['field_attr'];
|
||||
unset($value['field_attr']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['tokenId'])) {
|
||||
$output['token_id'] = $this->tokenId;
|
||||
}
|
||||
if (isset($this->_usedProperties['fieldName'])) {
|
||||
$output['field_name'] = $this->fieldName;
|
||||
}
|
||||
if (isset($this->_usedProperties['fieldAttr'])) {
|
||||
$output['field_attr'] = $this->fieldAttr;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
79
var/cache/dev/Symfony/Config/Framework/FormConfig.php
vendored
Normal file
79
var/cache/dev/Symfony/Config/Framework/FormConfig.php
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Form'.\DIRECTORY_SEPARATOR.'CsrfProtectionConfig.php';
|
||||
|
||||
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 FormConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $csrfProtection;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default {"enabled":null,"token_id":null,"field_name":"_token","field_attr":{"data-controller":"csrf-protection"}}
|
||||
*/
|
||||
public function csrfProtection(array $value = []): \Symfony\Config\Framework\Form\CsrfProtectionConfig
|
||||
{
|
||||
if (null === $this->csrfProtection) {
|
||||
$this->_usedProperties['csrfProtection'] = true;
|
||||
$this->csrfProtection = new \Symfony\Config\Framework\Form\CsrfProtectionConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "csrfProtection()" has already been initialized. You cannot pass values the second time you call csrfProtection().');
|
||||
}
|
||||
|
||||
return $this->csrfProtection;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('csrf_protection', $value)) {
|
||||
$this->_usedProperties['csrfProtection'] = true;
|
||||
$this->csrfProtection = new \Symfony\Config\Framework\Form\CsrfProtectionConfig($value['csrf_protection']);
|
||||
unset($value['csrf_protection']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['csrfProtection'])) {
|
||||
$output['csrf_protection'] = $this->csrfProtection->toArray();
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
98
var/cache/dev/Symfony/Config/Framework/FragmentsConfig.php
vendored
Normal file
98
var/cache/dev/Symfony/Config/Framework/FragmentsConfig.php
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 FragmentsConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $hincludeDefaultTemplate;
|
||||
private $path;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function hincludeDefaultTemplate($value): static
|
||||
{
|
||||
$this->_usedProperties['hincludeDefaultTemplate'] = true;
|
||||
$this->hincludeDefaultTemplate = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default '/_fragment'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function path($value): static
|
||||
{
|
||||
$this->_usedProperties['path'] = true;
|
||||
$this->path = $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 (array_key_exists('hinclude_default_template', $value)) {
|
||||
$this->_usedProperties['hincludeDefaultTemplate'] = true;
|
||||
$this->hincludeDefaultTemplate = $value['hinclude_default_template'];
|
||||
unset($value['hinclude_default_template']);
|
||||
}
|
||||
|
||||
if (array_key_exists('path', $value)) {
|
||||
$this->_usedProperties['path'] = true;
|
||||
$this->path = $value['path'];
|
||||
unset($value['path']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['hincludeDefaultTemplate'])) {
|
||||
$output['hinclude_default_template'] = $this->hincludeDefaultTemplate;
|
||||
}
|
||||
if (isset($this->_usedProperties['path'])) {
|
||||
$output['path'] = $this->path;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
445
var/cache/dev/Symfony/Config/Framework/HtmlSanitizer/SanitizerConfig.php
vendored
Normal file
445
var/cache/dev/Symfony/Config/Framework/HtmlSanitizer/SanitizerConfig.php
vendored
Normal file
@@ -0,0 +1,445 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\HtmlSanitizer;
|
||||
|
||||
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 SanitizerConfig
|
||||
{
|
||||
private $allowSafeElements;
|
||||
private $allowStaticElements;
|
||||
private $allowElements;
|
||||
private $blockElements;
|
||||
private $dropElements;
|
||||
private $allowAttributes;
|
||||
private $dropAttributes;
|
||||
private $forceAttributes;
|
||||
private $forceHttpsUrls;
|
||||
private $allowedLinkSchemes;
|
||||
private $allowedLinkHosts;
|
||||
private $allowRelativeLinks;
|
||||
private $allowedMediaSchemes;
|
||||
private $allowedMediaHosts;
|
||||
private $allowRelativeMedias;
|
||||
private $withAttributeSanitizers;
|
||||
private $withoutAttributeSanitizers;
|
||||
private $maxInputLength;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* Allows "safe" elements and attributes.
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function allowSafeElements($value): static
|
||||
{
|
||||
$this->_usedProperties['allowSafeElements'] = true;
|
||||
$this->allowSafeElements = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows all static elements and attributes from the W3C Sanitizer API standard.
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function allowStaticElements($value): static
|
||||
{
|
||||
$this->_usedProperties['allowStaticElements'] = true;
|
||||
$this->allowStaticElements = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function allowElement(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['allowElements'] = true;
|
||||
$this->allowElements[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function blockElements(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['blockElements'] = true;
|
||||
$this->blockElements = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function dropElements(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['dropElements'] = true;
|
||||
$this->dropElements = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function allowAttribute(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['allowAttributes'] = true;
|
||||
$this->allowAttributes[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function dropAttribute(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['dropAttributes'] = true;
|
||||
$this->dropAttributes[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function forceAttribute(string $name, ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['forceAttributes'] = true;
|
||||
$this->forceAttributes[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Transforms URLs using the HTTP scheme to use the HTTPS scheme instead.
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function forceHttpsUrls($value): static
|
||||
{
|
||||
$this->_usedProperties['forceHttpsUrls'] = true;
|
||||
$this->forceHttpsUrls = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function allowedLinkSchemes(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['allowedLinkSchemes'] = true;
|
||||
$this->allowedLinkSchemes = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows only a given list of hosts to be used in links href attributes.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function allowedLinkHosts(mixed $value = NULL): static
|
||||
{
|
||||
$this->_usedProperties['allowedLinkHosts'] = true;
|
||||
$this->allowedLinkHosts = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows relative URLs to be used in links href attributes.
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function allowRelativeLinks($value): static
|
||||
{
|
||||
$this->_usedProperties['allowRelativeLinks'] = true;
|
||||
$this->allowRelativeLinks = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function allowedMediaSchemes(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['allowedMediaSchemes'] = true;
|
||||
$this->allowedMediaSchemes = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows only a given list of hosts to be used in media source attributes (img, audio, video, ...).
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function allowedMediaHosts(mixed $value = NULL): static
|
||||
{
|
||||
$this->_usedProperties['allowedMediaHosts'] = true;
|
||||
$this->allowedMediaHosts = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows relative URLs to be used in media source attributes (img, audio, video, ...).
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function allowRelativeMedias($value): static
|
||||
{
|
||||
$this->_usedProperties['allowRelativeMedias'] = true;
|
||||
$this->allowRelativeMedias = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function withAttributeSanitizers(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['withAttributeSanitizers'] = true;
|
||||
$this->withAttributeSanitizers = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function withoutAttributeSanitizers(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['withoutAttributeSanitizers'] = true;
|
||||
$this->withoutAttributeSanitizers = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The maximum length allowed for the sanitized input.
|
||||
* @default 0
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxInputLength($value): static
|
||||
{
|
||||
$this->_usedProperties['maxInputLength'] = true;
|
||||
$this->maxInputLength = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('allow_safe_elements', $value)) {
|
||||
$this->_usedProperties['allowSafeElements'] = true;
|
||||
$this->allowSafeElements = $value['allow_safe_elements'];
|
||||
unset($value['allow_safe_elements']);
|
||||
}
|
||||
|
||||
if (array_key_exists('allow_static_elements', $value)) {
|
||||
$this->_usedProperties['allowStaticElements'] = true;
|
||||
$this->allowStaticElements = $value['allow_static_elements'];
|
||||
unset($value['allow_static_elements']);
|
||||
}
|
||||
|
||||
if (array_key_exists('allow_elements', $value)) {
|
||||
$this->_usedProperties['allowElements'] = true;
|
||||
$this->allowElements = $value['allow_elements'];
|
||||
unset($value['allow_elements']);
|
||||
}
|
||||
|
||||
if (array_key_exists('block_elements', $value)) {
|
||||
$this->_usedProperties['blockElements'] = true;
|
||||
$this->blockElements = $value['block_elements'];
|
||||
unset($value['block_elements']);
|
||||
}
|
||||
|
||||
if (array_key_exists('drop_elements', $value)) {
|
||||
$this->_usedProperties['dropElements'] = true;
|
||||
$this->dropElements = $value['drop_elements'];
|
||||
unset($value['drop_elements']);
|
||||
}
|
||||
|
||||
if (array_key_exists('allow_attributes', $value)) {
|
||||
$this->_usedProperties['allowAttributes'] = true;
|
||||
$this->allowAttributes = $value['allow_attributes'];
|
||||
unset($value['allow_attributes']);
|
||||
}
|
||||
|
||||
if (array_key_exists('drop_attributes', $value)) {
|
||||
$this->_usedProperties['dropAttributes'] = true;
|
||||
$this->dropAttributes = $value['drop_attributes'];
|
||||
unset($value['drop_attributes']);
|
||||
}
|
||||
|
||||
if (array_key_exists('force_attributes', $value)) {
|
||||
$this->_usedProperties['forceAttributes'] = true;
|
||||
$this->forceAttributes = $value['force_attributes'];
|
||||
unset($value['force_attributes']);
|
||||
}
|
||||
|
||||
if (array_key_exists('force_https_urls', $value)) {
|
||||
$this->_usedProperties['forceHttpsUrls'] = true;
|
||||
$this->forceHttpsUrls = $value['force_https_urls'];
|
||||
unset($value['force_https_urls']);
|
||||
}
|
||||
|
||||
if (array_key_exists('allowed_link_schemes', $value)) {
|
||||
$this->_usedProperties['allowedLinkSchemes'] = true;
|
||||
$this->allowedLinkSchemes = $value['allowed_link_schemes'];
|
||||
unset($value['allowed_link_schemes']);
|
||||
}
|
||||
|
||||
if (array_key_exists('allowed_link_hosts', $value)) {
|
||||
$this->_usedProperties['allowedLinkHosts'] = true;
|
||||
$this->allowedLinkHosts = $value['allowed_link_hosts'];
|
||||
unset($value['allowed_link_hosts']);
|
||||
}
|
||||
|
||||
if (array_key_exists('allow_relative_links', $value)) {
|
||||
$this->_usedProperties['allowRelativeLinks'] = true;
|
||||
$this->allowRelativeLinks = $value['allow_relative_links'];
|
||||
unset($value['allow_relative_links']);
|
||||
}
|
||||
|
||||
if (array_key_exists('allowed_media_schemes', $value)) {
|
||||
$this->_usedProperties['allowedMediaSchemes'] = true;
|
||||
$this->allowedMediaSchemes = $value['allowed_media_schemes'];
|
||||
unset($value['allowed_media_schemes']);
|
||||
}
|
||||
|
||||
if (array_key_exists('allowed_media_hosts', $value)) {
|
||||
$this->_usedProperties['allowedMediaHosts'] = true;
|
||||
$this->allowedMediaHosts = $value['allowed_media_hosts'];
|
||||
unset($value['allowed_media_hosts']);
|
||||
}
|
||||
|
||||
if (array_key_exists('allow_relative_medias', $value)) {
|
||||
$this->_usedProperties['allowRelativeMedias'] = true;
|
||||
$this->allowRelativeMedias = $value['allow_relative_medias'];
|
||||
unset($value['allow_relative_medias']);
|
||||
}
|
||||
|
||||
if (array_key_exists('with_attribute_sanitizers', $value)) {
|
||||
$this->_usedProperties['withAttributeSanitizers'] = true;
|
||||
$this->withAttributeSanitizers = $value['with_attribute_sanitizers'];
|
||||
unset($value['with_attribute_sanitizers']);
|
||||
}
|
||||
|
||||
if (array_key_exists('without_attribute_sanitizers', $value)) {
|
||||
$this->_usedProperties['withoutAttributeSanitizers'] = true;
|
||||
$this->withoutAttributeSanitizers = $value['without_attribute_sanitizers'];
|
||||
unset($value['without_attribute_sanitizers']);
|
||||
}
|
||||
|
||||
if (array_key_exists('max_input_length', $value)) {
|
||||
$this->_usedProperties['maxInputLength'] = true;
|
||||
$this->maxInputLength = $value['max_input_length'];
|
||||
unset($value['max_input_length']);
|
||||
}
|
||||
|
||||
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['allowSafeElements'])) {
|
||||
$output['allow_safe_elements'] = $this->allowSafeElements;
|
||||
}
|
||||
if (isset($this->_usedProperties['allowStaticElements'])) {
|
||||
$output['allow_static_elements'] = $this->allowStaticElements;
|
||||
}
|
||||
if (isset($this->_usedProperties['allowElements'])) {
|
||||
$output['allow_elements'] = $this->allowElements;
|
||||
}
|
||||
if (isset($this->_usedProperties['blockElements'])) {
|
||||
$output['block_elements'] = $this->blockElements;
|
||||
}
|
||||
if (isset($this->_usedProperties['dropElements'])) {
|
||||
$output['drop_elements'] = $this->dropElements;
|
||||
}
|
||||
if (isset($this->_usedProperties['allowAttributes'])) {
|
||||
$output['allow_attributes'] = $this->allowAttributes;
|
||||
}
|
||||
if (isset($this->_usedProperties['dropAttributes'])) {
|
||||
$output['drop_attributes'] = $this->dropAttributes;
|
||||
}
|
||||
if (isset($this->_usedProperties['forceAttributes'])) {
|
||||
$output['force_attributes'] = $this->forceAttributes;
|
||||
}
|
||||
if (isset($this->_usedProperties['forceHttpsUrls'])) {
|
||||
$output['force_https_urls'] = $this->forceHttpsUrls;
|
||||
}
|
||||
if (isset($this->_usedProperties['allowedLinkSchemes'])) {
|
||||
$output['allowed_link_schemes'] = $this->allowedLinkSchemes;
|
||||
}
|
||||
if (isset($this->_usedProperties['allowedLinkHosts'])) {
|
||||
$output['allowed_link_hosts'] = $this->allowedLinkHosts;
|
||||
}
|
||||
if (isset($this->_usedProperties['allowRelativeLinks'])) {
|
||||
$output['allow_relative_links'] = $this->allowRelativeLinks;
|
||||
}
|
||||
if (isset($this->_usedProperties['allowedMediaSchemes'])) {
|
||||
$output['allowed_media_schemes'] = $this->allowedMediaSchemes;
|
||||
}
|
||||
if (isset($this->_usedProperties['allowedMediaHosts'])) {
|
||||
$output['allowed_media_hosts'] = $this->allowedMediaHosts;
|
||||
}
|
||||
if (isset($this->_usedProperties['allowRelativeMedias'])) {
|
||||
$output['allow_relative_medias'] = $this->allowRelativeMedias;
|
||||
}
|
||||
if (isset($this->_usedProperties['withAttributeSanitizers'])) {
|
||||
$output['with_attribute_sanitizers'] = $this->withAttributeSanitizers;
|
||||
}
|
||||
if (isset($this->_usedProperties['withoutAttributeSanitizers'])) {
|
||||
$output['without_attribute_sanitizers'] = $this->withoutAttributeSanitizers;
|
||||
}
|
||||
if (isset($this->_usedProperties['maxInputLength'])) {
|
||||
$output['max_input_length'] = $this->maxInputLength;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
76
var/cache/dev/Symfony/Config/Framework/HtmlSanitizerConfig.php
vendored
Normal file
76
var/cache/dev/Symfony/Config/Framework/HtmlSanitizerConfig.php
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'HtmlSanitizer'.\DIRECTORY_SEPARATOR.'SanitizerConfig.php';
|
||||
|
||||
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 HtmlSanitizerConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $sanitizers;
|
||||
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 sanitizer(string $name, array $value = []): \Symfony\Config\Framework\HtmlSanitizer\SanitizerConfig
|
||||
{
|
||||
if (!isset($this->sanitizers[$name])) {
|
||||
$this->_usedProperties['sanitizers'] = true;
|
||||
$this->sanitizers[$name] = new \Symfony\Config\Framework\HtmlSanitizer\SanitizerConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "sanitizer()" has already been initialized. You cannot pass values the second time you call sanitizer().');
|
||||
}
|
||||
|
||||
return $this->sanitizers[$name];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sanitizers', $value)) {
|
||||
$this->_usedProperties['sanitizers'] = true;
|
||||
$this->sanitizers = array_map(fn ($v) => new \Symfony\Config\Framework\HtmlSanitizer\SanitizerConfig($v), $value['sanitizers']);
|
||||
unset($value['sanitizers']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['sanitizers'])) {
|
||||
$output['sanitizers'] = array_map(fn ($v) => $v->toArray(), $this->sanitizers);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
305
var/cache/dev/Symfony/Config/Framework/HttpCacheConfig.php
vendored
Normal file
305
var/cache/dev/Symfony/Config/Framework/HttpCacheConfig.php
vendored
Normal file
@@ -0,0 +1,305 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 HttpCacheConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $debug;
|
||||
private $traceLevel;
|
||||
private $traceHeader;
|
||||
private $defaultTtl;
|
||||
private $privateHeaders;
|
||||
private $skipResponseHeaders;
|
||||
private $allowReload;
|
||||
private $allowRevalidate;
|
||||
private $staleWhileRevalidate;
|
||||
private $staleIfError;
|
||||
private $terminateOnCacheHit;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default '%kernel.debug%'
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function debug($value): static
|
||||
{
|
||||
$this->_usedProperties['debug'] = true;
|
||||
$this->debug = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|'none'|'short'|'full' $value
|
||||
* @return $this
|
||||
*/
|
||||
public function traceLevel($value): static
|
||||
{
|
||||
$this->_usedProperties['traceLevel'] = true;
|
||||
$this->traceLevel = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function traceHeader($value): static
|
||||
{
|
||||
$this->_usedProperties['traceHeader'] = true;
|
||||
$this->traceHeader = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultTtl($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultTtl'] = true;
|
||||
$this->defaultTtl = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function privateHeaders(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['privateHeaders'] = true;
|
||||
$this->privateHeaders = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function skipResponseHeaders(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['skipResponseHeaders'] = true;
|
||||
$this->skipResponseHeaders = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function allowReload($value): static
|
||||
{
|
||||
$this->_usedProperties['allowReload'] = true;
|
||||
$this->allowReload = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function allowRevalidate($value): static
|
||||
{
|
||||
$this->_usedProperties['allowRevalidate'] = true;
|
||||
$this->allowRevalidate = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function staleWhileRevalidate($value): static
|
||||
{
|
||||
$this->_usedProperties['staleWhileRevalidate'] = true;
|
||||
$this->staleWhileRevalidate = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function staleIfError($value): static
|
||||
{
|
||||
$this->_usedProperties['staleIfError'] = true;
|
||||
$this->staleIfError = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function terminateOnCacheHit($value): static
|
||||
{
|
||||
$this->_usedProperties['terminateOnCacheHit'] = true;
|
||||
$this->terminateOnCacheHit = $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 (array_key_exists('debug', $value)) {
|
||||
$this->_usedProperties['debug'] = true;
|
||||
$this->debug = $value['debug'];
|
||||
unset($value['debug']);
|
||||
}
|
||||
|
||||
if (array_key_exists('trace_level', $value)) {
|
||||
$this->_usedProperties['traceLevel'] = true;
|
||||
$this->traceLevel = $value['trace_level'];
|
||||
unset($value['trace_level']);
|
||||
}
|
||||
|
||||
if (array_key_exists('trace_header', $value)) {
|
||||
$this->_usedProperties['traceHeader'] = true;
|
||||
$this->traceHeader = $value['trace_header'];
|
||||
unset($value['trace_header']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_ttl', $value)) {
|
||||
$this->_usedProperties['defaultTtl'] = true;
|
||||
$this->defaultTtl = $value['default_ttl'];
|
||||
unset($value['default_ttl']);
|
||||
}
|
||||
|
||||
if (array_key_exists('private_headers', $value)) {
|
||||
$this->_usedProperties['privateHeaders'] = true;
|
||||
$this->privateHeaders = $value['private_headers'];
|
||||
unset($value['private_headers']);
|
||||
}
|
||||
|
||||
if (array_key_exists('skip_response_headers', $value)) {
|
||||
$this->_usedProperties['skipResponseHeaders'] = true;
|
||||
$this->skipResponseHeaders = $value['skip_response_headers'];
|
||||
unset($value['skip_response_headers']);
|
||||
}
|
||||
|
||||
if (array_key_exists('allow_reload', $value)) {
|
||||
$this->_usedProperties['allowReload'] = true;
|
||||
$this->allowReload = $value['allow_reload'];
|
||||
unset($value['allow_reload']);
|
||||
}
|
||||
|
||||
if (array_key_exists('allow_revalidate', $value)) {
|
||||
$this->_usedProperties['allowRevalidate'] = true;
|
||||
$this->allowRevalidate = $value['allow_revalidate'];
|
||||
unset($value['allow_revalidate']);
|
||||
}
|
||||
|
||||
if (array_key_exists('stale_while_revalidate', $value)) {
|
||||
$this->_usedProperties['staleWhileRevalidate'] = true;
|
||||
$this->staleWhileRevalidate = $value['stale_while_revalidate'];
|
||||
unset($value['stale_while_revalidate']);
|
||||
}
|
||||
|
||||
if (array_key_exists('stale_if_error', $value)) {
|
||||
$this->_usedProperties['staleIfError'] = true;
|
||||
$this->staleIfError = $value['stale_if_error'];
|
||||
unset($value['stale_if_error']);
|
||||
}
|
||||
|
||||
if (array_key_exists('terminate_on_cache_hit', $value)) {
|
||||
$this->_usedProperties['terminateOnCacheHit'] = true;
|
||||
$this->terminateOnCacheHit = $value['terminate_on_cache_hit'];
|
||||
unset($value['terminate_on_cache_hit']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['debug'])) {
|
||||
$output['debug'] = $this->debug;
|
||||
}
|
||||
if (isset($this->_usedProperties['traceLevel'])) {
|
||||
$output['trace_level'] = $this->traceLevel;
|
||||
}
|
||||
if (isset($this->_usedProperties['traceHeader'])) {
|
||||
$output['trace_header'] = $this->traceHeader;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultTtl'])) {
|
||||
$output['default_ttl'] = $this->defaultTtl;
|
||||
}
|
||||
if (isset($this->_usedProperties['privateHeaders'])) {
|
||||
$output['private_headers'] = $this->privateHeaders;
|
||||
}
|
||||
if (isset($this->_usedProperties['skipResponseHeaders'])) {
|
||||
$output['skip_response_headers'] = $this->skipResponseHeaders;
|
||||
}
|
||||
if (isset($this->_usedProperties['allowReload'])) {
|
||||
$output['allow_reload'] = $this->allowReload;
|
||||
}
|
||||
if (isset($this->_usedProperties['allowRevalidate'])) {
|
||||
$output['allow_revalidate'] = $this->allowRevalidate;
|
||||
}
|
||||
if (isset($this->_usedProperties['staleWhileRevalidate'])) {
|
||||
$output['stale_while_revalidate'] = $this->staleWhileRevalidate;
|
||||
}
|
||||
if (isset($this->_usedProperties['staleIfError'])) {
|
||||
$output['stale_if_error'] = $this->staleIfError;
|
||||
}
|
||||
if (isset($this->_usedProperties['terminateOnCacheHit'])) {
|
||||
$output['terminate_on_cache_hit'] = $this->terminateOnCacheHit;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
101
var/cache/dev/Symfony/Config/Framework/HttpClient/DefaultOptions/PeerFingerprintConfig.php
vendored
Normal file
101
var/cache/dev/Symfony/Config/Framework/HttpClient/DefaultOptions/PeerFingerprintConfig.php
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\HttpClient\DefaultOptions;
|
||||
|
||||
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 PeerFingerprintConfig
|
||||
{
|
||||
private $sha1;
|
||||
private $pinsha256;
|
||||
private $md5;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function sha1(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['sha1'] = true;
|
||||
$this->sha1 = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function pinsha256(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['pinsha256'] = true;
|
||||
$this->pinsha256 = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function md5(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['md5'] = true;
|
||||
$this->md5 = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('sha1', $value)) {
|
||||
$this->_usedProperties['sha1'] = true;
|
||||
$this->sha1 = $value['sha1'];
|
||||
unset($value['sha1']);
|
||||
}
|
||||
|
||||
if (array_key_exists('pin-sha256', $value)) {
|
||||
$this->_usedProperties['pinsha256'] = true;
|
||||
$this->pinsha256 = $value['pin-sha256'];
|
||||
unset($value['pin-sha256']);
|
||||
}
|
||||
|
||||
if (array_key_exists('md5', $value)) {
|
||||
$this->_usedProperties['md5'] = true;
|
||||
$this->md5 = $value['md5'];
|
||||
unset($value['md5']);
|
||||
}
|
||||
|
||||
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['sha1'])) {
|
||||
$output['sha1'] = $this->sha1;
|
||||
}
|
||||
if (isset($this->_usedProperties['pinsha256'])) {
|
||||
$output['pin-sha256'] = $this->pinsha256;
|
||||
}
|
||||
if (isset($this->_usedProperties['md5'])) {
|
||||
$output['md5'] = $this->md5;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
75
var/cache/dev/Symfony/Config/Framework/HttpClient/DefaultOptions/RetryFailed/HttpCodeConfig.php
vendored
Normal file
75
var/cache/dev/Symfony/Config/Framework/HttpClient/DefaultOptions/RetryFailed/HttpCodeConfig.php
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\HttpClient\DefaultOptions\RetryFailed;
|
||||
|
||||
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 HttpCodeConfig
|
||||
{
|
||||
private $code;
|
||||
private $methods;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function code($value): static
|
||||
{
|
||||
$this->_usedProperties['code'] = true;
|
||||
$this->code = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function methods(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['methods'] = true;
|
||||
$this->methods = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('code', $value)) {
|
||||
$this->_usedProperties['code'] = true;
|
||||
$this->code = $value['code'];
|
||||
unset($value['code']);
|
||||
}
|
||||
|
||||
if (array_key_exists('methods', $value)) {
|
||||
$this->_usedProperties['methods'] = true;
|
||||
$this->methods = $value['methods'];
|
||||
unset($value['methods']);
|
||||
}
|
||||
|
||||
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['code'])) {
|
||||
$output['code'] = $this->code;
|
||||
}
|
||||
if (isset($this->_usedProperties['methods'])) {
|
||||
$output['methods'] = $this->methods;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
222
var/cache/dev/Symfony/Config/Framework/HttpClient/DefaultOptions/RetryFailedConfig.php
vendored
Normal file
222
var/cache/dev/Symfony/Config/Framework/HttpClient/DefaultOptions/RetryFailedConfig.php
vendored
Normal file
@@ -0,0 +1,222 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\HttpClient\DefaultOptions;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'RetryFailed'.\DIRECTORY_SEPARATOR.'HttpCodeConfig.php';
|
||||
|
||||
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 RetryFailedConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $retryStrategy;
|
||||
private $httpCodes;
|
||||
private $maxRetries;
|
||||
private $delay;
|
||||
private $multiplier;
|
||||
private $maxDelay;
|
||||
private $jitter;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* service id to override the retry strategy.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function retryStrategy($value): static
|
||||
{
|
||||
$this->_usedProperties['retryStrategy'] = true;
|
||||
$this->retryStrategy = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A list of HTTP status code that triggers a retry.
|
||||
*/
|
||||
public function httpCode(string $code, array $value = []): \Symfony\Config\Framework\HttpClient\DefaultOptions\RetryFailed\HttpCodeConfig
|
||||
{
|
||||
if (!isset($this->httpCodes[$code])) {
|
||||
$this->_usedProperties['httpCodes'] = true;
|
||||
$this->httpCodes[$code] = new \Symfony\Config\Framework\HttpClient\DefaultOptions\RetryFailed\HttpCodeConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "httpCode()" has already been initialized. You cannot pass values the second time you call httpCode().');
|
||||
}
|
||||
|
||||
return $this->httpCodes[$code];
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 3
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxRetries($value): static
|
||||
{
|
||||
$this->_usedProperties['maxRetries'] = true;
|
||||
$this->maxRetries = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Time in ms to delay (or the initial value when multiplier is used).
|
||||
* @default 1000
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function delay($value): static
|
||||
{
|
||||
$this->_usedProperties['delay'] = true;
|
||||
$this->delay = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* If greater than 1, delay will grow exponentially for each retry: delay * (multiple ^ retries).
|
||||
* @default 2
|
||||
* @param ParamConfigurator|float $value
|
||||
* @return $this
|
||||
*/
|
||||
public function multiplier($value): static
|
||||
{
|
||||
$this->_usedProperties['multiplier'] = true;
|
||||
$this->multiplier = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Max time in ms that a retry should ever be delayed (0 = infinite).
|
||||
* @default 0
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxDelay($value): static
|
||||
{
|
||||
$this->_usedProperties['maxDelay'] = true;
|
||||
$this->maxDelay = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Randomness in percent (between 0 and 1) to apply to the delay.
|
||||
* @default 0.1
|
||||
* @param ParamConfigurator|float $value
|
||||
* @return $this
|
||||
*/
|
||||
public function jitter($value): static
|
||||
{
|
||||
$this->_usedProperties['jitter'] = true;
|
||||
$this->jitter = $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 (array_key_exists('retry_strategy', $value)) {
|
||||
$this->_usedProperties['retryStrategy'] = true;
|
||||
$this->retryStrategy = $value['retry_strategy'];
|
||||
unset($value['retry_strategy']);
|
||||
}
|
||||
|
||||
if (array_key_exists('http_codes', $value)) {
|
||||
$this->_usedProperties['httpCodes'] = true;
|
||||
$this->httpCodes = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Framework\HttpClient\DefaultOptions\RetryFailed\HttpCodeConfig($v) : $v, $value['http_codes']);
|
||||
unset($value['http_codes']);
|
||||
}
|
||||
|
||||
if (array_key_exists('max_retries', $value)) {
|
||||
$this->_usedProperties['maxRetries'] = true;
|
||||
$this->maxRetries = $value['max_retries'];
|
||||
unset($value['max_retries']);
|
||||
}
|
||||
|
||||
if (array_key_exists('delay', $value)) {
|
||||
$this->_usedProperties['delay'] = true;
|
||||
$this->delay = $value['delay'];
|
||||
unset($value['delay']);
|
||||
}
|
||||
|
||||
if (array_key_exists('multiplier', $value)) {
|
||||
$this->_usedProperties['multiplier'] = true;
|
||||
$this->multiplier = $value['multiplier'];
|
||||
unset($value['multiplier']);
|
||||
}
|
||||
|
||||
if (array_key_exists('max_delay', $value)) {
|
||||
$this->_usedProperties['maxDelay'] = true;
|
||||
$this->maxDelay = $value['max_delay'];
|
||||
unset($value['max_delay']);
|
||||
}
|
||||
|
||||
if (array_key_exists('jitter', $value)) {
|
||||
$this->_usedProperties['jitter'] = true;
|
||||
$this->jitter = $value['jitter'];
|
||||
unset($value['jitter']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['retryStrategy'])) {
|
||||
$output['retry_strategy'] = $this->retryStrategy;
|
||||
}
|
||||
if (isset($this->_usedProperties['httpCodes'])) {
|
||||
$output['http_codes'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Framework\HttpClient\DefaultOptions\RetryFailed\HttpCodeConfig ? $v->toArray() : $v, $this->httpCodes);
|
||||
}
|
||||
if (isset($this->_usedProperties['maxRetries'])) {
|
||||
$output['max_retries'] = $this->maxRetries;
|
||||
}
|
||||
if (isset($this->_usedProperties['delay'])) {
|
||||
$output['delay'] = $this->delay;
|
||||
}
|
||||
if (isset($this->_usedProperties['multiplier'])) {
|
||||
$output['multiplier'] = $this->multiplier;
|
||||
}
|
||||
if (isset($this->_usedProperties['maxDelay'])) {
|
||||
$output['max_delay'] = $this->maxDelay;
|
||||
}
|
||||
if (isset($this->_usedProperties['jitter'])) {
|
||||
$output['jitter'] = $this->jitter;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
589
var/cache/dev/Symfony/Config/Framework/HttpClient/DefaultOptionsConfig.php
vendored
Normal file
589
var/cache/dev/Symfony/Config/Framework/HttpClient/DefaultOptionsConfig.php
vendored
Normal file
@@ -0,0 +1,589 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\HttpClient;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'DefaultOptions'.\DIRECTORY_SEPARATOR.'PeerFingerprintConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'DefaultOptions'.\DIRECTORY_SEPARATOR.'RetryFailedConfig.php';
|
||||
|
||||
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 DefaultOptionsConfig
|
||||
{
|
||||
private $headers;
|
||||
private $vars;
|
||||
private $maxRedirects;
|
||||
private $httpVersion;
|
||||
private $resolve;
|
||||
private $proxy;
|
||||
private $noProxy;
|
||||
private $timeout;
|
||||
private $maxDuration;
|
||||
private $bindto;
|
||||
private $verifyPeer;
|
||||
private $verifyHost;
|
||||
private $cafile;
|
||||
private $capath;
|
||||
private $localCert;
|
||||
private $localPk;
|
||||
private $passphrase;
|
||||
private $ciphers;
|
||||
private $peerFingerprint;
|
||||
private $cryptoMethod;
|
||||
private $extra;
|
||||
private $rateLimiter;
|
||||
private $retryFailed;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function header(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['headers'] = true;
|
||||
$this->headers[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function vars(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['vars'] = true;
|
||||
$this->vars = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The maximum number of redirects to follow.
|
||||
* @default null
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxRedirects($value): static
|
||||
{
|
||||
$this->_usedProperties['maxRedirects'] = true;
|
||||
$this->maxRedirects = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The default HTTP version, typically 1.1 or 2.0, leave to null for the best version.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function httpVersion($value): static
|
||||
{
|
||||
$this->_usedProperties['httpVersion'] = true;
|
||||
$this->httpVersion = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function resolve(string $host, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['resolve'] = true;
|
||||
$this->resolve[$host] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the proxy to pass requests through or null for automatic detection.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function proxy($value): static
|
||||
{
|
||||
$this->_usedProperties['proxy'] = true;
|
||||
$this->proxy = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A comma separated list of hosts that do not require a proxy to be reached.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function noProxy($value): static
|
||||
{
|
||||
$this->_usedProperties['noProxy'] = true;
|
||||
$this->noProxy = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The idle timeout, defaults to the "default_socket_timeout" ini parameter.
|
||||
* @default null
|
||||
* @param ParamConfigurator|float $value
|
||||
* @return $this
|
||||
*/
|
||||
public function timeout($value): static
|
||||
{
|
||||
$this->_usedProperties['timeout'] = true;
|
||||
$this->timeout = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The maximum execution time for the request+response as a whole.
|
||||
* @default null
|
||||
* @param ParamConfigurator|float $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxDuration($value): static
|
||||
{
|
||||
$this->_usedProperties['maxDuration'] = true;
|
||||
$this->maxDuration = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A network interface name, IP address, a host name or a UNIX socket to bind to.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function bindto($value): static
|
||||
{
|
||||
$this->_usedProperties['bindto'] = true;
|
||||
$this->bindto = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the peer should be verified in a TLS context.
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function verifyPeer($value): static
|
||||
{
|
||||
$this->_usedProperties['verifyPeer'] = true;
|
||||
$this->verifyPeer = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the host should exist as a certificate common name.
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function verifyHost($value): static
|
||||
{
|
||||
$this->_usedProperties['verifyHost'] = true;
|
||||
$this->verifyHost = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A certificate authority file.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function cafile($value): static
|
||||
{
|
||||
$this->_usedProperties['cafile'] = true;
|
||||
$this->cafile = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A directory that contains multiple certificate authority files.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function capath($value): static
|
||||
{
|
||||
$this->_usedProperties['capath'] = true;
|
||||
$this->capath = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A PEM formatted certificate file.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function localCert($value): static
|
||||
{
|
||||
$this->_usedProperties['localCert'] = true;
|
||||
$this->localCert = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A private key file.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function localPk($value): static
|
||||
{
|
||||
$this->_usedProperties['localPk'] = true;
|
||||
$this->localPk = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The passphrase used to encrypt the "local_pk" file.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function passphrase($value): static
|
||||
{
|
||||
$this->_usedProperties['passphrase'] = true;
|
||||
$this->passphrase = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A list of TLS ciphers separated by colons, commas or spaces (e.g. "RC3-SHA:TLS13-AES-128-GCM-SHA256"...)
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function ciphers($value): static
|
||||
{
|
||||
$this->_usedProperties['ciphers'] = true;
|
||||
$this->ciphers = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array: hashing algorithm => hash(es).
|
||||
*/
|
||||
public function peerFingerprint(array $value = []): \Symfony\Config\Framework\HttpClient\DefaultOptions\PeerFingerprintConfig
|
||||
{
|
||||
if (null === $this->peerFingerprint) {
|
||||
$this->_usedProperties['peerFingerprint'] = true;
|
||||
$this->peerFingerprint = new \Symfony\Config\Framework\HttpClient\DefaultOptions\PeerFingerprintConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "peerFingerprint()" has already been initialized. You cannot pass values the second time you call peerFingerprint().');
|
||||
}
|
||||
|
||||
return $this->peerFingerprint;
|
||||
}
|
||||
|
||||
/**
|
||||
* The minimum version of TLS to accept; must be one of STREAM_CRYPTO_METHOD_TLSv*_CLIENT constants.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function cryptoMethod($value): static
|
||||
{
|
||||
$this->_usedProperties['cryptoMethod'] = true;
|
||||
$this->cryptoMethod = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function extra(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['extra'] = true;
|
||||
$this->extra = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Rate limiter name to use for throttling requests.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function rateLimiter($value): static
|
||||
{
|
||||
$this->_usedProperties['rateLimiter'] = true;
|
||||
$this->rateLimiter = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @default {"enabled":false,"retry_strategy":null,"http_codes":[],"max_retries":3,"delay":1000,"multiplier":2,"max_delay":0,"jitter":0.1}
|
||||
* @return \Symfony\Config\Framework\HttpClient\DefaultOptions\RetryFailedConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Framework\HttpClient\DefaultOptions\RetryFailedConfig : static)
|
||||
*/
|
||||
public function retryFailed(mixed $value = []): \Symfony\Config\Framework\HttpClient\DefaultOptions\RetryFailedConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['retryFailed'] = true;
|
||||
$this->retryFailed = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!$this->retryFailed instanceof \Symfony\Config\Framework\HttpClient\DefaultOptions\RetryFailedConfig) {
|
||||
$this->_usedProperties['retryFailed'] = true;
|
||||
$this->retryFailed = new \Symfony\Config\Framework\HttpClient\DefaultOptions\RetryFailedConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "retryFailed()" has already been initialized. You cannot pass values the second time you call retryFailed().');
|
||||
}
|
||||
|
||||
return $this->retryFailed;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('headers', $value)) {
|
||||
$this->_usedProperties['headers'] = true;
|
||||
$this->headers = $value['headers'];
|
||||
unset($value['headers']);
|
||||
}
|
||||
|
||||
if (array_key_exists('vars', $value)) {
|
||||
$this->_usedProperties['vars'] = true;
|
||||
$this->vars = $value['vars'];
|
||||
unset($value['vars']);
|
||||
}
|
||||
|
||||
if (array_key_exists('max_redirects', $value)) {
|
||||
$this->_usedProperties['maxRedirects'] = true;
|
||||
$this->maxRedirects = $value['max_redirects'];
|
||||
unset($value['max_redirects']);
|
||||
}
|
||||
|
||||
if (array_key_exists('http_version', $value)) {
|
||||
$this->_usedProperties['httpVersion'] = true;
|
||||
$this->httpVersion = $value['http_version'];
|
||||
unset($value['http_version']);
|
||||
}
|
||||
|
||||
if (array_key_exists('resolve', $value)) {
|
||||
$this->_usedProperties['resolve'] = true;
|
||||
$this->resolve = $value['resolve'];
|
||||
unset($value['resolve']);
|
||||
}
|
||||
|
||||
if (array_key_exists('proxy', $value)) {
|
||||
$this->_usedProperties['proxy'] = true;
|
||||
$this->proxy = $value['proxy'];
|
||||
unset($value['proxy']);
|
||||
}
|
||||
|
||||
if (array_key_exists('no_proxy', $value)) {
|
||||
$this->_usedProperties['noProxy'] = true;
|
||||
$this->noProxy = $value['no_proxy'];
|
||||
unset($value['no_proxy']);
|
||||
}
|
||||
|
||||
if (array_key_exists('timeout', $value)) {
|
||||
$this->_usedProperties['timeout'] = true;
|
||||
$this->timeout = $value['timeout'];
|
||||
unset($value['timeout']);
|
||||
}
|
||||
|
||||
if (array_key_exists('max_duration', $value)) {
|
||||
$this->_usedProperties['maxDuration'] = true;
|
||||
$this->maxDuration = $value['max_duration'];
|
||||
unset($value['max_duration']);
|
||||
}
|
||||
|
||||
if (array_key_exists('bindto', $value)) {
|
||||
$this->_usedProperties['bindto'] = true;
|
||||
$this->bindto = $value['bindto'];
|
||||
unset($value['bindto']);
|
||||
}
|
||||
|
||||
if (array_key_exists('verify_peer', $value)) {
|
||||
$this->_usedProperties['verifyPeer'] = true;
|
||||
$this->verifyPeer = $value['verify_peer'];
|
||||
unset($value['verify_peer']);
|
||||
}
|
||||
|
||||
if (array_key_exists('verify_host', $value)) {
|
||||
$this->_usedProperties['verifyHost'] = true;
|
||||
$this->verifyHost = $value['verify_host'];
|
||||
unset($value['verify_host']);
|
||||
}
|
||||
|
||||
if (array_key_exists('cafile', $value)) {
|
||||
$this->_usedProperties['cafile'] = true;
|
||||
$this->cafile = $value['cafile'];
|
||||
unset($value['cafile']);
|
||||
}
|
||||
|
||||
if (array_key_exists('capath', $value)) {
|
||||
$this->_usedProperties['capath'] = true;
|
||||
$this->capath = $value['capath'];
|
||||
unset($value['capath']);
|
||||
}
|
||||
|
||||
if (array_key_exists('local_cert', $value)) {
|
||||
$this->_usedProperties['localCert'] = true;
|
||||
$this->localCert = $value['local_cert'];
|
||||
unset($value['local_cert']);
|
||||
}
|
||||
|
||||
if (array_key_exists('local_pk', $value)) {
|
||||
$this->_usedProperties['localPk'] = true;
|
||||
$this->localPk = $value['local_pk'];
|
||||
unset($value['local_pk']);
|
||||
}
|
||||
|
||||
if (array_key_exists('passphrase', $value)) {
|
||||
$this->_usedProperties['passphrase'] = true;
|
||||
$this->passphrase = $value['passphrase'];
|
||||
unset($value['passphrase']);
|
||||
}
|
||||
|
||||
if (array_key_exists('ciphers', $value)) {
|
||||
$this->_usedProperties['ciphers'] = true;
|
||||
$this->ciphers = $value['ciphers'];
|
||||
unset($value['ciphers']);
|
||||
}
|
||||
|
||||
if (array_key_exists('peer_fingerprint', $value)) {
|
||||
$this->_usedProperties['peerFingerprint'] = true;
|
||||
$this->peerFingerprint = new \Symfony\Config\Framework\HttpClient\DefaultOptions\PeerFingerprintConfig($value['peer_fingerprint']);
|
||||
unset($value['peer_fingerprint']);
|
||||
}
|
||||
|
||||
if (array_key_exists('crypto_method', $value)) {
|
||||
$this->_usedProperties['cryptoMethod'] = true;
|
||||
$this->cryptoMethod = $value['crypto_method'];
|
||||
unset($value['crypto_method']);
|
||||
}
|
||||
|
||||
if (array_key_exists('extra', $value)) {
|
||||
$this->_usedProperties['extra'] = true;
|
||||
$this->extra = $value['extra'];
|
||||
unset($value['extra']);
|
||||
}
|
||||
|
||||
if (array_key_exists('rate_limiter', $value)) {
|
||||
$this->_usedProperties['rateLimiter'] = true;
|
||||
$this->rateLimiter = $value['rate_limiter'];
|
||||
unset($value['rate_limiter']);
|
||||
}
|
||||
|
||||
if (array_key_exists('retry_failed', $value)) {
|
||||
$this->_usedProperties['retryFailed'] = true;
|
||||
$this->retryFailed = \is_array($value['retry_failed']) ? new \Symfony\Config\Framework\HttpClient\DefaultOptions\RetryFailedConfig($value['retry_failed']) : $value['retry_failed'];
|
||||
unset($value['retry_failed']);
|
||||
}
|
||||
|
||||
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['headers'])) {
|
||||
$output['headers'] = $this->headers;
|
||||
}
|
||||
if (isset($this->_usedProperties['vars'])) {
|
||||
$output['vars'] = $this->vars;
|
||||
}
|
||||
if (isset($this->_usedProperties['maxRedirects'])) {
|
||||
$output['max_redirects'] = $this->maxRedirects;
|
||||
}
|
||||
if (isset($this->_usedProperties['httpVersion'])) {
|
||||
$output['http_version'] = $this->httpVersion;
|
||||
}
|
||||
if (isset($this->_usedProperties['resolve'])) {
|
||||
$output['resolve'] = $this->resolve;
|
||||
}
|
||||
if (isset($this->_usedProperties['proxy'])) {
|
||||
$output['proxy'] = $this->proxy;
|
||||
}
|
||||
if (isset($this->_usedProperties['noProxy'])) {
|
||||
$output['no_proxy'] = $this->noProxy;
|
||||
}
|
||||
if (isset($this->_usedProperties['timeout'])) {
|
||||
$output['timeout'] = $this->timeout;
|
||||
}
|
||||
if (isset($this->_usedProperties['maxDuration'])) {
|
||||
$output['max_duration'] = $this->maxDuration;
|
||||
}
|
||||
if (isset($this->_usedProperties['bindto'])) {
|
||||
$output['bindto'] = $this->bindto;
|
||||
}
|
||||
if (isset($this->_usedProperties['verifyPeer'])) {
|
||||
$output['verify_peer'] = $this->verifyPeer;
|
||||
}
|
||||
if (isset($this->_usedProperties['verifyHost'])) {
|
||||
$output['verify_host'] = $this->verifyHost;
|
||||
}
|
||||
if (isset($this->_usedProperties['cafile'])) {
|
||||
$output['cafile'] = $this->cafile;
|
||||
}
|
||||
if (isset($this->_usedProperties['capath'])) {
|
||||
$output['capath'] = $this->capath;
|
||||
}
|
||||
if (isset($this->_usedProperties['localCert'])) {
|
||||
$output['local_cert'] = $this->localCert;
|
||||
}
|
||||
if (isset($this->_usedProperties['localPk'])) {
|
||||
$output['local_pk'] = $this->localPk;
|
||||
}
|
||||
if (isset($this->_usedProperties['passphrase'])) {
|
||||
$output['passphrase'] = $this->passphrase;
|
||||
}
|
||||
if (isset($this->_usedProperties['ciphers'])) {
|
||||
$output['ciphers'] = $this->ciphers;
|
||||
}
|
||||
if (isset($this->_usedProperties['peerFingerprint'])) {
|
||||
$output['peer_fingerprint'] = $this->peerFingerprint->toArray();
|
||||
}
|
||||
if (isset($this->_usedProperties['cryptoMethod'])) {
|
||||
$output['crypto_method'] = $this->cryptoMethod;
|
||||
}
|
||||
if (isset($this->_usedProperties['extra'])) {
|
||||
$output['extra'] = $this->extra;
|
||||
}
|
||||
if (isset($this->_usedProperties['rateLimiter'])) {
|
||||
$output['rate_limiter'] = $this->rateLimiter;
|
||||
}
|
||||
if (isset($this->_usedProperties['retryFailed'])) {
|
||||
$output['retry_failed'] = $this->retryFailed instanceof \Symfony\Config\Framework\HttpClient\DefaultOptions\RetryFailedConfig ? $this->retryFailed->toArray() : $this->retryFailed;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
707
var/cache/dev/Symfony/Config/Framework/HttpClient/ScopedClientConfig.php
vendored
Normal file
707
var/cache/dev/Symfony/Config/Framework/HttpClient/ScopedClientConfig.php
vendored
Normal file
@@ -0,0 +1,707 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\HttpClient;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'ScopedClientConfig'.\DIRECTORY_SEPARATOR.'PeerFingerprintConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'ScopedClientConfig'.\DIRECTORY_SEPARATOR.'RetryFailedConfig.php';
|
||||
|
||||
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 ScopedClientConfig
|
||||
{
|
||||
private $scope;
|
||||
private $baseUri;
|
||||
private $authBasic;
|
||||
private $authBearer;
|
||||
private $authNtlm;
|
||||
private $query;
|
||||
private $headers;
|
||||
private $maxRedirects;
|
||||
private $httpVersion;
|
||||
private $resolve;
|
||||
private $proxy;
|
||||
private $noProxy;
|
||||
private $timeout;
|
||||
private $maxDuration;
|
||||
private $bindto;
|
||||
private $verifyPeer;
|
||||
private $verifyHost;
|
||||
private $cafile;
|
||||
private $capath;
|
||||
private $localCert;
|
||||
private $localPk;
|
||||
private $passphrase;
|
||||
private $ciphers;
|
||||
private $peerFingerprint;
|
||||
private $cryptoMethod;
|
||||
private $extra;
|
||||
private $rateLimiter;
|
||||
private $retryFailed;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* The regular expression that the request URL must match before adding the other options. When none is provided, the base URI is used instead.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function scope($value): static
|
||||
{
|
||||
$this->_usedProperties['scope'] = true;
|
||||
$this->scope = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URI to resolve relative URLs, following rules in RFC 3985, section 2.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function baseUri($value): static
|
||||
{
|
||||
$this->_usedProperties['baseUri'] = true;
|
||||
$this->baseUri = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An HTTP Basic authentication "username:password".
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function authBasic($value): static
|
||||
{
|
||||
$this->_usedProperties['authBasic'] = true;
|
||||
$this->authBasic = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A token enabling HTTP Bearer authorization.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function authBearer($value): static
|
||||
{
|
||||
$this->_usedProperties['authBearer'] = true;
|
||||
$this->authBearer = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A "username:password" pair to use Microsoft NTLM authentication (requires the cURL extension).
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function authNtlm($value): static
|
||||
{
|
||||
$this->_usedProperties['authNtlm'] = true;
|
||||
$this->authNtlm = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function query(string $key, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['query'] = true;
|
||||
$this->query[$key] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function header(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['headers'] = true;
|
||||
$this->headers[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The maximum number of redirects to follow.
|
||||
* @default null
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxRedirects($value): static
|
||||
{
|
||||
$this->_usedProperties['maxRedirects'] = true;
|
||||
$this->maxRedirects = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The default HTTP version, typically 1.1 or 2.0, leave to null for the best version.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function httpVersion($value): static
|
||||
{
|
||||
$this->_usedProperties['httpVersion'] = true;
|
||||
$this->httpVersion = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function resolve(string $host, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['resolve'] = true;
|
||||
$this->resolve[$host] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The URL of the proxy to pass requests through or null for automatic detection.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function proxy($value): static
|
||||
{
|
||||
$this->_usedProperties['proxy'] = true;
|
||||
$this->proxy = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A comma separated list of hosts that do not require a proxy to be reached.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function noProxy($value): static
|
||||
{
|
||||
$this->_usedProperties['noProxy'] = true;
|
||||
$this->noProxy = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The idle timeout, defaults to the "default_socket_timeout" ini parameter.
|
||||
* @default null
|
||||
* @param ParamConfigurator|float $value
|
||||
* @return $this
|
||||
*/
|
||||
public function timeout($value): static
|
||||
{
|
||||
$this->_usedProperties['timeout'] = true;
|
||||
$this->timeout = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The maximum execution time for the request+response as a whole.
|
||||
* @default null
|
||||
* @param ParamConfigurator|float $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxDuration($value): static
|
||||
{
|
||||
$this->_usedProperties['maxDuration'] = true;
|
||||
$this->maxDuration = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A network interface name, IP address, a host name or a UNIX socket to bind to.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function bindto($value): static
|
||||
{
|
||||
$this->_usedProperties['bindto'] = true;
|
||||
$this->bindto = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the peer should be verified in a TLS context.
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function verifyPeer($value): static
|
||||
{
|
||||
$this->_usedProperties['verifyPeer'] = true;
|
||||
$this->verifyPeer = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if the host should exist as a certificate common name.
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function verifyHost($value): static
|
||||
{
|
||||
$this->_usedProperties['verifyHost'] = true;
|
||||
$this->verifyHost = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A certificate authority file.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function cafile($value): static
|
||||
{
|
||||
$this->_usedProperties['cafile'] = true;
|
||||
$this->cafile = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A directory that contains multiple certificate authority files.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function capath($value): static
|
||||
{
|
||||
$this->_usedProperties['capath'] = true;
|
||||
$this->capath = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A PEM formatted certificate file.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function localCert($value): static
|
||||
{
|
||||
$this->_usedProperties['localCert'] = true;
|
||||
$this->localCert = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A private key file.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function localPk($value): static
|
||||
{
|
||||
$this->_usedProperties['localPk'] = true;
|
||||
$this->localPk = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The passphrase used to encrypt the "local_pk" file.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function passphrase($value): static
|
||||
{
|
||||
$this->_usedProperties['passphrase'] = true;
|
||||
$this->passphrase = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A list of TLS ciphers separated by colons, commas or spaces (e.g. "RC3-SHA:TLS13-AES-128-GCM-SHA256"...).
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function ciphers($value): static
|
||||
{
|
||||
$this->_usedProperties['ciphers'] = true;
|
||||
$this->ciphers = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array: hashing algorithm => hash(es).
|
||||
*/
|
||||
public function peerFingerprint(array $value = []): \Symfony\Config\Framework\HttpClient\ScopedClientConfig\PeerFingerprintConfig
|
||||
{
|
||||
if (null === $this->peerFingerprint) {
|
||||
$this->_usedProperties['peerFingerprint'] = true;
|
||||
$this->peerFingerprint = new \Symfony\Config\Framework\HttpClient\ScopedClientConfig\PeerFingerprintConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "peerFingerprint()" has already been initialized. You cannot pass values the second time you call peerFingerprint().');
|
||||
}
|
||||
|
||||
return $this->peerFingerprint;
|
||||
}
|
||||
|
||||
/**
|
||||
* The minimum version of TLS to accept; must be one of STREAM_CRYPTO_METHOD_TLSv*_CLIENT constants.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function cryptoMethod($value): static
|
||||
{
|
||||
$this->_usedProperties['cryptoMethod'] = true;
|
||||
$this->cryptoMethod = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function extra(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['extra'] = true;
|
||||
$this->extra = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Rate limiter name to use for throttling requests.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function rateLimiter($value): static
|
||||
{
|
||||
$this->_usedProperties['rateLimiter'] = true;
|
||||
$this->rateLimiter = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @default {"enabled":false,"retry_strategy":null,"http_codes":[],"max_retries":3,"delay":1000,"multiplier":2,"max_delay":0,"jitter":0.1}
|
||||
* @return \Symfony\Config\Framework\HttpClient\ScopedClientConfig\RetryFailedConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Framework\HttpClient\ScopedClientConfig\RetryFailedConfig : static)
|
||||
*/
|
||||
public function retryFailed(mixed $value = []): \Symfony\Config\Framework\HttpClient\ScopedClientConfig\RetryFailedConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['retryFailed'] = true;
|
||||
$this->retryFailed = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!$this->retryFailed instanceof \Symfony\Config\Framework\HttpClient\ScopedClientConfig\RetryFailedConfig) {
|
||||
$this->_usedProperties['retryFailed'] = true;
|
||||
$this->retryFailed = new \Symfony\Config\Framework\HttpClient\ScopedClientConfig\RetryFailedConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "retryFailed()" has already been initialized. You cannot pass values the second time you call retryFailed().');
|
||||
}
|
||||
|
||||
return $this->retryFailed;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('scope', $value)) {
|
||||
$this->_usedProperties['scope'] = true;
|
||||
$this->scope = $value['scope'];
|
||||
unset($value['scope']);
|
||||
}
|
||||
|
||||
if (array_key_exists('base_uri', $value)) {
|
||||
$this->_usedProperties['baseUri'] = true;
|
||||
$this->baseUri = $value['base_uri'];
|
||||
unset($value['base_uri']);
|
||||
}
|
||||
|
||||
if (array_key_exists('auth_basic', $value)) {
|
||||
$this->_usedProperties['authBasic'] = true;
|
||||
$this->authBasic = $value['auth_basic'];
|
||||
unset($value['auth_basic']);
|
||||
}
|
||||
|
||||
if (array_key_exists('auth_bearer', $value)) {
|
||||
$this->_usedProperties['authBearer'] = true;
|
||||
$this->authBearer = $value['auth_bearer'];
|
||||
unset($value['auth_bearer']);
|
||||
}
|
||||
|
||||
if (array_key_exists('auth_ntlm', $value)) {
|
||||
$this->_usedProperties['authNtlm'] = true;
|
||||
$this->authNtlm = $value['auth_ntlm'];
|
||||
unset($value['auth_ntlm']);
|
||||
}
|
||||
|
||||
if (array_key_exists('query', $value)) {
|
||||
$this->_usedProperties['query'] = true;
|
||||
$this->query = $value['query'];
|
||||
unset($value['query']);
|
||||
}
|
||||
|
||||
if (array_key_exists('headers', $value)) {
|
||||
$this->_usedProperties['headers'] = true;
|
||||
$this->headers = $value['headers'];
|
||||
unset($value['headers']);
|
||||
}
|
||||
|
||||
if (array_key_exists('max_redirects', $value)) {
|
||||
$this->_usedProperties['maxRedirects'] = true;
|
||||
$this->maxRedirects = $value['max_redirects'];
|
||||
unset($value['max_redirects']);
|
||||
}
|
||||
|
||||
if (array_key_exists('http_version', $value)) {
|
||||
$this->_usedProperties['httpVersion'] = true;
|
||||
$this->httpVersion = $value['http_version'];
|
||||
unset($value['http_version']);
|
||||
}
|
||||
|
||||
if (array_key_exists('resolve', $value)) {
|
||||
$this->_usedProperties['resolve'] = true;
|
||||
$this->resolve = $value['resolve'];
|
||||
unset($value['resolve']);
|
||||
}
|
||||
|
||||
if (array_key_exists('proxy', $value)) {
|
||||
$this->_usedProperties['proxy'] = true;
|
||||
$this->proxy = $value['proxy'];
|
||||
unset($value['proxy']);
|
||||
}
|
||||
|
||||
if (array_key_exists('no_proxy', $value)) {
|
||||
$this->_usedProperties['noProxy'] = true;
|
||||
$this->noProxy = $value['no_proxy'];
|
||||
unset($value['no_proxy']);
|
||||
}
|
||||
|
||||
if (array_key_exists('timeout', $value)) {
|
||||
$this->_usedProperties['timeout'] = true;
|
||||
$this->timeout = $value['timeout'];
|
||||
unset($value['timeout']);
|
||||
}
|
||||
|
||||
if (array_key_exists('max_duration', $value)) {
|
||||
$this->_usedProperties['maxDuration'] = true;
|
||||
$this->maxDuration = $value['max_duration'];
|
||||
unset($value['max_duration']);
|
||||
}
|
||||
|
||||
if (array_key_exists('bindto', $value)) {
|
||||
$this->_usedProperties['bindto'] = true;
|
||||
$this->bindto = $value['bindto'];
|
||||
unset($value['bindto']);
|
||||
}
|
||||
|
||||
if (array_key_exists('verify_peer', $value)) {
|
||||
$this->_usedProperties['verifyPeer'] = true;
|
||||
$this->verifyPeer = $value['verify_peer'];
|
||||
unset($value['verify_peer']);
|
||||
}
|
||||
|
||||
if (array_key_exists('verify_host', $value)) {
|
||||
$this->_usedProperties['verifyHost'] = true;
|
||||
$this->verifyHost = $value['verify_host'];
|
||||
unset($value['verify_host']);
|
||||
}
|
||||
|
||||
if (array_key_exists('cafile', $value)) {
|
||||
$this->_usedProperties['cafile'] = true;
|
||||
$this->cafile = $value['cafile'];
|
||||
unset($value['cafile']);
|
||||
}
|
||||
|
||||
if (array_key_exists('capath', $value)) {
|
||||
$this->_usedProperties['capath'] = true;
|
||||
$this->capath = $value['capath'];
|
||||
unset($value['capath']);
|
||||
}
|
||||
|
||||
if (array_key_exists('local_cert', $value)) {
|
||||
$this->_usedProperties['localCert'] = true;
|
||||
$this->localCert = $value['local_cert'];
|
||||
unset($value['local_cert']);
|
||||
}
|
||||
|
||||
if (array_key_exists('local_pk', $value)) {
|
||||
$this->_usedProperties['localPk'] = true;
|
||||
$this->localPk = $value['local_pk'];
|
||||
unset($value['local_pk']);
|
||||
}
|
||||
|
||||
if (array_key_exists('passphrase', $value)) {
|
||||
$this->_usedProperties['passphrase'] = true;
|
||||
$this->passphrase = $value['passphrase'];
|
||||
unset($value['passphrase']);
|
||||
}
|
||||
|
||||
if (array_key_exists('ciphers', $value)) {
|
||||
$this->_usedProperties['ciphers'] = true;
|
||||
$this->ciphers = $value['ciphers'];
|
||||
unset($value['ciphers']);
|
||||
}
|
||||
|
||||
if (array_key_exists('peer_fingerprint', $value)) {
|
||||
$this->_usedProperties['peerFingerprint'] = true;
|
||||
$this->peerFingerprint = new \Symfony\Config\Framework\HttpClient\ScopedClientConfig\PeerFingerprintConfig($value['peer_fingerprint']);
|
||||
unset($value['peer_fingerprint']);
|
||||
}
|
||||
|
||||
if (array_key_exists('crypto_method', $value)) {
|
||||
$this->_usedProperties['cryptoMethod'] = true;
|
||||
$this->cryptoMethod = $value['crypto_method'];
|
||||
unset($value['crypto_method']);
|
||||
}
|
||||
|
||||
if (array_key_exists('extra', $value)) {
|
||||
$this->_usedProperties['extra'] = true;
|
||||
$this->extra = $value['extra'];
|
||||
unset($value['extra']);
|
||||
}
|
||||
|
||||
if (array_key_exists('rate_limiter', $value)) {
|
||||
$this->_usedProperties['rateLimiter'] = true;
|
||||
$this->rateLimiter = $value['rate_limiter'];
|
||||
unset($value['rate_limiter']);
|
||||
}
|
||||
|
||||
if (array_key_exists('retry_failed', $value)) {
|
||||
$this->_usedProperties['retryFailed'] = true;
|
||||
$this->retryFailed = \is_array($value['retry_failed']) ? new \Symfony\Config\Framework\HttpClient\ScopedClientConfig\RetryFailedConfig($value['retry_failed']) : $value['retry_failed'];
|
||||
unset($value['retry_failed']);
|
||||
}
|
||||
|
||||
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['scope'])) {
|
||||
$output['scope'] = $this->scope;
|
||||
}
|
||||
if (isset($this->_usedProperties['baseUri'])) {
|
||||
$output['base_uri'] = $this->baseUri;
|
||||
}
|
||||
if (isset($this->_usedProperties['authBasic'])) {
|
||||
$output['auth_basic'] = $this->authBasic;
|
||||
}
|
||||
if (isset($this->_usedProperties['authBearer'])) {
|
||||
$output['auth_bearer'] = $this->authBearer;
|
||||
}
|
||||
if (isset($this->_usedProperties['authNtlm'])) {
|
||||
$output['auth_ntlm'] = $this->authNtlm;
|
||||
}
|
||||
if (isset($this->_usedProperties['query'])) {
|
||||
$output['query'] = $this->query;
|
||||
}
|
||||
if (isset($this->_usedProperties['headers'])) {
|
||||
$output['headers'] = $this->headers;
|
||||
}
|
||||
if (isset($this->_usedProperties['maxRedirects'])) {
|
||||
$output['max_redirects'] = $this->maxRedirects;
|
||||
}
|
||||
if (isset($this->_usedProperties['httpVersion'])) {
|
||||
$output['http_version'] = $this->httpVersion;
|
||||
}
|
||||
if (isset($this->_usedProperties['resolve'])) {
|
||||
$output['resolve'] = $this->resolve;
|
||||
}
|
||||
if (isset($this->_usedProperties['proxy'])) {
|
||||
$output['proxy'] = $this->proxy;
|
||||
}
|
||||
if (isset($this->_usedProperties['noProxy'])) {
|
||||
$output['no_proxy'] = $this->noProxy;
|
||||
}
|
||||
if (isset($this->_usedProperties['timeout'])) {
|
||||
$output['timeout'] = $this->timeout;
|
||||
}
|
||||
if (isset($this->_usedProperties['maxDuration'])) {
|
||||
$output['max_duration'] = $this->maxDuration;
|
||||
}
|
||||
if (isset($this->_usedProperties['bindto'])) {
|
||||
$output['bindto'] = $this->bindto;
|
||||
}
|
||||
if (isset($this->_usedProperties['verifyPeer'])) {
|
||||
$output['verify_peer'] = $this->verifyPeer;
|
||||
}
|
||||
if (isset($this->_usedProperties['verifyHost'])) {
|
||||
$output['verify_host'] = $this->verifyHost;
|
||||
}
|
||||
if (isset($this->_usedProperties['cafile'])) {
|
||||
$output['cafile'] = $this->cafile;
|
||||
}
|
||||
if (isset($this->_usedProperties['capath'])) {
|
||||
$output['capath'] = $this->capath;
|
||||
}
|
||||
if (isset($this->_usedProperties['localCert'])) {
|
||||
$output['local_cert'] = $this->localCert;
|
||||
}
|
||||
if (isset($this->_usedProperties['localPk'])) {
|
||||
$output['local_pk'] = $this->localPk;
|
||||
}
|
||||
if (isset($this->_usedProperties['passphrase'])) {
|
||||
$output['passphrase'] = $this->passphrase;
|
||||
}
|
||||
if (isset($this->_usedProperties['ciphers'])) {
|
||||
$output['ciphers'] = $this->ciphers;
|
||||
}
|
||||
if (isset($this->_usedProperties['peerFingerprint'])) {
|
||||
$output['peer_fingerprint'] = $this->peerFingerprint->toArray();
|
||||
}
|
||||
if (isset($this->_usedProperties['cryptoMethod'])) {
|
||||
$output['crypto_method'] = $this->cryptoMethod;
|
||||
}
|
||||
if (isset($this->_usedProperties['extra'])) {
|
||||
$output['extra'] = $this->extra;
|
||||
}
|
||||
if (isset($this->_usedProperties['rateLimiter'])) {
|
||||
$output['rate_limiter'] = $this->rateLimiter;
|
||||
}
|
||||
if (isset($this->_usedProperties['retryFailed'])) {
|
||||
$output['retry_failed'] = $this->retryFailed instanceof \Symfony\Config\Framework\HttpClient\ScopedClientConfig\RetryFailedConfig ? $this->retryFailed->toArray() : $this->retryFailed;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
101
var/cache/dev/Symfony/Config/Framework/HttpClient/ScopedClientConfig/PeerFingerprintConfig.php
vendored
Normal file
101
var/cache/dev/Symfony/Config/Framework/HttpClient/ScopedClientConfig/PeerFingerprintConfig.php
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\HttpClient\ScopedClientConfig;
|
||||
|
||||
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 PeerFingerprintConfig
|
||||
{
|
||||
private $sha1;
|
||||
private $pinsha256;
|
||||
private $md5;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function sha1(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['sha1'] = true;
|
||||
$this->sha1 = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function pinsha256(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['pinsha256'] = true;
|
||||
$this->pinsha256 = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function md5(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['md5'] = true;
|
||||
$this->md5 = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('sha1', $value)) {
|
||||
$this->_usedProperties['sha1'] = true;
|
||||
$this->sha1 = $value['sha1'];
|
||||
unset($value['sha1']);
|
||||
}
|
||||
|
||||
if (array_key_exists('pin-sha256', $value)) {
|
||||
$this->_usedProperties['pinsha256'] = true;
|
||||
$this->pinsha256 = $value['pin-sha256'];
|
||||
unset($value['pin-sha256']);
|
||||
}
|
||||
|
||||
if (array_key_exists('md5', $value)) {
|
||||
$this->_usedProperties['md5'] = true;
|
||||
$this->md5 = $value['md5'];
|
||||
unset($value['md5']);
|
||||
}
|
||||
|
||||
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['sha1'])) {
|
||||
$output['sha1'] = $this->sha1;
|
||||
}
|
||||
if (isset($this->_usedProperties['pinsha256'])) {
|
||||
$output['pin-sha256'] = $this->pinsha256;
|
||||
}
|
||||
if (isset($this->_usedProperties['md5'])) {
|
||||
$output['md5'] = $this->md5;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\HttpClient\ScopedClientConfig\RetryFailed;
|
||||
|
||||
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 HttpCodeConfig
|
||||
{
|
||||
private $code;
|
||||
private $methods;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function code($value): static
|
||||
{
|
||||
$this->_usedProperties['code'] = true;
|
||||
$this->code = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function methods(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['methods'] = true;
|
||||
$this->methods = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('code', $value)) {
|
||||
$this->_usedProperties['code'] = true;
|
||||
$this->code = $value['code'];
|
||||
unset($value['code']);
|
||||
}
|
||||
|
||||
if (array_key_exists('methods', $value)) {
|
||||
$this->_usedProperties['methods'] = true;
|
||||
$this->methods = $value['methods'];
|
||||
unset($value['methods']);
|
||||
}
|
||||
|
||||
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['code'])) {
|
||||
$output['code'] = $this->code;
|
||||
}
|
||||
if (isset($this->_usedProperties['methods'])) {
|
||||
$output['methods'] = $this->methods;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
222
var/cache/dev/Symfony/Config/Framework/HttpClient/ScopedClientConfig/RetryFailedConfig.php
vendored
Normal file
222
var/cache/dev/Symfony/Config/Framework/HttpClient/ScopedClientConfig/RetryFailedConfig.php
vendored
Normal file
@@ -0,0 +1,222 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\HttpClient\ScopedClientConfig;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'RetryFailed'.\DIRECTORY_SEPARATOR.'HttpCodeConfig.php';
|
||||
|
||||
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 RetryFailedConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $retryStrategy;
|
||||
private $httpCodes;
|
||||
private $maxRetries;
|
||||
private $delay;
|
||||
private $multiplier;
|
||||
private $maxDelay;
|
||||
private $jitter;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* service id to override the retry strategy.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function retryStrategy($value): static
|
||||
{
|
||||
$this->_usedProperties['retryStrategy'] = true;
|
||||
$this->retryStrategy = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A list of HTTP status code that triggers a retry.
|
||||
*/
|
||||
public function httpCode(string $code, array $value = []): \Symfony\Config\Framework\HttpClient\ScopedClientConfig\RetryFailed\HttpCodeConfig
|
||||
{
|
||||
if (!isset($this->httpCodes[$code])) {
|
||||
$this->_usedProperties['httpCodes'] = true;
|
||||
$this->httpCodes[$code] = new \Symfony\Config\Framework\HttpClient\ScopedClientConfig\RetryFailed\HttpCodeConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "httpCode()" has already been initialized. You cannot pass values the second time you call httpCode().');
|
||||
}
|
||||
|
||||
return $this->httpCodes[$code];
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 3
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxRetries($value): static
|
||||
{
|
||||
$this->_usedProperties['maxRetries'] = true;
|
||||
$this->maxRetries = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Time in ms to delay (or the initial value when multiplier is used).
|
||||
* @default 1000
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function delay($value): static
|
||||
{
|
||||
$this->_usedProperties['delay'] = true;
|
||||
$this->delay = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* If greater than 1, delay will grow exponentially for each retry: delay * (multiple ^ retries).
|
||||
* @default 2
|
||||
* @param ParamConfigurator|float $value
|
||||
* @return $this
|
||||
*/
|
||||
public function multiplier($value): static
|
||||
{
|
||||
$this->_usedProperties['multiplier'] = true;
|
||||
$this->multiplier = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Max time in ms that a retry should ever be delayed (0 = infinite).
|
||||
* @default 0
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxDelay($value): static
|
||||
{
|
||||
$this->_usedProperties['maxDelay'] = true;
|
||||
$this->maxDelay = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Randomness in percent (between 0 and 1) to apply to the delay.
|
||||
* @default 0.1
|
||||
* @param ParamConfigurator|float $value
|
||||
* @return $this
|
||||
*/
|
||||
public function jitter($value): static
|
||||
{
|
||||
$this->_usedProperties['jitter'] = true;
|
||||
$this->jitter = $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 (array_key_exists('retry_strategy', $value)) {
|
||||
$this->_usedProperties['retryStrategy'] = true;
|
||||
$this->retryStrategy = $value['retry_strategy'];
|
||||
unset($value['retry_strategy']);
|
||||
}
|
||||
|
||||
if (array_key_exists('http_codes', $value)) {
|
||||
$this->_usedProperties['httpCodes'] = true;
|
||||
$this->httpCodes = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Framework\HttpClient\ScopedClientConfig\RetryFailed\HttpCodeConfig($v) : $v, $value['http_codes']);
|
||||
unset($value['http_codes']);
|
||||
}
|
||||
|
||||
if (array_key_exists('max_retries', $value)) {
|
||||
$this->_usedProperties['maxRetries'] = true;
|
||||
$this->maxRetries = $value['max_retries'];
|
||||
unset($value['max_retries']);
|
||||
}
|
||||
|
||||
if (array_key_exists('delay', $value)) {
|
||||
$this->_usedProperties['delay'] = true;
|
||||
$this->delay = $value['delay'];
|
||||
unset($value['delay']);
|
||||
}
|
||||
|
||||
if (array_key_exists('multiplier', $value)) {
|
||||
$this->_usedProperties['multiplier'] = true;
|
||||
$this->multiplier = $value['multiplier'];
|
||||
unset($value['multiplier']);
|
||||
}
|
||||
|
||||
if (array_key_exists('max_delay', $value)) {
|
||||
$this->_usedProperties['maxDelay'] = true;
|
||||
$this->maxDelay = $value['max_delay'];
|
||||
unset($value['max_delay']);
|
||||
}
|
||||
|
||||
if (array_key_exists('jitter', $value)) {
|
||||
$this->_usedProperties['jitter'] = true;
|
||||
$this->jitter = $value['jitter'];
|
||||
unset($value['jitter']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['retryStrategy'])) {
|
||||
$output['retry_strategy'] = $this->retryStrategy;
|
||||
}
|
||||
if (isset($this->_usedProperties['httpCodes'])) {
|
||||
$output['http_codes'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Framework\HttpClient\ScopedClientConfig\RetryFailed\HttpCodeConfig ? $v->toArray() : $v, $this->httpCodes);
|
||||
}
|
||||
if (isset($this->_usedProperties['maxRetries'])) {
|
||||
$output['max_retries'] = $this->maxRetries;
|
||||
}
|
||||
if (isset($this->_usedProperties['delay'])) {
|
||||
$output['delay'] = $this->delay;
|
||||
}
|
||||
if (isset($this->_usedProperties['multiplier'])) {
|
||||
$output['multiplier'] = $this->multiplier;
|
||||
}
|
||||
if (isset($this->_usedProperties['maxDelay'])) {
|
||||
$output['max_delay'] = $this->maxDelay;
|
||||
}
|
||||
if (isset($this->_usedProperties['jitter'])) {
|
||||
$output['jitter'] = $this->jitter;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
160
var/cache/dev/Symfony/Config/Framework/HttpClientConfig.php
vendored
Normal file
160
var/cache/dev/Symfony/Config/Framework/HttpClientConfig.php
vendored
Normal file
@@ -0,0 +1,160 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'HttpClient'.\DIRECTORY_SEPARATOR.'DefaultOptionsConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'HttpClient'.\DIRECTORY_SEPARATOR.'ScopedClientConfig.php';
|
||||
|
||||
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 HttpClientConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $maxHostConnections;
|
||||
private $defaultOptions;
|
||||
private $mockResponseFactory;
|
||||
private $scopedClients;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The maximum number of connections to a single host.
|
||||
* @default null
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxHostConnections($value): static
|
||||
{
|
||||
$this->_usedProperties['maxHostConnections'] = true;
|
||||
$this->maxHostConnections = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function defaultOptions(array $value = []): \Symfony\Config\Framework\HttpClient\DefaultOptionsConfig
|
||||
{
|
||||
if (null === $this->defaultOptions) {
|
||||
$this->_usedProperties['defaultOptions'] = true;
|
||||
$this->defaultOptions = new \Symfony\Config\Framework\HttpClient\DefaultOptionsConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "defaultOptions()" has already been initialized. You cannot pass values the second time you call defaultOptions().');
|
||||
}
|
||||
|
||||
return $this->defaultOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* The id of the service that should generate mock responses. It should be either an invokable or an iterable.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function mockResponseFactory($value): static
|
||||
{
|
||||
$this->_usedProperties['mockResponseFactory'] = true;
|
||||
$this->mockResponseFactory = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Framework\HttpClient\ScopedClientConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Framework\HttpClient\ScopedClientConfig : static)
|
||||
*/
|
||||
public function scopedClient(string $name, mixed $value = []): \Symfony\Config\Framework\HttpClient\ScopedClientConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['scopedClients'] = true;
|
||||
$this->scopedClients[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!isset($this->scopedClients[$name]) || !$this->scopedClients[$name] instanceof \Symfony\Config\Framework\HttpClient\ScopedClientConfig) {
|
||||
$this->_usedProperties['scopedClients'] = true;
|
||||
$this->scopedClients[$name] = new \Symfony\Config\Framework\HttpClient\ScopedClientConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "scopedClient()" has already been initialized. You cannot pass values the second time you call scopedClient().');
|
||||
}
|
||||
|
||||
return $this->scopedClients[$name];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('max_host_connections', $value)) {
|
||||
$this->_usedProperties['maxHostConnections'] = true;
|
||||
$this->maxHostConnections = $value['max_host_connections'];
|
||||
unset($value['max_host_connections']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_options', $value)) {
|
||||
$this->_usedProperties['defaultOptions'] = true;
|
||||
$this->defaultOptions = new \Symfony\Config\Framework\HttpClient\DefaultOptionsConfig($value['default_options']);
|
||||
unset($value['default_options']);
|
||||
}
|
||||
|
||||
if (array_key_exists('mock_response_factory', $value)) {
|
||||
$this->_usedProperties['mockResponseFactory'] = true;
|
||||
$this->mockResponseFactory = $value['mock_response_factory'];
|
||||
unset($value['mock_response_factory']);
|
||||
}
|
||||
|
||||
if (array_key_exists('scoped_clients', $value)) {
|
||||
$this->_usedProperties['scopedClients'] = true;
|
||||
$this->scopedClients = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Framework\HttpClient\ScopedClientConfig($v) : $v, $value['scoped_clients']);
|
||||
unset($value['scoped_clients']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['maxHostConnections'])) {
|
||||
$output['max_host_connections'] = $this->maxHostConnections;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultOptions'])) {
|
||||
$output['default_options'] = $this->defaultOptions->toArray();
|
||||
}
|
||||
if (isset($this->_usedProperties['mockResponseFactory'])) {
|
||||
$output['mock_response_factory'] = $this->mockResponseFactory;
|
||||
}
|
||||
if (isset($this->_usedProperties['scopedClients'])) {
|
||||
$output['scoped_clients'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Framework\HttpClient\ScopedClientConfig ? $v->toArray() : $v, $this->scopedClients);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Framework/JsonStreamerConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Framework/JsonStreamerConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 JsonStreamerConfig
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
73
var/cache/dev/Symfony/Config/Framework/LockConfig.php
vendored
Normal file
73
var/cache/dev/Symfony/Config/Framework/LockConfig.php
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 LockConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $resources;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function resource(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['resources'] = true;
|
||||
$this->resources[$name] = $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 (array_key_exists('resources', $value)) {
|
||||
$this->_usedProperties['resources'] = true;
|
||||
$this->resources = $value['resources'];
|
||||
unset($value['resources']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['resources'])) {
|
||||
$output['resources'] = $this->resources;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
163
var/cache/dev/Symfony/Config/Framework/Mailer/DkimSignerConfig.php
vendored
Normal file
163
var/cache/dev/Symfony/Config/Framework/Mailer/DkimSignerConfig.php
vendored
Normal file
@@ -0,0 +1,163 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Mailer;
|
||||
|
||||
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 DkimSignerConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $key;
|
||||
private $domain;
|
||||
private $select;
|
||||
private $passphrase;
|
||||
private $options;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Key content, or path to key (in PEM format with the `file://` prefix)
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function key($value): static
|
||||
{
|
||||
$this->_usedProperties['key'] = true;
|
||||
$this->key = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function domain($value): static
|
||||
{
|
||||
$this->_usedProperties['domain'] = true;
|
||||
$this->domain = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function select($value): static
|
||||
{
|
||||
$this->_usedProperties['select'] = true;
|
||||
$this->select = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The private key passphrase
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function passphrase($value): static
|
||||
{
|
||||
$this->_usedProperties['passphrase'] = true;
|
||||
$this->passphrase = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function option(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['options'] = true;
|
||||
$this->options[$name] = $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 (array_key_exists('key', $value)) {
|
||||
$this->_usedProperties['key'] = true;
|
||||
$this->key = $value['key'];
|
||||
unset($value['key']);
|
||||
}
|
||||
|
||||
if (array_key_exists('domain', $value)) {
|
||||
$this->_usedProperties['domain'] = true;
|
||||
$this->domain = $value['domain'];
|
||||
unset($value['domain']);
|
||||
}
|
||||
|
||||
if (array_key_exists('select', $value)) {
|
||||
$this->_usedProperties['select'] = true;
|
||||
$this->select = $value['select'];
|
||||
unset($value['select']);
|
||||
}
|
||||
|
||||
if (array_key_exists('passphrase', $value)) {
|
||||
$this->_usedProperties['passphrase'] = true;
|
||||
$this->passphrase = $value['passphrase'];
|
||||
unset($value['passphrase']);
|
||||
}
|
||||
|
||||
if (array_key_exists('options', $value)) {
|
||||
$this->_usedProperties['options'] = true;
|
||||
$this->options = $value['options'];
|
||||
unset($value['options']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['key'])) {
|
||||
$output['key'] = $this->key;
|
||||
}
|
||||
if (isset($this->_usedProperties['domain'])) {
|
||||
$output['domain'] = $this->domain;
|
||||
}
|
||||
if (isset($this->_usedProperties['select'])) {
|
||||
$output['select'] = $this->select;
|
||||
}
|
||||
if (isset($this->_usedProperties['passphrase'])) {
|
||||
$output['passphrase'] = $this->passphrase;
|
||||
}
|
||||
if (isset($this->_usedProperties['options'])) {
|
||||
$output['options'] = $this->options;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
98
var/cache/dev/Symfony/Config/Framework/Mailer/EnvelopeConfig.php
vendored
Normal file
98
var/cache/dev/Symfony/Config/Framework/Mailer/EnvelopeConfig.php
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Mailer;
|
||||
|
||||
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 EnvelopeConfig
|
||||
{
|
||||
private $sender;
|
||||
private $recipients;
|
||||
private $allowedRecipients;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function sender($value): static
|
||||
{
|
||||
$this->_usedProperties['sender'] = true;
|
||||
$this->sender = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function recipients(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['recipients'] = true;
|
||||
$this->recipients = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function allowedRecipients(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['allowedRecipients'] = true;
|
||||
$this->allowedRecipients = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('sender', $value)) {
|
||||
$this->_usedProperties['sender'] = true;
|
||||
$this->sender = $value['sender'];
|
||||
unset($value['sender']);
|
||||
}
|
||||
|
||||
if (array_key_exists('recipients', $value)) {
|
||||
$this->_usedProperties['recipients'] = true;
|
||||
$this->recipients = $value['recipients'];
|
||||
unset($value['recipients']);
|
||||
}
|
||||
|
||||
if (array_key_exists('allowed_recipients', $value)) {
|
||||
$this->_usedProperties['allowedRecipients'] = true;
|
||||
$this->allowedRecipients = $value['allowed_recipients'];
|
||||
unset($value['allowed_recipients']);
|
||||
}
|
||||
|
||||
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['sender'])) {
|
||||
$output['sender'] = $this->sender;
|
||||
}
|
||||
if (isset($this->_usedProperties['recipients'])) {
|
||||
$output['recipients'] = $this->recipients;
|
||||
}
|
||||
if (isset($this->_usedProperties['allowedRecipients'])) {
|
||||
$output['allowed_recipients'] = $this->allowedRecipients;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
53
var/cache/dev/Symfony/Config/Framework/Mailer/HeaderConfig.php
vendored
Normal file
53
var/cache/dev/Symfony/Config/Framework/Mailer/HeaderConfig.php
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Mailer;
|
||||
|
||||
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 HeaderConfig
|
||||
{
|
||||
private $value;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function value(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['value'] = true;
|
||||
$this->value = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('value', $value)) {
|
||||
$this->_usedProperties['value'] = true;
|
||||
$this->value = $value['value'];
|
||||
unset($value['value']);
|
||||
}
|
||||
|
||||
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['value'])) {
|
||||
$output['value'] = $this->value;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
99
var/cache/dev/Symfony/Config/Framework/Mailer/SmimeEncrypterConfig.php
vendored
Normal file
99
var/cache/dev/Symfony/Config/Framework/Mailer/SmimeEncrypterConfig.php
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Mailer;
|
||||
|
||||
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 SmimeEncrypterConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $repository;
|
||||
private $cipher;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* S/MIME certificate repository service. This service shall implement the `Symfony\Component\Mailer\EventListener\SmimeCertificateRepositoryInterface`.
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function repository($value): static
|
||||
{
|
||||
$this->_usedProperties['repository'] = true;
|
||||
$this->repository = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A set of algorithms used to encrypt the message
|
||||
* @default null
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function cipher($value): static
|
||||
{
|
||||
$this->_usedProperties['cipher'] = true;
|
||||
$this->cipher = $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 (array_key_exists('repository', $value)) {
|
||||
$this->_usedProperties['repository'] = true;
|
||||
$this->repository = $value['repository'];
|
||||
unset($value['repository']);
|
||||
}
|
||||
|
||||
if (array_key_exists('cipher', $value)) {
|
||||
$this->_usedProperties['cipher'] = true;
|
||||
$this->cipher = $value['cipher'];
|
||||
unset($value['cipher']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['repository'])) {
|
||||
$output['repository'] = $this->repository;
|
||||
}
|
||||
if (isset($this->_usedProperties['cipher'])) {
|
||||
$output['cipher'] = $this->cipher;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
168
var/cache/dev/Symfony/Config/Framework/Mailer/SmimeSignerConfig.php
vendored
Normal file
168
var/cache/dev/Symfony/Config/Framework/Mailer/SmimeSignerConfig.php
vendored
Normal file
@@ -0,0 +1,168 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Mailer;
|
||||
|
||||
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 SmimeSignerConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $key;
|
||||
private $certificate;
|
||||
private $passphrase;
|
||||
private $extraCertificates;
|
||||
private $signOptions;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Path to key (in PEM format)
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function key($value): static
|
||||
{
|
||||
$this->_usedProperties['key'] = true;
|
||||
$this->key = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Path to certificate (in PEM format without the `file://` prefix)
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function certificate($value): static
|
||||
{
|
||||
$this->_usedProperties['certificate'] = true;
|
||||
$this->certificate = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The private key passphrase
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function passphrase($value): static
|
||||
{
|
||||
$this->_usedProperties['passphrase'] = true;
|
||||
$this->passphrase = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function extraCertificates($value): static
|
||||
{
|
||||
$this->_usedProperties['extraCertificates'] = true;
|
||||
$this->extraCertificates = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function signOptions($value): static
|
||||
{
|
||||
$this->_usedProperties['signOptions'] = true;
|
||||
$this->signOptions = $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 (array_key_exists('key', $value)) {
|
||||
$this->_usedProperties['key'] = true;
|
||||
$this->key = $value['key'];
|
||||
unset($value['key']);
|
||||
}
|
||||
|
||||
if (array_key_exists('certificate', $value)) {
|
||||
$this->_usedProperties['certificate'] = true;
|
||||
$this->certificate = $value['certificate'];
|
||||
unset($value['certificate']);
|
||||
}
|
||||
|
||||
if (array_key_exists('passphrase', $value)) {
|
||||
$this->_usedProperties['passphrase'] = true;
|
||||
$this->passphrase = $value['passphrase'];
|
||||
unset($value['passphrase']);
|
||||
}
|
||||
|
||||
if (array_key_exists('extra_certificates', $value)) {
|
||||
$this->_usedProperties['extraCertificates'] = true;
|
||||
$this->extraCertificates = $value['extra_certificates'];
|
||||
unset($value['extra_certificates']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sign_options', $value)) {
|
||||
$this->_usedProperties['signOptions'] = true;
|
||||
$this->signOptions = $value['sign_options'];
|
||||
unset($value['sign_options']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['key'])) {
|
||||
$output['key'] = $this->key;
|
||||
}
|
||||
if (isset($this->_usedProperties['certificate'])) {
|
||||
$output['certificate'] = $this->certificate;
|
||||
}
|
||||
if (isset($this->_usedProperties['passphrase'])) {
|
||||
$output['passphrase'] = $this->passphrase;
|
||||
}
|
||||
if (isset($this->_usedProperties['extraCertificates'])) {
|
||||
$output['extra_certificates'] = $this->extraCertificates;
|
||||
}
|
||||
if (isset($this->_usedProperties['signOptions'])) {
|
||||
$output['sign_options'] = $this->signOptions;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
264
var/cache/dev/Symfony/Config/Framework/MailerConfig.php
vendored
Normal file
264
var/cache/dev/Symfony/Config/Framework/MailerConfig.php
vendored
Normal file
@@ -0,0 +1,264 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Mailer'.\DIRECTORY_SEPARATOR.'EnvelopeConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Mailer'.\DIRECTORY_SEPARATOR.'HeaderConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Mailer'.\DIRECTORY_SEPARATOR.'DkimSignerConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Mailer'.\DIRECTORY_SEPARATOR.'SmimeSignerConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Mailer'.\DIRECTORY_SEPARATOR.'SmimeEncrypterConfig.php';
|
||||
|
||||
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 MailerConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $messageBus;
|
||||
private $dsn;
|
||||
private $transports;
|
||||
private $envelope;
|
||||
private $headers;
|
||||
private $dkimSigner;
|
||||
private $smimeSigner;
|
||||
private $smimeEncrypter;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The message bus to use. Defaults to the default bus if the Messenger component is installed.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function messageBus($value): static
|
||||
{
|
||||
$this->_usedProperties['messageBus'] = true;
|
||||
$this->messageBus = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function dsn($value): static
|
||||
{
|
||||
$this->_usedProperties['dsn'] = true;
|
||||
$this->dsn = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function transport(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['transports'] = true;
|
||||
$this->transports[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mailer Envelope configuration
|
||||
*/
|
||||
public function envelope(array $value = []): \Symfony\Config\Framework\Mailer\EnvelopeConfig
|
||||
{
|
||||
if (null === $this->envelope) {
|
||||
$this->_usedProperties['envelope'] = true;
|
||||
$this->envelope = new \Symfony\Config\Framework\Mailer\EnvelopeConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "envelope()" has already been initialized. You cannot pass values the second time you call envelope().');
|
||||
}
|
||||
|
||||
return $this->envelope;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Framework\Mailer\HeaderConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Framework\Mailer\HeaderConfig : static)
|
||||
*/
|
||||
public function header(string $name, mixed $value = []): \Symfony\Config\Framework\Mailer\HeaderConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['headers'] = true;
|
||||
$this->headers[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!isset($this->headers[$name]) || !$this->headers[$name] instanceof \Symfony\Config\Framework\Mailer\HeaderConfig) {
|
||||
$this->_usedProperties['headers'] = true;
|
||||
$this->headers[$name] = new \Symfony\Config\Framework\Mailer\HeaderConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "header()" has already been initialized. You cannot pass values the second time you call header().');
|
||||
}
|
||||
|
||||
return $this->headers[$name];
|
||||
}
|
||||
|
||||
/**
|
||||
* DKIM signer configuration
|
||||
* @default {"enabled":false,"key":"","domain":"","select":"","passphrase":"","options":[]}
|
||||
*/
|
||||
public function dkimSigner(array $value = []): \Symfony\Config\Framework\Mailer\DkimSignerConfig
|
||||
{
|
||||
if (null === $this->dkimSigner) {
|
||||
$this->_usedProperties['dkimSigner'] = true;
|
||||
$this->dkimSigner = new \Symfony\Config\Framework\Mailer\DkimSignerConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "dkimSigner()" has already been initialized. You cannot pass values the second time you call dkimSigner().');
|
||||
}
|
||||
|
||||
return $this->dkimSigner;
|
||||
}
|
||||
|
||||
/**
|
||||
* S/MIME signer configuration
|
||||
* @default {"enabled":false,"key":"","certificate":"","passphrase":null,"extra_certificates":null,"sign_options":null}
|
||||
*/
|
||||
public function smimeSigner(array $value = []): \Symfony\Config\Framework\Mailer\SmimeSignerConfig
|
||||
{
|
||||
if (null === $this->smimeSigner) {
|
||||
$this->_usedProperties['smimeSigner'] = true;
|
||||
$this->smimeSigner = new \Symfony\Config\Framework\Mailer\SmimeSignerConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "smimeSigner()" has already been initialized. You cannot pass values the second time you call smimeSigner().');
|
||||
}
|
||||
|
||||
return $this->smimeSigner;
|
||||
}
|
||||
|
||||
/**
|
||||
* S/MIME encrypter configuration
|
||||
* @default {"enabled":false,"repository":"","cipher":null}
|
||||
*/
|
||||
public function smimeEncrypter(array $value = []): \Symfony\Config\Framework\Mailer\SmimeEncrypterConfig
|
||||
{
|
||||
if (null === $this->smimeEncrypter) {
|
||||
$this->_usedProperties['smimeEncrypter'] = true;
|
||||
$this->smimeEncrypter = new \Symfony\Config\Framework\Mailer\SmimeEncrypterConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "smimeEncrypter()" has already been initialized. You cannot pass values the second time you call smimeEncrypter().');
|
||||
}
|
||||
|
||||
return $this->smimeEncrypter;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('message_bus', $value)) {
|
||||
$this->_usedProperties['messageBus'] = true;
|
||||
$this->messageBus = $value['message_bus'];
|
||||
unset($value['message_bus']);
|
||||
}
|
||||
|
||||
if (array_key_exists('dsn', $value)) {
|
||||
$this->_usedProperties['dsn'] = true;
|
||||
$this->dsn = $value['dsn'];
|
||||
unset($value['dsn']);
|
||||
}
|
||||
|
||||
if (array_key_exists('transports', $value)) {
|
||||
$this->_usedProperties['transports'] = true;
|
||||
$this->transports = $value['transports'];
|
||||
unset($value['transports']);
|
||||
}
|
||||
|
||||
if (array_key_exists('envelope', $value)) {
|
||||
$this->_usedProperties['envelope'] = true;
|
||||
$this->envelope = new \Symfony\Config\Framework\Mailer\EnvelopeConfig($value['envelope']);
|
||||
unset($value['envelope']);
|
||||
}
|
||||
|
||||
if (array_key_exists('headers', $value)) {
|
||||
$this->_usedProperties['headers'] = true;
|
||||
$this->headers = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Framework\Mailer\HeaderConfig($v) : $v, $value['headers']);
|
||||
unset($value['headers']);
|
||||
}
|
||||
|
||||
if (array_key_exists('dkim_signer', $value)) {
|
||||
$this->_usedProperties['dkimSigner'] = true;
|
||||
$this->dkimSigner = \is_array($value['dkim_signer']) ? new \Symfony\Config\Framework\Mailer\DkimSignerConfig($value['dkim_signer']) : $value['dkim_signer'];
|
||||
unset($value['dkim_signer']);
|
||||
}
|
||||
|
||||
if (array_key_exists('smime_signer', $value)) {
|
||||
$this->_usedProperties['smimeSigner'] = true;
|
||||
$this->smimeSigner = \is_array($value['smime_signer']) ? new \Symfony\Config\Framework\Mailer\SmimeSignerConfig($value['smime_signer']) : $value['smime_signer'];
|
||||
unset($value['smime_signer']);
|
||||
}
|
||||
|
||||
if (array_key_exists('smime_encrypter', $value)) {
|
||||
$this->_usedProperties['smimeEncrypter'] = true;
|
||||
$this->smimeEncrypter = \is_array($value['smime_encrypter']) ? new \Symfony\Config\Framework\Mailer\SmimeEncrypterConfig($value['smime_encrypter']) : $value['smime_encrypter'];
|
||||
unset($value['smime_encrypter']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['messageBus'])) {
|
||||
$output['message_bus'] = $this->messageBus;
|
||||
}
|
||||
if (isset($this->_usedProperties['dsn'])) {
|
||||
$output['dsn'] = $this->dsn;
|
||||
}
|
||||
if (isset($this->_usedProperties['transports'])) {
|
||||
$output['transports'] = $this->transports;
|
||||
}
|
||||
if (isset($this->_usedProperties['envelope'])) {
|
||||
$output['envelope'] = $this->envelope->toArray();
|
||||
}
|
||||
if (isset($this->_usedProperties['headers'])) {
|
||||
$output['headers'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Framework\Mailer\HeaderConfig ? $v->toArray() : $v, $this->headers);
|
||||
}
|
||||
if (isset($this->_usedProperties['dkimSigner'])) {
|
||||
$output['dkim_signer'] = $this->dkimSigner instanceof \Symfony\Config\Framework\Mailer\DkimSignerConfig ? $this->dkimSigner->toArray() : $this->dkimSigner;
|
||||
}
|
||||
if (isset($this->_usedProperties['smimeSigner'])) {
|
||||
$output['smime_signer'] = $this->smimeSigner instanceof \Symfony\Config\Framework\Mailer\SmimeSignerConfig ? $this->smimeSigner->toArray() : $this->smimeSigner;
|
||||
}
|
||||
if (isset($this->_usedProperties['smimeEncrypter'])) {
|
||||
$output['smime_encrypter'] = $this->smimeEncrypter instanceof \Symfony\Config\Framework\Mailer\SmimeEncrypterConfig ? $this->smimeEncrypter->toArray() : $this->smimeEncrypter;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
95
var/cache/dev/Symfony/Config/Framework/Messenger/BusConfig.php
vendored
Normal file
95
var/cache/dev/Symfony/Config/Framework/Messenger/BusConfig.php
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Messenger;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'BusConfig'.\DIRECTORY_SEPARATOR.'DefaultMiddlewareConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'BusConfig'.\DIRECTORY_SEPARATOR.'MiddlewareConfig.php';
|
||||
|
||||
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
|
||||
|
||||
/**
|
||||
* This class is automatically generated to help in creating a config.
|
||||
*/
|
||||
class BusConfig
|
||||
{
|
||||
private $defaultMiddleware;
|
||||
private $middleware;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @default {"enabled":true,"allow_no_handlers":false,"allow_no_senders":true}
|
||||
* @return \Symfony\Config\Framework\Messenger\BusConfig\DefaultMiddlewareConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Framework\Messenger\BusConfig\DefaultMiddlewareConfig : static)
|
||||
*/
|
||||
public function defaultMiddleware(mixed $value = []): \Symfony\Config\Framework\Messenger\BusConfig\DefaultMiddlewareConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['defaultMiddleware'] = true;
|
||||
$this->defaultMiddleware = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!$this->defaultMiddleware instanceof \Symfony\Config\Framework\Messenger\BusConfig\DefaultMiddlewareConfig) {
|
||||
$this->_usedProperties['defaultMiddleware'] = true;
|
||||
$this->defaultMiddleware = new \Symfony\Config\Framework\Messenger\BusConfig\DefaultMiddlewareConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "defaultMiddleware()" has already been initialized. You cannot pass values the second time you call defaultMiddleware().');
|
||||
}
|
||||
|
||||
return $this->defaultMiddleware;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Framework\Messenger\BusConfig\MiddlewareConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Framework\Messenger\BusConfig\MiddlewareConfig : static)
|
||||
*/
|
||||
public function middleware(mixed $value = []): \Symfony\Config\Framework\Messenger\BusConfig\MiddlewareConfig|static
|
||||
{
|
||||
$this->_usedProperties['middleware'] = true;
|
||||
if (!\is_array($value)) {
|
||||
$this->middleware[] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
return $this->middleware[] = new \Symfony\Config\Framework\Messenger\BusConfig\MiddlewareConfig($value);
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('default_middleware', $value)) {
|
||||
$this->_usedProperties['defaultMiddleware'] = true;
|
||||
$this->defaultMiddleware = \is_array($value['default_middleware']) ? new \Symfony\Config\Framework\Messenger\BusConfig\DefaultMiddlewareConfig($value['default_middleware']) : $value['default_middleware'];
|
||||
unset($value['default_middleware']);
|
||||
}
|
||||
|
||||
if (array_key_exists('middleware', $value)) {
|
||||
$this->_usedProperties['middleware'] = true;
|
||||
$this->middleware = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Framework\Messenger\BusConfig\MiddlewareConfig($v) : $v, $value['middleware']);
|
||||
unset($value['middleware']);
|
||||
}
|
||||
|
||||
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['defaultMiddleware'])) {
|
||||
$output['default_middleware'] = $this->defaultMiddleware instanceof \Symfony\Config\Framework\Messenger\BusConfig\DefaultMiddlewareConfig ? $this->defaultMiddleware->toArray() : $this->defaultMiddleware;
|
||||
}
|
||||
if (isset($this->_usedProperties['middleware'])) {
|
||||
$output['middleware'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Framework\Messenger\BusConfig\MiddlewareConfig ? $v->toArray() : $v, $this->middleware);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
98
var/cache/dev/Symfony/Config/Framework/Messenger/BusConfig/DefaultMiddlewareConfig.php
vendored
Normal file
98
var/cache/dev/Symfony/Config/Framework/Messenger/BusConfig/DefaultMiddlewareConfig.php
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Messenger\BusConfig;
|
||||
|
||||
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 DefaultMiddlewareConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $allowNoHandlers;
|
||||
private $allowNoSenders;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function allowNoHandlers($value): static
|
||||
{
|
||||
$this->_usedProperties['allowNoHandlers'] = true;
|
||||
$this->allowNoHandlers = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function allowNoSenders($value): static
|
||||
{
|
||||
$this->_usedProperties['allowNoSenders'] = true;
|
||||
$this->allowNoSenders = $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 (array_key_exists('allow_no_handlers', $value)) {
|
||||
$this->_usedProperties['allowNoHandlers'] = true;
|
||||
$this->allowNoHandlers = $value['allow_no_handlers'];
|
||||
unset($value['allow_no_handlers']);
|
||||
}
|
||||
|
||||
if (array_key_exists('allow_no_senders', $value)) {
|
||||
$this->_usedProperties['allowNoSenders'] = true;
|
||||
$this->allowNoSenders = $value['allow_no_senders'];
|
||||
unset($value['allow_no_senders']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['allowNoHandlers'])) {
|
||||
$output['allow_no_handlers'] = $this->allowNoHandlers;
|
||||
}
|
||||
if (isset($this->_usedProperties['allowNoSenders'])) {
|
||||
$output['allow_no_senders'] = $this->allowNoSenders;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
75
var/cache/dev/Symfony/Config/Framework/Messenger/BusConfig/MiddlewareConfig.php
vendored
Normal file
75
var/cache/dev/Symfony/Config/Framework/Messenger/BusConfig/MiddlewareConfig.php
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Messenger\BusConfig;
|
||||
|
||||
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 MiddlewareConfig
|
||||
{
|
||||
private $id;
|
||||
private $arguments;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function id($value): static
|
||||
{
|
||||
$this->_usedProperties['id'] = true;
|
||||
$this->id = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function arguments(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['arguments'] = true;
|
||||
$this->arguments = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('id', $value)) {
|
||||
$this->_usedProperties['id'] = true;
|
||||
$this->id = $value['id'];
|
||||
unset($value['id']);
|
||||
}
|
||||
|
||||
if (array_key_exists('arguments', $value)) {
|
||||
$this->_usedProperties['arguments'] = true;
|
||||
$this->arguments = $value['arguments'];
|
||||
unset($value['arguments']);
|
||||
}
|
||||
|
||||
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['id'])) {
|
||||
$output['id'] = $this->id;
|
||||
}
|
||||
if (isset($this->_usedProperties['arguments'])) {
|
||||
$output['arguments'] = $this->arguments;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Framework/Messenger/RoutingConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Framework/Messenger/RoutingConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Messenger;
|
||||
|
||||
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 RoutingConfig
|
||||
{
|
||||
private $senders;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function senders(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['senders'] = true;
|
||||
$this->senders = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('senders', $value)) {
|
||||
$this->_usedProperties['senders'] = true;
|
||||
$this->senders = $value['senders'];
|
||||
unset($value['senders']);
|
||||
}
|
||||
|
||||
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['senders'])) {
|
||||
$output['senders'] = $this->senders;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
74
var/cache/dev/Symfony/Config/Framework/Messenger/Serializer/SymfonySerializerConfig.php
vendored
Normal file
74
var/cache/dev/Symfony/Config/Framework/Messenger/Serializer/SymfonySerializerConfig.php
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Messenger\Serializer;
|
||||
|
||||
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 SymfonySerializerConfig
|
||||
{
|
||||
private $format;
|
||||
private $context;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* Serialization format for the messenger.transport.symfony_serializer service (which is not the serializer used by default).
|
||||
* @default 'json'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function format($value): static
|
||||
{
|
||||
$this->_usedProperties['format'] = true;
|
||||
$this->format = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function context(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['context'] = true;
|
||||
$this->context[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('format', $value)) {
|
||||
$this->_usedProperties['format'] = true;
|
||||
$this->format = $value['format'];
|
||||
unset($value['format']);
|
||||
}
|
||||
|
||||
if (array_key_exists('context', $value)) {
|
||||
$this->_usedProperties['context'] = true;
|
||||
$this->context = $value['context'];
|
||||
unset($value['context']);
|
||||
}
|
||||
|
||||
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['format'])) {
|
||||
$output['format'] = $this->format;
|
||||
}
|
||||
if (isset($this->_usedProperties['context'])) {
|
||||
$output['context'] = $this->context;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
80
var/cache/dev/Symfony/Config/Framework/Messenger/SerializerConfig.php
vendored
Normal file
80
var/cache/dev/Symfony/Config/Framework/Messenger/SerializerConfig.php
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Messenger;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Serializer'.\DIRECTORY_SEPARATOR.'SymfonySerializerConfig.php';
|
||||
|
||||
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 SerializerConfig
|
||||
{
|
||||
private $defaultSerializer;
|
||||
private $symfonySerializer;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* Service id to use as the default serializer for the transports.
|
||||
* @default 'messenger.transport.native_php_serializer'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultSerializer($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultSerializer'] = true;
|
||||
$this->defaultSerializer = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default {"format":"json","context":[]}
|
||||
*/
|
||||
public function symfonySerializer(array $value = []): \Symfony\Config\Framework\Messenger\Serializer\SymfonySerializerConfig
|
||||
{
|
||||
if (null === $this->symfonySerializer) {
|
||||
$this->_usedProperties['symfonySerializer'] = true;
|
||||
$this->symfonySerializer = new \Symfony\Config\Framework\Messenger\Serializer\SymfonySerializerConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "symfonySerializer()" has already been initialized. You cannot pass values the second time you call symfonySerializer().');
|
||||
}
|
||||
|
||||
return $this->symfonySerializer;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('default_serializer', $value)) {
|
||||
$this->_usedProperties['defaultSerializer'] = true;
|
||||
$this->defaultSerializer = $value['default_serializer'];
|
||||
unset($value['default_serializer']);
|
||||
}
|
||||
|
||||
if (array_key_exists('symfony_serializer', $value)) {
|
||||
$this->_usedProperties['symfonySerializer'] = true;
|
||||
$this->symfonySerializer = new \Symfony\Config\Framework\Messenger\Serializer\SymfonySerializerConfig($value['symfony_serializer']);
|
||||
unset($value['symfony_serializer']);
|
||||
}
|
||||
|
||||
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['defaultSerializer'])) {
|
||||
$output['default_serializer'] = $this->defaultSerializer;
|
||||
}
|
||||
if (isset($this->_usedProperties['symfonySerializer'])) {
|
||||
$output['symfony_serializer'] = $this->symfonySerializer->toArray();
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
185
var/cache/dev/Symfony/Config/Framework/Messenger/TransportConfig.php
vendored
Normal file
185
var/cache/dev/Symfony/Config/Framework/Messenger/TransportConfig.php
vendored
Normal file
@@ -0,0 +1,185 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Messenger;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'TransportConfig'.\DIRECTORY_SEPARATOR.'RetryStrategyConfig.php';
|
||||
|
||||
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 TransportConfig
|
||||
{
|
||||
private $dsn;
|
||||
private $serializer;
|
||||
private $options;
|
||||
private $failureTransport;
|
||||
private $retryStrategy;
|
||||
private $rateLimiter;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function dsn($value): static
|
||||
{
|
||||
$this->_usedProperties['dsn'] = true;
|
||||
$this->dsn = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Service id of a custom serializer to use.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function serializer($value): static
|
||||
{
|
||||
$this->_usedProperties['serializer'] = true;
|
||||
$this->serializer = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function options(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['options'] = true;
|
||||
$this->options = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Transport name to send failed messages to (after all retries have failed).
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function failureTransport($value): static
|
||||
{
|
||||
$this->_usedProperties['failureTransport'] = true;
|
||||
$this->failureTransport = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @default {"service":null,"max_retries":3,"delay":1000,"multiplier":2,"max_delay":0,"jitter":0.1}
|
||||
* @return \Symfony\Config\Framework\Messenger\TransportConfig\RetryStrategyConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Framework\Messenger\TransportConfig\RetryStrategyConfig : static)
|
||||
*/
|
||||
public function retryStrategy(mixed $value = []): \Symfony\Config\Framework\Messenger\TransportConfig\RetryStrategyConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['retryStrategy'] = true;
|
||||
$this->retryStrategy = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!$this->retryStrategy instanceof \Symfony\Config\Framework\Messenger\TransportConfig\RetryStrategyConfig) {
|
||||
$this->_usedProperties['retryStrategy'] = true;
|
||||
$this->retryStrategy = new \Symfony\Config\Framework\Messenger\TransportConfig\RetryStrategyConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "retryStrategy()" has already been initialized. You cannot pass values the second time you call retryStrategy().');
|
||||
}
|
||||
|
||||
return $this->retryStrategy;
|
||||
}
|
||||
|
||||
/**
|
||||
* Rate limiter name to use when processing messages.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function rateLimiter($value): static
|
||||
{
|
||||
$this->_usedProperties['rateLimiter'] = true;
|
||||
$this->rateLimiter = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('dsn', $value)) {
|
||||
$this->_usedProperties['dsn'] = true;
|
||||
$this->dsn = $value['dsn'];
|
||||
unset($value['dsn']);
|
||||
}
|
||||
|
||||
if (array_key_exists('serializer', $value)) {
|
||||
$this->_usedProperties['serializer'] = true;
|
||||
$this->serializer = $value['serializer'];
|
||||
unset($value['serializer']);
|
||||
}
|
||||
|
||||
if (array_key_exists('options', $value)) {
|
||||
$this->_usedProperties['options'] = true;
|
||||
$this->options = $value['options'];
|
||||
unset($value['options']);
|
||||
}
|
||||
|
||||
if (array_key_exists('failure_transport', $value)) {
|
||||
$this->_usedProperties['failureTransport'] = true;
|
||||
$this->failureTransport = $value['failure_transport'];
|
||||
unset($value['failure_transport']);
|
||||
}
|
||||
|
||||
if (array_key_exists('retry_strategy', $value)) {
|
||||
$this->_usedProperties['retryStrategy'] = true;
|
||||
$this->retryStrategy = \is_array($value['retry_strategy']) ? new \Symfony\Config\Framework\Messenger\TransportConfig\RetryStrategyConfig($value['retry_strategy']) : $value['retry_strategy'];
|
||||
unset($value['retry_strategy']);
|
||||
}
|
||||
|
||||
if (array_key_exists('rate_limiter', $value)) {
|
||||
$this->_usedProperties['rateLimiter'] = true;
|
||||
$this->rateLimiter = $value['rate_limiter'];
|
||||
unset($value['rate_limiter']);
|
||||
}
|
||||
|
||||
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['dsn'])) {
|
||||
$output['dsn'] = $this->dsn;
|
||||
}
|
||||
if (isset($this->_usedProperties['serializer'])) {
|
||||
$output['serializer'] = $this->serializer;
|
||||
}
|
||||
if (isset($this->_usedProperties['options'])) {
|
||||
$output['options'] = $this->options;
|
||||
}
|
||||
if (isset($this->_usedProperties['failureTransport'])) {
|
||||
$output['failure_transport'] = $this->failureTransport;
|
||||
}
|
||||
if (isset($this->_usedProperties['retryStrategy'])) {
|
||||
$output['retry_strategy'] = $this->retryStrategy instanceof \Symfony\Config\Framework\Messenger\TransportConfig\RetryStrategyConfig ? $this->retryStrategy->toArray() : $this->retryStrategy;
|
||||
}
|
||||
if (isset($this->_usedProperties['rateLimiter'])) {
|
||||
$output['rate_limiter'] = $this->rateLimiter;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
172
var/cache/dev/Symfony/Config/Framework/Messenger/TransportConfig/RetryStrategyConfig.php
vendored
Normal file
172
var/cache/dev/Symfony/Config/Framework/Messenger/TransportConfig/RetryStrategyConfig.php
vendored
Normal file
@@ -0,0 +1,172 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Messenger\TransportConfig;
|
||||
|
||||
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 RetryStrategyConfig
|
||||
{
|
||||
private $service;
|
||||
private $maxRetries;
|
||||
private $delay;
|
||||
private $multiplier;
|
||||
private $maxDelay;
|
||||
private $jitter;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* Service id to override the retry strategy entirely.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function service($value): static
|
||||
{
|
||||
$this->_usedProperties['service'] = true;
|
||||
$this->service = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 3
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxRetries($value): static
|
||||
{
|
||||
$this->_usedProperties['maxRetries'] = true;
|
||||
$this->maxRetries = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Time in ms to delay (or the initial value when multiplier is used).
|
||||
* @default 1000
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function delay($value): static
|
||||
{
|
||||
$this->_usedProperties['delay'] = true;
|
||||
$this->delay = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* If greater than 1, delay will grow exponentially for each retry: this delay = (delay * (multiple ^ retries)).
|
||||
* @default 2
|
||||
* @param ParamConfigurator|float $value
|
||||
* @return $this
|
||||
*/
|
||||
public function multiplier($value): static
|
||||
{
|
||||
$this->_usedProperties['multiplier'] = true;
|
||||
$this->multiplier = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Max time in ms that a retry should ever be delayed (0 = infinite).
|
||||
* @default 0
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxDelay($value): static
|
||||
{
|
||||
$this->_usedProperties['maxDelay'] = true;
|
||||
$this->maxDelay = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Randomness to apply to the delay (between 0 and 1).
|
||||
* @default 0.1
|
||||
* @param ParamConfigurator|float $value
|
||||
* @return $this
|
||||
*/
|
||||
public function jitter($value): static
|
||||
{
|
||||
$this->_usedProperties['jitter'] = true;
|
||||
$this->jitter = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('service', $value)) {
|
||||
$this->_usedProperties['service'] = true;
|
||||
$this->service = $value['service'];
|
||||
unset($value['service']);
|
||||
}
|
||||
|
||||
if (array_key_exists('max_retries', $value)) {
|
||||
$this->_usedProperties['maxRetries'] = true;
|
||||
$this->maxRetries = $value['max_retries'];
|
||||
unset($value['max_retries']);
|
||||
}
|
||||
|
||||
if (array_key_exists('delay', $value)) {
|
||||
$this->_usedProperties['delay'] = true;
|
||||
$this->delay = $value['delay'];
|
||||
unset($value['delay']);
|
||||
}
|
||||
|
||||
if (array_key_exists('multiplier', $value)) {
|
||||
$this->_usedProperties['multiplier'] = true;
|
||||
$this->multiplier = $value['multiplier'];
|
||||
unset($value['multiplier']);
|
||||
}
|
||||
|
||||
if (array_key_exists('max_delay', $value)) {
|
||||
$this->_usedProperties['maxDelay'] = true;
|
||||
$this->maxDelay = $value['max_delay'];
|
||||
unset($value['max_delay']);
|
||||
}
|
||||
|
||||
if (array_key_exists('jitter', $value)) {
|
||||
$this->_usedProperties['jitter'] = true;
|
||||
$this->jitter = $value['jitter'];
|
||||
unset($value['jitter']);
|
||||
}
|
||||
|
||||
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['service'])) {
|
||||
$output['service'] = $this->service;
|
||||
}
|
||||
if (isset($this->_usedProperties['maxRetries'])) {
|
||||
$output['max_retries'] = $this->maxRetries;
|
||||
}
|
||||
if (isset($this->_usedProperties['delay'])) {
|
||||
$output['delay'] = $this->delay;
|
||||
}
|
||||
if (isset($this->_usedProperties['multiplier'])) {
|
||||
$output['multiplier'] = $this->multiplier;
|
||||
}
|
||||
if (isset($this->_usedProperties['maxDelay'])) {
|
||||
$output['max_delay'] = $this->maxDelay;
|
||||
}
|
||||
if (isset($this->_usedProperties['jitter'])) {
|
||||
$output['jitter'] = $this->jitter;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
234
var/cache/dev/Symfony/Config/Framework/MessengerConfig.php
vendored
Normal file
234
var/cache/dev/Symfony/Config/Framework/MessengerConfig.php
vendored
Normal file
@@ -0,0 +1,234 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Messenger'.\DIRECTORY_SEPARATOR.'RoutingConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Messenger'.\DIRECTORY_SEPARATOR.'SerializerConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Messenger'.\DIRECTORY_SEPARATOR.'TransportConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Messenger'.\DIRECTORY_SEPARATOR.'BusConfig.php';
|
||||
|
||||
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 MessengerConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $routing;
|
||||
private $serializer;
|
||||
private $transports;
|
||||
private $failureTransport;
|
||||
private $stopWorkerOnSignals;
|
||||
private $defaultBus;
|
||||
private $buses;
|
||||
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 routing(string $message_class, array $value = []): \Symfony\Config\Framework\Messenger\RoutingConfig
|
||||
{
|
||||
if (!isset($this->routing[$message_class])) {
|
||||
$this->_usedProperties['routing'] = true;
|
||||
$this->routing[$message_class] = new \Symfony\Config\Framework\Messenger\RoutingConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "routing()" has already been initialized. You cannot pass values the second time you call routing().');
|
||||
}
|
||||
|
||||
return $this->routing[$message_class];
|
||||
}
|
||||
|
||||
/**
|
||||
* @default {"default_serializer":"messenger.transport.native_php_serializer","symfony_serializer":{"format":"json","context":[]}}
|
||||
*/
|
||||
public function serializer(array $value = []): \Symfony\Config\Framework\Messenger\SerializerConfig
|
||||
{
|
||||
if (null === $this->serializer) {
|
||||
$this->_usedProperties['serializer'] = true;
|
||||
$this->serializer = new \Symfony\Config\Framework\Messenger\SerializerConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "serializer()" has already been initialized. You cannot pass values the second time you call serializer().');
|
||||
}
|
||||
|
||||
return $this->serializer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of string|array
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Framework\Messenger\TransportConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Framework\Messenger\TransportConfig : static)
|
||||
*/
|
||||
public function transport(string $name, string|array $value = []): \Symfony\Config\Framework\Messenger\TransportConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['transports'] = true;
|
||||
$this->transports[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!isset($this->transports[$name]) || !$this->transports[$name] instanceof \Symfony\Config\Framework\Messenger\TransportConfig) {
|
||||
$this->_usedProperties['transports'] = true;
|
||||
$this->transports[$name] = new \Symfony\Config\Framework\Messenger\TransportConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "transport()" has already been initialized. You cannot pass values the second time you call transport().');
|
||||
}
|
||||
|
||||
return $this->transports[$name];
|
||||
}
|
||||
|
||||
/**
|
||||
* Transport name to send failed messages to (after all retries have failed).
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function failureTransport($value): static
|
||||
{
|
||||
$this->_usedProperties['failureTransport'] = true;
|
||||
$this->failureTransport = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function stopWorkerOnSignals(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['stopWorkerOnSignals'] = true;
|
||||
$this->stopWorkerOnSignals = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultBus($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultBus'] = true;
|
||||
$this->defaultBus = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default {"messenger.bus.default":{"default_middleware":{"enabled":true,"allow_no_handlers":false,"allow_no_senders":true},"middleware":[]}}
|
||||
*/
|
||||
public function bus(string $name, array $value = []): \Symfony\Config\Framework\Messenger\BusConfig
|
||||
{
|
||||
if (!isset($this->buses[$name])) {
|
||||
$this->_usedProperties['buses'] = true;
|
||||
$this->buses[$name] = new \Symfony\Config\Framework\Messenger\BusConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "bus()" has already been initialized. You cannot pass values the second time you call bus().');
|
||||
}
|
||||
|
||||
return $this->buses[$name];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('routing', $value)) {
|
||||
$this->_usedProperties['routing'] = true;
|
||||
$this->routing = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Framework\Messenger\RoutingConfig($v) : $v, $value['routing']);
|
||||
unset($value['routing']);
|
||||
}
|
||||
|
||||
if (array_key_exists('serializer', $value)) {
|
||||
$this->_usedProperties['serializer'] = true;
|
||||
$this->serializer = new \Symfony\Config\Framework\Messenger\SerializerConfig($value['serializer']);
|
||||
unset($value['serializer']);
|
||||
}
|
||||
|
||||
if (array_key_exists('transports', $value)) {
|
||||
$this->_usedProperties['transports'] = true;
|
||||
$this->transports = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Framework\Messenger\TransportConfig($v) : $v, $value['transports']);
|
||||
unset($value['transports']);
|
||||
}
|
||||
|
||||
if (array_key_exists('failure_transport', $value)) {
|
||||
$this->_usedProperties['failureTransport'] = true;
|
||||
$this->failureTransport = $value['failure_transport'];
|
||||
unset($value['failure_transport']);
|
||||
}
|
||||
|
||||
if (array_key_exists('stop_worker_on_signals', $value)) {
|
||||
$this->_usedProperties['stopWorkerOnSignals'] = true;
|
||||
$this->stopWorkerOnSignals = $value['stop_worker_on_signals'];
|
||||
unset($value['stop_worker_on_signals']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_bus', $value)) {
|
||||
$this->_usedProperties['defaultBus'] = true;
|
||||
$this->defaultBus = $value['default_bus'];
|
||||
unset($value['default_bus']);
|
||||
}
|
||||
|
||||
if (array_key_exists('buses', $value)) {
|
||||
$this->_usedProperties['buses'] = true;
|
||||
$this->buses = array_map(fn ($v) => new \Symfony\Config\Framework\Messenger\BusConfig($v), $value['buses']);
|
||||
unset($value['buses']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['routing'])) {
|
||||
$output['routing'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Framework\Messenger\RoutingConfig ? $v->toArray() : $v, $this->routing);
|
||||
}
|
||||
if (isset($this->_usedProperties['serializer'])) {
|
||||
$output['serializer'] = $this->serializer->toArray();
|
||||
}
|
||||
if (isset($this->_usedProperties['transports'])) {
|
||||
$output['transports'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Framework\Messenger\TransportConfig ? $v->toArray() : $v, $this->transports);
|
||||
}
|
||||
if (isset($this->_usedProperties['failureTransport'])) {
|
||||
$output['failure_transport'] = $this->failureTransport;
|
||||
}
|
||||
if (isset($this->_usedProperties['stopWorkerOnSignals'])) {
|
||||
$output['stop_worker_on_signals'] = $this->stopWorkerOnSignals;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultBus'])) {
|
||||
$output['default_bus'] = $this->defaultBus;
|
||||
}
|
||||
if (isset($this->_usedProperties['buses'])) {
|
||||
$output['buses'] = array_map(fn ($v) => $v->toArray(), $this->buses);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
74
var/cache/dev/Symfony/Config/Framework/Notifier/AdminRecipientConfig.php
vendored
Normal file
74
var/cache/dev/Symfony/Config/Framework/Notifier/AdminRecipientConfig.php
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Notifier;
|
||||
|
||||
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 AdminRecipientConfig
|
||||
{
|
||||
private $email;
|
||||
private $phone;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function email($value): static
|
||||
{
|
||||
$this->_usedProperties['email'] = true;
|
||||
$this->email = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function phone($value): static
|
||||
{
|
||||
$this->_usedProperties['phone'] = true;
|
||||
$this->phone = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('email', $value)) {
|
||||
$this->_usedProperties['email'] = true;
|
||||
$this->email = $value['email'];
|
||||
unset($value['email']);
|
||||
}
|
||||
|
||||
if (array_key_exists('phone', $value)) {
|
||||
$this->_usedProperties['phone'] = true;
|
||||
$this->phone = $value['phone'];
|
||||
unset($value['phone']);
|
||||
}
|
||||
|
||||
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['email'])) {
|
||||
$output['email'] = $this->email;
|
||||
}
|
||||
if (isset($this->_usedProperties['phone'])) {
|
||||
$output['phone'] = $this->phone;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
181
var/cache/dev/Symfony/Config/Framework/NotifierConfig.php
vendored
Normal file
181
var/cache/dev/Symfony/Config/Framework/NotifierConfig.php
vendored
Normal file
@@ -0,0 +1,181 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Notifier'.\DIRECTORY_SEPARATOR.'AdminRecipientConfig.php';
|
||||
|
||||
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 NotifierConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $messageBus;
|
||||
private $chatterTransports;
|
||||
private $texterTransports;
|
||||
private $notificationOnFailedMessages;
|
||||
private $channelPolicy;
|
||||
private $adminRecipients;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The message bus to use. Defaults to the default bus if the Messenger component is installed.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function messageBus($value): static
|
||||
{
|
||||
$this->_usedProperties['messageBus'] = true;
|
||||
$this->messageBus = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function chatterTransport(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['chatterTransports'] = true;
|
||||
$this->chatterTransports[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function texterTransport(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['texterTransports'] = true;
|
||||
$this->texterTransports[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function notificationOnFailedMessages($value): static
|
||||
{
|
||||
$this->_usedProperties['notificationOnFailedMessages'] = true;
|
||||
$this->notificationOnFailedMessages = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function channelPolicy(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['channelPolicy'] = true;
|
||||
$this->channelPolicy[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function adminRecipient(array $value = []): \Symfony\Config\Framework\Notifier\AdminRecipientConfig
|
||||
{
|
||||
$this->_usedProperties['adminRecipients'] = true;
|
||||
|
||||
return $this->adminRecipients[] = new \Symfony\Config\Framework\Notifier\AdminRecipientConfig($value);
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('message_bus', $value)) {
|
||||
$this->_usedProperties['messageBus'] = true;
|
||||
$this->messageBus = $value['message_bus'];
|
||||
unset($value['message_bus']);
|
||||
}
|
||||
|
||||
if (array_key_exists('chatter_transports', $value)) {
|
||||
$this->_usedProperties['chatterTransports'] = true;
|
||||
$this->chatterTransports = $value['chatter_transports'];
|
||||
unset($value['chatter_transports']);
|
||||
}
|
||||
|
||||
if (array_key_exists('texter_transports', $value)) {
|
||||
$this->_usedProperties['texterTransports'] = true;
|
||||
$this->texterTransports = $value['texter_transports'];
|
||||
unset($value['texter_transports']);
|
||||
}
|
||||
|
||||
if (array_key_exists('notification_on_failed_messages', $value)) {
|
||||
$this->_usedProperties['notificationOnFailedMessages'] = true;
|
||||
$this->notificationOnFailedMessages = $value['notification_on_failed_messages'];
|
||||
unset($value['notification_on_failed_messages']);
|
||||
}
|
||||
|
||||
if (array_key_exists('channel_policy', $value)) {
|
||||
$this->_usedProperties['channelPolicy'] = true;
|
||||
$this->channelPolicy = $value['channel_policy'];
|
||||
unset($value['channel_policy']);
|
||||
}
|
||||
|
||||
if (array_key_exists('admin_recipients', $value)) {
|
||||
$this->_usedProperties['adminRecipients'] = true;
|
||||
$this->adminRecipients = array_map(fn ($v) => new \Symfony\Config\Framework\Notifier\AdminRecipientConfig($v), $value['admin_recipients']);
|
||||
unset($value['admin_recipients']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['messageBus'])) {
|
||||
$output['message_bus'] = $this->messageBus;
|
||||
}
|
||||
if (isset($this->_usedProperties['chatterTransports'])) {
|
||||
$output['chatter_transports'] = $this->chatterTransports;
|
||||
}
|
||||
if (isset($this->_usedProperties['texterTransports'])) {
|
||||
$output['texter_transports'] = $this->texterTransports;
|
||||
}
|
||||
if (isset($this->_usedProperties['notificationOnFailedMessages'])) {
|
||||
$output['notification_on_failed_messages'] = $this->notificationOnFailedMessages;
|
||||
}
|
||||
if (isset($this->_usedProperties['channelPolicy'])) {
|
||||
$output['channel_policy'] = $this->channelPolicy;
|
||||
}
|
||||
if (isset($this->_usedProperties['adminRecipients'])) {
|
||||
$output['admin_recipients'] = array_map(fn ($v) => $v->toArray(), $this->adminRecipients);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
79
var/cache/dev/Symfony/Config/Framework/PhpErrorsConfig.php
vendored
Normal file
79
var/cache/dev/Symfony/Config/Framework/PhpErrorsConfig.php
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 PhpErrorsConfig
|
||||
{
|
||||
private $log;
|
||||
private $throw;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* Use the application logger instead of the PHP logger for logging PHP errors.
|
||||
* @example "true" to use the default configuration: log all errors. "false" to disable. An integer bit field of E_* constants, or an array mapping E_* constants to log levels.
|
||||
* @default true
|
||||
* @param ParamConfigurator|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function log(mixed $value = true): static
|
||||
{
|
||||
$this->_usedProperties['log'] = true;
|
||||
$this->log = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Throw PHP errors as \ErrorException instances.
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function throw($value): static
|
||||
{
|
||||
$this->_usedProperties['throw'] = true;
|
||||
$this->throw = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('log', $value)) {
|
||||
$this->_usedProperties['log'] = true;
|
||||
$this->log = $value['log'];
|
||||
unset($value['log']);
|
||||
}
|
||||
|
||||
if (array_key_exists('throw', $value)) {
|
||||
$this->_usedProperties['throw'] = true;
|
||||
$this->throw = $value['throw'];
|
||||
unset($value['throw']);
|
||||
}
|
||||
|
||||
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['log'])) {
|
||||
$output['log'] = $this->log;
|
||||
}
|
||||
if (isset($this->_usedProperties['throw'])) {
|
||||
$output['throw'] = $this->throw;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
192
var/cache/dev/Symfony/Config/Framework/ProfilerConfig.php
vendored
Normal file
192
var/cache/dev/Symfony/Config/Framework/ProfilerConfig.php
vendored
Normal file
@@ -0,0 +1,192 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 ProfilerConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $collect;
|
||||
private $collectParameter;
|
||||
private $onlyExceptions;
|
||||
private $onlyMainRequests;
|
||||
private $dsn;
|
||||
private $collectSerializerData;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function collect($value): static
|
||||
{
|
||||
$this->_usedProperties['collect'] = true;
|
||||
$this->collect = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the parameter to use to enable or disable collection on a per request basis.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function collectParameter($value): static
|
||||
{
|
||||
$this->_usedProperties['collectParameter'] = true;
|
||||
$this->collectParameter = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function onlyExceptions($value): static
|
||||
{
|
||||
$this->_usedProperties['onlyExceptions'] = true;
|
||||
$this->onlyExceptions = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function onlyMainRequests($value): static
|
||||
{
|
||||
$this->_usedProperties['onlyMainRequests'] = true;
|
||||
$this->onlyMainRequests = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'file:%kernel.cache_dir%/profiler'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function dsn($value): static
|
||||
{
|
||||
$this->_usedProperties['dsn'] = true;
|
||||
$this->dsn = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables the serializer data collector and profiler panel.
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function collectSerializerData($value): static
|
||||
{
|
||||
$this->_usedProperties['collectSerializerData'] = true;
|
||||
$this->collectSerializerData = $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 (array_key_exists('collect', $value)) {
|
||||
$this->_usedProperties['collect'] = true;
|
||||
$this->collect = $value['collect'];
|
||||
unset($value['collect']);
|
||||
}
|
||||
|
||||
if (array_key_exists('collect_parameter', $value)) {
|
||||
$this->_usedProperties['collectParameter'] = true;
|
||||
$this->collectParameter = $value['collect_parameter'];
|
||||
unset($value['collect_parameter']);
|
||||
}
|
||||
|
||||
if (array_key_exists('only_exceptions', $value)) {
|
||||
$this->_usedProperties['onlyExceptions'] = true;
|
||||
$this->onlyExceptions = $value['only_exceptions'];
|
||||
unset($value['only_exceptions']);
|
||||
}
|
||||
|
||||
if (array_key_exists('only_main_requests', $value)) {
|
||||
$this->_usedProperties['onlyMainRequests'] = true;
|
||||
$this->onlyMainRequests = $value['only_main_requests'];
|
||||
unset($value['only_main_requests']);
|
||||
}
|
||||
|
||||
if (array_key_exists('dsn', $value)) {
|
||||
$this->_usedProperties['dsn'] = true;
|
||||
$this->dsn = $value['dsn'];
|
||||
unset($value['dsn']);
|
||||
}
|
||||
|
||||
if (array_key_exists('collect_serializer_data', $value)) {
|
||||
$this->_usedProperties['collectSerializerData'] = true;
|
||||
$this->collectSerializerData = $value['collect_serializer_data'];
|
||||
unset($value['collect_serializer_data']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['collect'])) {
|
||||
$output['collect'] = $this->collect;
|
||||
}
|
||||
if (isset($this->_usedProperties['collectParameter'])) {
|
||||
$output['collect_parameter'] = $this->collectParameter;
|
||||
}
|
||||
if (isset($this->_usedProperties['onlyExceptions'])) {
|
||||
$output['only_exceptions'] = $this->onlyExceptions;
|
||||
}
|
||||
if (isset($this->_usedProperties['onlyMainRequests'])) {
|
||||
$output['only_main_requests'] = $this->onlyMainRequests;
|
||||
}
|
||||
if (isset($this->_usedProperties['dsn'])) {
|
||||
$output['dsn'] = $this->dsn;
|
||||
}
|
||||
if (isset($this->_usedProperties['collectSerializerData'])) {
|
||||
$output['collect_serializer_data'] = $this->collectSerializerData;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
167
var/cache/dev/Symfony/Config/Framework/PropertyAccessConfig.php
vendored
Normal file
167
var/cache/dev/Symfony/Config/Framework/PropertyAccessConfig.php
vendored
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 PropertyAccessConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $magicCall;
|
||||
private $magicGet;
|
||||
private $magicSet;
|
||||
private $throwExceptionOnInvalidIndex;
|
||||
private $throwExceptionOnInvalidPropertyPath;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function magicCall($value): static
|
||||
{
|
||||
$this->_usedProperties['magicCall'] = true;
|
||||
$this->magicCall = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function magicGet($value): static
|
||||
{
|
||||
$this->_usedProperties['magicGet'] = true;
|
||||
$this->magicGet = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function magicSet($value): static
|
||||
{
|
||||
$this->_usedProperties['magicSet'] = true;
|
||||
$this->magicSet = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function throwExceptionOnInvalidIndex($value): static
|
||||
{
|
||||
$this->_usedProperties['throwExceptionOnInvalidIndex'] = true;
|
||||
$this->throwExceptionOnInvalidIndex = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function throwExceptionOnInvalidPropertyPath($value): static
|
||||
{
|
||||
$this->_usedProperties['throwExceptionOnInvalidPropertyPath'] = true;
|
||||
$this->throwExceptionOnInvalidPropertyPath = $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 (array_key_exists('magic_call', $value)) {
|
||||
$this->_usedProperties['magicCall'] = true;
|
||||
$this->magicCall = $value['magic_call'];
|
||||
unset($value['magic_call']);
|
||||
}
|
||||
|
||||
if (array_key_exists('magic_get', $value)) {
|
||||
$this->_usedProperties['magicGet'] = true;
|
||||
$this->magicGet = $value['magic_get'];
|
||||
unset($value['magic_get']);
|
||||
}
|
||||
|
||||
if (array_key_exists('magic_set', $value)) {
|
||||
$this->_usedProperties['magicSet'] = true;
|
||||
$this->magicSet = $value['magic_set'];
|
||||
unset($value['magic_set']);
|
||||
}
|
||||
|
||||
if (array_key_exists('throw_exception_on_invalid_index', $value)) {
|
||||
$this->_usedProperties['throwExceptionOnInvalidIndex'] = true;
|
||||
$this->throwExceptionOnInvalidIndex = $value['throw_exception_on_invalid_index'];
|
||||
unset($value['throw_exception_on_invalid_index']);
|
||||
}
|
||||
|
||||
if (array_key_exists('throw_exception_on_invalid_property_path', $value)) {
|
||||
$this->_usedProperties['throwExceptionOnInvalidPropertyPath'] = true;
|
||||
$this->throwExceptionOnInvalidPropertyPath = $value['throw_exception_on_invalid_property_path'];
|
||||
unset($value['throw_exception_on_invalid_property_path']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['magicCall'])) {
|
||||
$output['magic_call'] = $this->magicCall;
|
||||
}
|
||||
if (isset($this->_usedProperties['magicGet'])) {
|
||||
$output['magic_get'] = $this->magicGet;
|
||||
}
|
||||
if (isset($this->_usedProperties['magicSet'])) {
|
||||
$output['magic_set'] = $this->magicSet;
|
||||
}
|
||||
if (isset($this->_usedProperties['throwExceptionOnInvalidIndex'])) {
|
||||
$output['throw_exception_on_invalid_index'] = $this->throwExceptionOnInvalidIndex;
|
||||
}
|
||||
if (isset($this->_usedProperties['throwExceptionOnInvalidPropertyPath'])) {
|
||||
$output['throw_exception_on_invalid_property_path'] = $this->throwExceptionOnInvalidPropertyPath;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
76
var/cache/dev/Symfony/Config/Framework/PropertyInfoConfig.php
vendored
Normal file
76
var/cache/dev/Symfony/Config/Framework/PropertyInfoConfig.php
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 PropertyInfoConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $withConstructorExtractor;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers the constructor extractor.
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function withConstructorExtractor($value): static
|
||||
{
|
||||
$this->_usedProperties['withConstructorExtractor'] = true;
|
||||
$this->withConstructorExtractor = $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 (array_key_exists('with_constructor_extractor', $value)) {
|
||||
$this->_usedProperties['withConstructorExtractor'] = true;
|
||||
$this->withConstructorExtractor = $value['with_constructor_extractor'];
|
||||
unset($value['with_constructor_extractor']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['withConstructorExtractor'])) {
|
||||
$output['with_constructor_extractor'] = $this->withConstructorExtractor;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
223
var/cache/dev/Symfony/Config/Framework/RateLimiter/LimiterConfig.php
vendored
Normal file
223
var/cache/dev/Symfony/Config/Framework/RateLimiter/LimiterConfig.php
vendored
Normal file
@@ -0,0 +1,223 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\RateLimiter;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'LimiterConfig'.\DIRECTORY_SEPARATOR.'RateConfig.php';
|
||||
|
||||
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 LimiterConfig
|
||||
{
|
||||
private $lockFactory;
|
||||
private $cachePool;
|
||||
private $storageService;
|
||||
private $policy;
|
||||
private $limiters;
|
||||
private $limit;
|
||||
private $interval;
|
||||
private $rate;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* The service ID of the lock factory used by this limiter (or null to disable locking).
|
||||
* @default 'auto'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function lockFactory($value): static
|
||||
{
|
||||
$this->_usedProperties['lockFactory'] = true;
|
||||
$this->lockFactory = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The cache pool to use for storing the current limiter state.
|
||||
* @default 'cache.rate_limiter'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function cachePool($value): static
|
||||
{
|
||||
$this->_usedProperties['cachePool'] = true;
|
||||
$this->cachePool = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The service ID of a custom storage implementation, this precedes any configured "cache_pool".
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function storageService($value): static
|
||||
{
|
||||
$this->_usedProperties['storageService'] = true;
|
||||
$this->storageService = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The algorithm to be used by this limiter.
|
||||
* @default null
|
||||
* @param ParamConfigurator|'fixed_window'|'token_bucket'|'sliding_window'|'compound'|'no_limit' $value
|
||||
* @return $this
|
||||
*/
|
||||
public function policy($value): static
|
||||
{
|
||||
$this->_usedProperties['policy'] = true;
|
||||
$this->policy = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function limiters(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['limiters'] = true;
|
||||
$this->limiters = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The maximum allowed hits in a fixed interval or burst.
|
||||
* @default null
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function limit($value): static
|
||||
{
|
||||
$this->_usedProperties['limit'] = true;
|
||||
$this->limit = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configures the fixed interval if "policy" is set to "fixed_window" or "sliding_window". The value must be a number followed by "second", "minute", "hour", "day", "week" or "month" (or their plural equivalent).
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function interval($value): static
|
||||
{
|
||||
$this->_usedProperties['interval'] = true;
|
||||
$this->interval = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configures the fill rate if "policy" is set to "token_bucket".
|
||||
*/
|
||||
public function rate(array $value = []): \Symfony\Config\Framework\RateLimiter\LimiterConfig\RateConfig
|
||||
{
|
||||
if (null === $this->rate) {
|
||||
$this->_usedProperties['rate'] = true;
|
||||
$this->rate = new \Symfony\Config\Framework\RateLimiter\LimiterConfig\RateConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "rate()" has already been initialized. You cannot pass values the second time you call rate().');
|
||||
}
|
||||
|
||||
return $this->rate;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('lock_factory', $value)) {
|
||||
$this->_usedProperties['lockFactory'] = true;
|
||||
$this->lockFactory = $value['lock_factory'];
|
||||
unset($value['lock_factory']);
|
||||
}
|
||||
|
||||
if (array_key_exists('cache_pool', $value)) {
|
||||
$this->_usedProperties['cachePool'] = true;
|
||||
$this->cachePool = $value['cache_pool'];
|
||||
unset($value['cache_pool']);
|
||||
}
|
||||
|
||||
if (array_key_exists('storage_service', $value)) {
|
||||
$this->_usedProperties['storageService'] = true;
|
||||
$this->storageService = $value['storage_service'];
|
||||
unset($value['storage_service']);
|
||||
}
|
||||
|
||||
if (array_key_exists('policy', $value)) {
|
||||
$this->_usedProperties['policy'] = true;
|
||||
$this->policy = $value['policy'];
|
||||
unset($value['policy']);
|
||||
}
|
||||
|
||||
if (array_key_exists('limiters', $value)) {
|
||||
$this->_usedProperties['limiters'] = true;
|
||||
$this->limiters = $value['limiters'];
|
||||
unset($value['limiters']);
|
||||
}
|
||||
|
||||
if (array_key_exists('limit', $value)) {
|
||||
$this->_usedProperties['limit'] = true;
|
||||
$this->limit = $value['limit'];
|
||||
unset($value['limit']);
|
||||
}
|
||||
|
||||
if (array_key_exists('interval', $value)) {
|
||||
$this->_usedProperties['interval'] = true;
|
||||
$this->interval = $value['interval'];
|
||||
unset($value['interval']);
|
||||
}
|
||||
|
||||
if (array_key_exists('rate', $value)) {
|
||||
$this->_usedProperties['rate'] = true;
|
||||
$this->rate = new \Symfony\Config\Framework\RateLimiter\LimiterConfig\RateConfig($value['rate']);
|
||||
unset($value['rate']);
|
||||
}
|
||||
|
||||
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['lockFactory'])) {
|
||||
$output['lock_factory'] = $this->lockFactory;
|
||||
}
|
||||
if (isset($this->_usedProperties['cachePool'])) {
|
||||
$output['cache_pool'] = $this->cachePool;
|
||||
}
|
||||
if (isset($this->_usedProperties['storageService'])) {
|
||||
$output['storage_service'] = $this->storageService;
|
||||
}
|
||||
if (isset($this->_usedProperties['policy'])) {
|
||||
$output['policy'] = $this->policy;
|
||||
}
|
||||
if (isset($this->_usedProperties['limiters'])) {
|
||||
$output['limiters'] = $this->limiters;
|
||||
}
|
||||
if (isset($this->_usedProperties['limit'])) {
|
||||
$output['limit'] = $this->limit;
|
||||
}
|
||||
if (isset($this->_usedProperties['interval'])) {
|
||||
$output['interval'] = $this->interval;
|
||||
}
|
||||
if (isset($this->_usedProperties['rate'])) {
|
||||
$output['rate'] = $this->rate->toArray();
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
77
var/cache/dev/Symfony/Config/Framework/RateLimiter/LimiterConfig/RateConfig.php
vendored
Normal file
77
var/cache/dev/Symfony/Config/Framework/RateLimiter/LimiterConfig/RateConfig.php
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\RateLimiter\LimiterConfig;
|
||||
|
||||
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 RateConfig
|
||||
{
|
||||
private $interval;
|
||||
private $amount;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* Configures the rate interval. The value must be a number followed by "second", "minute", "hour", "day", "week" or "month" (or their plural equivalent).
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function interval($value): static
|
||||
{
|
||||
$this->_usedProperties['interval'] = true;
|
||||
$this->interval = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Amount of tokens to add each interval.
|
||||
* @default 1
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function amount($value): static
|
||||
{
|
||||
$this->_usedProperties['amount'] = true;
|
||||
$this->amount = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('interval', $value)) {
|
||||
$this->_usedProperties['interval'] = true;
|
||||
$this->interval = $value['interval'];
|
||||
unset($value['interval']);
|
||||
}
|
||||
|
||||
if (array_key_exists('amount', $value)) {
|
||||
$this->_usedProperties['amount'] = true;
|
||||
$this->amount = $value['amount'];
|
||||
unset($value['amount']);
|
||||
}
|
||||
|
||||
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['interval'])) {
|
||||
$output['interval'] = $this->interval;
|
||||
}
|
||||
if (isset($this->_usedProperties['amount'])) {
|
||||
$output['amount'] = $this->amount;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
76
var/cache/dev/Symfony/Config/Framework/RateLimiterConfig.php
vendored
Normal file
76
var/cache/dev/Symfony/Config/Framework/RateLimiterConfig.php
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'RateLimiter'.\DIRECTORY_SEPARATOR.'LimiterConfig.php';
|
||||
|
||||
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 RateLimiterConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $limiters;
|
||||
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 limiter(string $name, array $value = []): \Symfony\Config\Framework\RateLimiter\LimiterConfig
|
||||
{
|
||||
if (!isset($this->limiters[$name])) {
|
||||
$this->_usedProperties['limiters'] = true;
|
||||
$this->limiters[$name] = new \Symfony\Config\Framework\RateLimiter\LimiterConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "limiter()" has already been initialized. You cannot pass values the second time you call limiter().');
|
||||
}
|
||||
|
||||
return $this->limiters[$name];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('limiters', $value)) {
|
||||
$this->_usedProperties['limiters'] = true;
|
||||
$this->limiters = array_map(fn ($v) => new \Symfony\Config\Framework\RateLimiter\LimiterConfig($v), $value['limiters']);
|
||||
unset($value['limiters']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['limiters'])) {
|
||||
$output['limiters'] = array_map(fn ($v) => $v->toArray(), $this->limiters);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Framework/RemoteeventConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Framework/RemoteeventConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 RemoteeventConfig
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
73
var/cache/dev/Symfony/Config/Framework/RequestConfig.php
vendored
Normal file
73
var/cache/dev/Symfony/Config/Framework/RequestConfig.php
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 RequestConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $formats;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function format(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['formats'] = true;
|
||||
$this->formats[$name] = $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 (array_key_exists('formats', $value)) {
|
||||
$this->_usedProperties['formats'] = true;
|
||||
$this->formats = $value['formats'];
|
||||
unset($value['formats']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['formats'])) {
|
||||
$output['formats'] = $this->formats;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
242
var/cache/dev/Symfony/Config/Framework/RouterConfig.php
vendored
Normal file
242
var/cache/dev/Symfony/Config/Framework/RouterConfig.php
vendored
Normal file
@@ -0,0 +1,242 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 RouterConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $resource;
|
||||
private $type;
|
||||
private $cacheDir;
|
||||
private $defaultUri;
|
||||
private $httpPort;
|
||||
private $httpsPort;
|
||||
private $strictRequirements;
|
||||
private $utf8;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function resource($value): static
|
||||
{
|
||||
$this->_usedProperties['resource'] = true;
|
||||
$this->resource = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function type($value): static
|
||||
{
|
||||
$this->_usedProperties['type'] = true;
|
||||
$this->type = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default '%kernel.build_dir%'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @deprecated Setting the "router.cache_dir" configuration option is deprecated. It will be removed in version 8.0.
|
||||
* @return $this
|
||||
*/
|
||||
public function cacheDir($value): static
|
||||
{
|
||||
$this->_usedProperties['cacheDir'] = true;
|
||||
$this->cacheDir = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The default URI used to generate URLs in a non-HTTP context.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultUri($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultUri'] = true;
|
||||
$this->defaultUri = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 80
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function httpPort($value): static
|
||||
{
|
||||
$this->_usedProperties['httpPort'] = true;
|
||||
$this->httpPort = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 443
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function httpsPort($value): static
|
||||
{
|
||||
$this->_usedProperties['httpsPort'] = true;
|
||||
$this->httpsPort = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* set to true to throw an exception when a parameter does not match the requirements
|
||||
* set to false to disable exceptions when a parameter does not match the requirements (and return null instead)
|
||||
* set to null to disable parameter checks against requirements
|
||||
* 'true' is the preferred configuration in development mode, while 'false' or 'null' might be preferred in production
|
||||
* @default true
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function strictRequirements($value): static
|
||||
{
|
||||
$this->_usedProperties['strictRequirements'] = true;
|
||||
$this->strictRequirements = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function utf8($value): static
|
||||
{
|
||||
$this->_usedProperties['utf8'] = true;
|
||||
$this->utf8 = $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 (array_key_exists('resource', $value)) {
|
||||
$this->_usedProperties['resource'] = true;
|
||||
$this->resource = $value['resource'];
|
||||
unset($value['resource']);
|
||||
}
|
||||
|
||||
if (array_key_exists('type', $value)) {
|
||||
$this->_usedProperties['type'] = true;
|
||||
$this->type = $value['type'];
|
||||
unset($value['type']);
|
||||
}
|
||||
|
||||
if (array_key_exists('cache_dir', $value)) {
|
||||
$this->_usedProperties['cacheDir'] = true;
|
||||
$this->cacheDir = $value['cache_dir'];
|
||||
unset($value['cache_dir']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_uri', $value)) {
|
||||
$this->_usedProperties['defaultUri'] = true;
|
||||
$this->defaultUri = $value['default_uri'];
|
||||
unset($value['default_uri']);
|
||||
}
|
||||
|
||||
if (array_key_exists('http_port', $value)) {
|
||||
$this->_usedProperties['httpPort'] = true;
|
||||
$this->httpPort = $value['http_port'];
|
||||
unset($value['http_port']);
|
||||
}
|
||||
|
||||
if (array_key_exists('https_port', $value)) {
|
||||
$this->_usedProperties['httpsPort'] = true;
|
||||
$this->httpsPort = $value['https_port'];
|
||||
unset($value['https_port']);
|
||||
}
|
||||
|
||||
if (array_key_exists('strict_requirements', $value)) {
|
||||
$this->_usedProperties['strictRequirements'] = true;
|
||||
$this->strictRequirements = $value['strict_requirements'];
|
||||
unset($value['strict_requirements']);
|
||||
}
|
||||
|
||||
if (array_key_exists('utf8', $value)) {
|
||||
$this->_usedProperties['utf8'] = true;
|
||||
$this->utf8 = $value['utf8'];
|
||||
unset($value['utf8']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['resource'])) {
|
||||
$output['resource'] = $this->resource;
|
||||
}
|
||||
if (isset($this->_usedProperties['type'])) {
|
||||
$output['type'] = $this->type;
|
||||
}
|
||||
if (isset($this->_usedProperties['cacheDir'])) {
|
||||
$output['cache_dir'] = $this->cacheDir;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultUri'])) {
|
||||
$output['default_uri'] = $this->defaultUri;
|
||||
}
|
||||
if (isset($this->_usedProperties['httpPort'])) {
|
||||
$output['http_port'] = $this->httpPort;
|
||||
}
|
||||
if (isset($this->_usedProperties['httpsPort'])) {
|
||||
$output['https_port'] = $this->httpsPort;
|
||||
}
|
||||
if (isset($this->_usedProperties['strictRequirements'])) {
|
||||
$output['strict_requirements'] = $this->strictRequirements;
|
||||
}
|
||||
if (isset($this->_usedProperties['utf8'])) {
|
||||
$output['utf8'] = $this->utf8;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Framework/SchedulerConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Framework/SchedulerConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 SchedulerConfig
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
121
var/cache/dev/Symfony/Config/Framework/SecretsConfig.php
vendored
Normal file
121
var/cache/dev/Symfony/Config/Framework/SecretsConfig.php
vendored
Normal file
@@ -0,0 +1,121 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 SecretsConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $vaultDirectory;
|
||||
private $localDotenvFile;
|
||||
private $decryptionEnvVar;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default '%kernel.project_dir%/config/secrets/%kernel.runtime_environment%'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function vaultDirectory($value): static
|
||||
{
|
||||
$this->_usedProperties['vaultDirectory'] = true;
|
||||
$this->vaultDirectory = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default '%kernel.project_dir%/.env.%kernel.environment%.local'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function localDotenvFile($value): static
|
||||
{
|
||||
$this->_usedProperties['localDotenvFile'] = true;
|
||||
$this->localDotenvFile = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'base64:default::SYMFONY_DECRYPTION_SECRET'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function decryptionEnvVar($value): static
|
||||
{
|
||||
$this->_usedProperties['decryptionEnvVar'] = true;
|
||||
$this->decryptionEnvVar = $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 (array_key_exists('vault_directory', $value)) {
|
||||
$this->_usedProperties['vaultDirectory'] = true;
|
||||
$this->vaultDirectory = $value['vault_directory'];
|
||||
unset($value['vault_directory']);
|
||||
}
|
||||
|
||||
if (array_key_exists('local_dotenv_file', $value)) {
|
||||
$this->_usedProperties['localDotenvFile'] = true;
|
||||
$this->localDotenvFile = $value['local_dotenv_file'];
|
||||
unset($value['local_dotenv_file']);
|
||||
}
|
||||
|
||||
if (array_key_exists('decryption_env_var', $value)) {
|
||||
$this->_usedProperties['decryptionEnvVar'] = true;
|
||||
$this->decryptionEnvVar = $value['decryption_env_var'];
|
||||
unset($value['decryption_env_var']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['vaultDirectory'])) {
|
||||
$output['vault_directory'] = $this->vaultDirectory;
|
||||
}
|
||||
if (isset($this->_usedProperties['localDotenvFile'])) {
|
||||
$output['local_dotenv_file'] = $this->localDotenvFile;
|
||||
}
|
||||
if (isset($this->_usedProperties['decryptionEnvVar'])) {
|
||||
$output['decryption_env_var'] = $this->decryptionEnvVar;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
73
var/cache/dev/Symfony/Config/Framework/SemaphoreConfig.php
vendored
Normal file
73
var/cache/dev/Symfony/Config/Framework/SemaphoreConfig.php
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 SemaphoreConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $resources;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function resource(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['resources'] = true;
|
||||
$this->resources[$name] = $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 (array_key_exists('resources', $value)) {
|
||||
$this->_usedProperties['resources'] = true;
|
||||
$this->resources = $value['resources'];
|
||||
unset($value['resources']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['resources'])) {
|
||||
$output['resources'] = $this->resources;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Framework/Serializer/MappingConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Framework/Serializer/MappingConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Serializer;
|
||||
|
||||
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 MappingConfig
|
||||
{
|
||||
private $paths;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function paths(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['paths'] = true;
|
||||
$this->paths = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('paths', $value)) {
|
||||
$this->_usedProperties['paths'] = true;
|
||||
$this->paths = $value['paths'];
|
||||
unset($value['paths']);
|
||||
}
|
||||
|
||||
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['paths'])) {
|
||||
$output['paths'] = $this->paths;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
123
var/cache/dev/Symfony/Config/Framework/Serializer/NamedSerializerConfig.php
vendored
Normal file
123
var/cache/dev/Symfony/Config/Framework/Serializer/NamedSerializerConfig.php
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Serializer;
|
||||
|
||||
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 NamedSerializerConfig
|
||||
{
|
||||
private $nameConverter;
|
||||
private $defaultContext;
|
||||
private $includeBuiltInNormalizers;
|
||||
private $includeBuiltInEncoders;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function nameConverter($value): static
|
||||
{
|
||||
$this->_usedProperties['nameConverter'] = true;
|
||||
$this->nameConverter = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultContext(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['defaultContext'] = true;
|
||||
$this->defaultContext = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether to include the built-in normalizers
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function includeBuiltInNormalizers($value): static
|
||||
{
|
||||
$this->_usedProperties['includeBuiltInNormalizers'] = true;
|
||||
$this->includeBuiltInNormalizers = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether to include the built-in encoders
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function includeBuiltInEncoders($value): static
|
||||
{
|
||||
$this->_usedProperties['includeBuiltInEncoders'] = true;
|
||||
$this->includeBuiltInEncoders = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('name_converter', $value)) {
|
||||
$this->_usedProperties['nameConverter'] = true;
|
||||
$this->nameConverter = $value['name_converter'];
|
||||
unset($value['name_converter']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_context', $value)) {
|
||||
$this->_usedProperties['defaultContext'] = true;
|
||||
$this->defaultContext = $value['default_context'];
|
||||
unset($value['default_context']);
|
||||
}
|
||||
|
||||
if (array_key_exists('include_built_in_normalizers', $value)) {
|
||||
$this->_usedProperties['includeBuiltInNormalizers'] = true;
|
||||
$this->includeBuiltInNormalizers = $value['include_built_in_normalizers'];
|
||||
unset($value['include_built_in_normalizers']);
|
||||
}
|
||||
|
||||
if (array_key_exists('include_built_in_encoders', $value)) {
|
||||
$this->_usedProperties['includeBuiltInEncoders'] = true;
|
||||
$this->includeBuiltInEncoders = $value['include_built_in_encoders'];
|
||||
unset($value['include_built_in_encoders']);
|
||||
}
|
||||
|
||||
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['nameConverter'])) {
|
||||
$output['name_converter'] = $this->nameConverter;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultContext'])) {
|
||||
$output['default_context'] = $this->defaultContext;
|
||||
}
|
||||
if (isset($this->_usedProperties['includeBuiltInNormalizers'])) {
|
||||
$output['include_built_in_normalizers'] = $this->includeBuiltInNormalizers;
|
||||
}
|
||||
if (isset($this->_usedProperties['includeBuiltInEncoders'])) {
|
||||
$output['include_built_in_encoders'] = $this->includeBuiltInEncoders;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
217
var/cache/dev/Symfony/Config/Framework/SerializerConfig.php
vendored
Normal file
217
var/cache/dev/Symfony/Config/Framework/SerializerConfig.php
vendored
Normal file
@@ -0,0 +1,217 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Serializer'.\DIRECTORY_SEPARATOR.'MappingConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Serializer'.\DIRECTORY_SEPARATOR.'NamedSerializerConfig.php';
|
||||
|
||||
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 SerializerConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $enableAttributes;
|
||||
private $nameConverter;
|
||||
private $circularReferenceHandler;
|
||||
private $maxDepthHandler;
|
||||
private $mapping;
|
||||
private $defaultContext;
|
||||
private $namedSerializers;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enableAttributes($value): static
|
||||
{
|
||||
$this->_usedProperties['enableAttributes'] = true;
|
||||
$this->enableAttributes = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function nameConverter($value): static
|
||||
{
|
||||
$this->_usedProperties['nameConverter'] = true;
|
||||
$this->nameConverter = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function circularReferenceHandler($value): static
|
||||
{
|
||||
$this->_usedProperties['circularReferenceHandler'] = true;
|
||||
$this->circularReferenceHandler = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxDepthHandler($value): static
|
||||
{
|
||||
$this->_usedProperties['maxDepthHandler'] = true;
|
||||
$this->maxDepthHandler = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default {"paths":[]}
|
||||
*/
|
||||
public function mapping(array $value = []): \Symfony\Config\Framework\Serializer\MappingConfig
|
||||
{
|
||||
if (null === $this->mapping) {
|
||||
$this->_usedProperties['mapping'] = true;
|
||||
$this->mapping = new \Symfony\Config\Framework\Serializer\MappingConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "mapping()" has already been initialized. You cannot pass values the second time you call mapping().');
|
||||
}
|
||||
|
||||
return $this->mapping;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultContext(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['defaultContext'] = true;
|
||||
$this->defaultContext = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function namedSerializer(string $name, array $value = []): \Symfony\Config\Framework\Serializer\NamedSerializerConfig
|
||||
{
|
||||
if (!isset($this->namedSerializers[$name])) {
|
||||
$this->_usedProperties['namedSerializers'] = true;
|
||||
$this->namedSerializers[$name] = new \Symfony\Config\Framework\Serializer\NamedSerializerConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "namedSerializer()" has already been initialized. You cannot pass values the second time you call namedSerializer().');
|
||||
}
|
||||
|
||||
return $this->namedSerializers[$name];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('enable_attributes', $value)) {
|
||||
$this->_usedProperties['enableAttributes'] = true;
|
||||
$this->enableAttributes = $value['enable_attributes'];
|
||||
unset($value['enable_attributes']);
|
||||
}
|
||||
|
||||
if (array_key_exists('name_converter', $value)) {
|
||||
$this->_usedProperties['nameConverter'] = true;
|
||||
$this->nameConverter = $value['name_converter'];
|
||||
unset($value['name_converter']);
|
||||
}
|
||||
|
||||
if (array_key_exists('circular_reference_handler', $value)) {
|
||||
$this->_usedProperties['circularReferenceHandler'] = true;
|
||||
$this->circularReferenceHandler = $value['circular_reference_handler'];
|
||||
unset($value['circular_reference_handler']);
|
||||
}
|
||||
|
||||
if (array_key_exists('max_depth_handler', $value)) {
|
||||
$this->_usedProperties['maxDepthHandler'] = true;
|
||||
$this->maxDepthHandler = $value['max_depth_handler'];
|
||||
unset($value['max_depth_handler']);
|
||||
}
|
||||
|
||||
if (array_key_exists('mapping', $value)) {
|
||||
$this->_usedProperties['mapping'] = true;
|
||||
$this->mapping = new \Symfony\Config\Framework\Serializer\MappingConfig($value['mapping']);
|
||||
unset($value['mapping']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_context', $value)) {
|
||||
$this->_usedProperties['defaultContext'] = true;
|
||||
$this->defaultContext = $value['default_context'];
|
||||
unset($value['default_context']);
|
||||
}
|
||||
|
||||
if (array_key_exists('named_serializers', $value)) {
|
||||
$this->_usedProperties['namedSerializers'] = true;
|
||||
$this->namedSerializers = array_map(fn ($v) => new \Symfony\Config\Framework\Serializer\NamedSerializerConfig($v), $value['named_serializers']);
|
||||
unset($value['named_serializers']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['enableAttributes'])) {
|
||||
$output['enable_attributes'] = $this->enableAttributes;
|
||||
}
|
||||
if (isset($this->_usedProperties['nameConverter'])) {
|
||||
$output['name_converter'] = $this->nameConverter;
|
||||
}
|
||||
if (isset($this->_usedProperties['circularReferenceHandler'])) {
|
||||
$output['circular_reference_handler'] = $this->circularReferenceHandler;
|
||||
}
|
||||
if (isset($this->_usedProperties['maxDepthHandler'])) {
|
||||
$output['max_depth_handler'] = $this->maxDepthHandler;
|
||||
}
|
||||
if (isset($this->_usedProperties['mapping'])) {
|
||||
$output['mapping'] = $this->mapping->toArray();
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultContext'])) {
|
||||
$output['default_context'] = $this->defaultContext;
|
||||
}
|
||||
if (isset($this->_usedProperties['namedSerializers'])) {
|
||||
$output['named_serializers'] = array_map(fn ($v) => $v->toArray(), $this->namedSerializers);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
448
var/cache/dev/Symfony/Config/Framework/SessionConfig.php
vendored
Normal file
448
var/cache/dev/Symfony/Config/Framework/SessionConfig.php
vendored
Normal file
@@ -0,0 +1,448 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 SessionConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $storageFactoryId;
|
||||
private $handlerId;
|
||||
private $name;
|
||||
private $cookieLifetime;
|
||||
private $cookiePath;
|
||||
private $cookieDomain;
|
||||
private $cookieSecure;
|
||||
private $cookieHttponly;
|
||||
private $cookieSamesite;
|
||||
private $useCookies;
|
||||
private $gcDivisor;
|
||||
private $gcProbability;
|
||||
private $gcMaxlifetime;
|
||||
private $savePath;
|
||||
private $metadataUpdateThreshold;
|
||||
private $sidLength;
|
||||
private $sidBitsPerCharacter;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'session.storage.factory.native'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function storageFactoryId($value): static
|
||||
{
|
||||
$this->_usedProperties['storageFactoryId'] = true;
|
||||
$this->storageFactoryId = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to using the native session handler, or to the native *file* session handler if "save_path" is not null.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function handlerId($value): static
|
||||
{
|
||||
$this->_usedProperties['handlerId'] = true;
|
||||
$this->handlerId = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function name($value): static
|
||||
{
|
||||
$this->_usedProperties['name'] = true;
|
||||
$this->name = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function cookieLifetime($value): static
|
||||
{
|
||||
$this->_usedProperties['cookieLifetime'] = true;
|
||||
$this->cookieLifetime = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function cookiePath($value): static
|
||||
{
|
||||
$this->_usedProperties['cookiePath'] = true;
|
||||
$this->cookiePath = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function cookieDomain($value): static
|
||||
{
|
||||
$this->_usedProperties['cookieDomain'] = true;
|
||||
$this->cookieDomain = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'auto'
|
||||
* @param ParamConfigurator|true|false|'auto' $value
|
||||
* @return $this
|
||||
*/
|
||||
public function cookieSecure($value): static
|
||||
{
|
||||
$this->_usedProperties['cookieSecure'] = true;
|
||||
$this->cookieSecure = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function cookieHttponly($value): static
|
||||
{
|
||||
$this->_usedProperties['cookieHttponly'] = true;
|
||||
$this->cookieHttponly = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'lax'
|
||||
* @param ParamConfigurator|NULL|'lax'|'strict'|'none' $value
|
||||
* @return $this
|
||||
*/
|
||||
public function cookieSamesite($value): static
|
||||
{
|
||||
$this->_usedProperties['cookieSamesite'] = true;
|
||||
$this->cookieSamesite = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function useCookies($value): static
|
||||
{
|
||||
$this->_usedProperties['useCookies'] = true;
|
||||
$this->useCookies = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function gcDivisor($value): static
|
||||
{
|
||||
$this->_usedProperties['gcDivisor'] = true;
|
||||
$this->gcDivisor = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function gcProbability($value): static
|
||||
{
|
||||
$this->_usedProperties['gcProbability'] = true;
|
||||
$this->gcProbability = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function gcMaxlifetime($value): static
|
||||
{
|
||||
$this->_usedProperties['gcMaxlifetime'] = true;
|
||||
$this->gcMaxlifetime = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to "%kernel.cache_dir%/sessions" if the "handler_id" option is not null.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function savePath($value): static
|
||||
{
|
||||
$this->_usedProperties['savePath'] = true;
|
||||
$this->savePath = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Seconds to wait between 2 session metadata updates.
|
||||
* @default 0
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function metadataUpdateThreshold($value): static
|
||||
{
|
||||
$this->_usedProperties['metadataUpdateThreshold'] = true;
|
||||
$this->metadataUpdateThreshold = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|int $value
|
||||
* @deprecated Setting the "session.sid_length" configuration option is deprecated. It will be removed in version 8.0. No alternative is provided as PHP 8.4 has deprecated the related option.
|
||||
* @return $this
|
||||
*/
|
||||
public function sidLength($value): static
|
||||
{
|
||||
$this->_usedProperties['sidLength'] = true;
|
||||
$this->sidLength = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|int $value
|
||||
* @deprecated Setting the "session.sid_bits_per_character" configuration option is deprecated. It will be removed in version 8.0. No alternative is provided as PHP 8.4 has deprecated the related option.
|
||||
* @return $this
|
||||
*/
|
||||
public function sidBitsPerCharacter($value): static
|
||||
{
|
||||
$this->_usedProperties['sidBitsPerCharacter'] = true;
|
||||
$this->sidBitsPerCharacter = $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 (array_key_exists('storage_factory_id', $value)) {
|
||||
$this->_usedProperties['storageFactoryId'] = true;
|
||||
$this->storageFactoryId = $value['storage_factory_id'];
|
||||
unset($value['storage_factory_id']);
|
||||
}
|
||||
|
||||
if (array_key_exists('handler_id', $value)) {
|
||||
$this->_usedProperties['handlerId'] = true;
|
||||
$this->handlerId = $value['handler_id'];
|
||||
unset($value['handler_id']);
|
||||
}
|
||||
|
||||
if (array_key_exists('name', $value)) {
|
||||
$this->_usedProperties['name'] = true;
|
||||
$this->name = $value['name'];
|
||||
unset($value['name']);
|
||||
}
|
||||
|
||||
if (array_key_exists('cookie_lifetime', $value)) {
|
||||
$this->_usedProperties['cookieLifetime'] = true;
|
||||
$this->cookieLifetime = $value['cookie_lifetime'];
|
||||
unset($value['cookie_lifetime']);
|
||||
}
|
||||
|
||||
if (array_key_exists('cookie_path', $value)) {
|
||||
$this->_usedProperties['cookiePath'] = true;
|
||||
$this->cookiePath = $value['cookie_path'];
|
||||
unset($value['cookie_path']);
|
||||
}
|
||||
|
||||
if (array_key_exists('cookie_domain', $value)) {
|
||||
$this->_usedProperties['cookieDomain'] = true;
|
||||
$this->cookieDomain = $value['cookie_domain'];
|
||||
unset($value['cookie_domain']);
|
||||
}
|
||||
|
||||
if (array_key_exists('cookie_secure', $value)) {
|
||||
$this->_usedProperties['cookieSecure'] = true;
|
||||
$this->cookieSecure = $value['cookie_secure'];
|
||||
unset($value['cookie_secure']);
|
||||
}
|
||||
|
||||
if (array_key_exists('cookie_httponly', $value)) {
|
||||
$this->_usedProperties['cookieHttponly'] = true;
|
||||
$this->cookieHttponly = $value['cookie_httponly'];
|
||||
unset($value['cookie_httponly']);
|
||||
}
|
||||
|
||||
if (array_key_exists('cookie_samesite', $value)) {
|
||||
$this->_usedProperties['cookieSamesite'] = true;
|
||||
$this->cookieSamesite = $value['cookie_samesite'];
|
||||
unset($value['cookie_samesite']);
|
||||
}
|
||||
|
||||
if (array_key_exists('use_cookies', $value)) {
|
||||
$this->_usedProperties['useCookies'] = true;
|
||||
$this->useCookies = $value['use_cookies'];
|
||||
unset($value['use_cookies']);
|
||||
}
|
||||
|
||||
if (array_key_exists('gc_divisor', $value)) {
|
||||
$this->_usedProperties['gcDivisor'] = true;
|
||||
$this->gcDivisor = $value['gc_divisor'];
|
||||
unset($value['gc_divisor']);
|
||||
}
|
||||
|
||||
if (array_key_exists('gc_probability', $value)) {
|
||||
$this->_usedProperties['gcProbability'] = true;
|
||||
$this->gcProbability = $value['gc_probability'];
|
||||
unset($value['gc_probability']);
|
||||
}
|
||||
|
||||
if (array_key_exists('gc_maxlifetime', $value)) {
|
||||
$this->_usedProperties['gcMaxlifetime'] = true;
|
||||
$this->gcMaxlifetime = $value['gc_maxlifetime'];
|
||||
unset($value['gc_maxlifetime']);
|
||||
}
|
||||
|
||||
if (array_key_exists('save_path', $value)) {
|
||||
$this->_usedProperties['savePath'] = true;
|
||||
$this->savePath = $value['save_path'];
|
||||
unset($value['save_path']);
|
||||
}
|
||||
|
||||
if (array_key_exists('metadata_update_threshold', $value)) {
|
||||
$this->_usedProperties['metadataUpdateThreshold'] = true;
|
||||
$this->metadataUpdateThreshold = $value['metadata_update_threshold'];
|
||||
unset($value['metadata_update_threshold']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sid_length', $value)) {
|
||||
$this->_usedProperties['sidLength'] = true;
|
||||
$this->sidLength = $value['sid_length'];
|
||||
unset($value['sid_length']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sid_bits_per_character', $value)) {
|
||||
$this->_usedProperties['sidBitsPerCharacter'] = true;
|
||||
$this->sidBitsPerCharacter = $value['sid_bits_per_character'];
|
||||
unset($value['sid_bits_per_character']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['storageFactoryId'])) {
|
||||
$output['storage_factory_id'] = $this->storageFactoryId;
|
||||
}
|
||||
if (isset($this->_usedProperties['handlerId'])) {
|
||||
$output['handler_id'] = $this->handlerId;
|
||||
}
|
||||
if (isset($this->_usedProperties['name'])) {
|
||||
$output['name'] = $this->name;
|
||||
}
|
||||
if (isset($this->_usedProperties['cookieLifetime'])) {
|
||||
$output['cookie_lifetime'] = $this->cookieLifetime;
|
||||
}
|
||||
if (isset($this->_usedProperties['cookiePath'])) {
|
||||
$output['cookie_path'] = $this->cookiePath;
|
||||
}
|
||||
if (isset($this->_usedProperties['cookieDomain'])) {
|
||||
$output['cookie_domain'] = $this->cookieDomain;
|
||||
}
|
||||
if (isset($this->_usedProperties['cookieSecure'])) {
|
||||
$output['cookie_secure'] = $this->cookieSecure;
|
||||
}
|
||||
if (isset($this->_usedProperties['cookieHttponly'])) {
|
||||
$output['cookie_httponly'] = $this->cookieHttponly;
|
||||
}
|
||||
if (isset($this->_usedProperties['cookieSamesite'])) {
|
||||
$output['cookie_samesite'] = $this->cookieSamesite;
|
||||
}
|
||||
if (isset($this->_usedProperties['useCookies'])) {
|
||||
$output['use_cookies'] = $this->useCookies;
|
||||
}
|
||||
if (isset($this->_usedProperties['gcDivisor'])) {
|
||||
$output['gc_divisor'] = $this->gcDivisor;
|
||||
}
|
||||
if (isset($this->_usedProperties['gcProbability'])) {
|
||||
$output['gc_probability'] = $this->gcProbability;
|
||||
}
|
||||
if (isset($this->_usedProperties['gcMaxlifetime'])) {
|
||||
$output['gc_maxlifetime'] = $this->gcMaxlifetime;
|
||||
}
|
||||
if (isset($this->_usedProperties['savePath'])) {
|
||||
$output['save_path'] = $this->savePath;
|
||||
}
|
||||
if (isset($this->_usedProperties['metadataUpdateThreshold'])) {
|
||||
$output['metadata_update_threshold'] = $this->metadataUpdateThreshold;
|
||||
}
|
||||
if (isset($this->_usedProperties['sidLength'])) {
|
||||
$output['sid_length'] = $this->sidLength;
|
||||
}
|
||||
if (isset($this->_usedProperties['sidBitsPerCharacter'])) {
|
||||
$output['sid_bits_per_character'] = $this->sidBitsPerCharacter;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Framework/SsiConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Framework/SsiConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 SsiConfig
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
120
var/cache/dev/Symfony/Config/Framework/Translator/GlobalConfig.php
vendored
Normal file
120
var/cache/dev/Symfony/Config/Framework/Translator/GlobalConfig.php
vendored
Normal file
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Translator;
|
||||
|
||||
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 GlobalConfig
|
||||
{
|
||||
private $value;
|
||||
private $message;
|
||||
private $parameters;
|
||||
private $domain;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function value(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['value'] = true;
|
||||
$this->value = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function message($value): static
|
||||
{
|
||||
$this->_usedProperties['message'] = true;
|
||||
$this->message = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function parameter(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['parameters'] = true;
|
||||
$this->parameters[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function domain($value): static
|
||||
{
|
||||
$this->_usedProperties['domain'] = true;
|
||||
$this->domain = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('value', $value)) {
|
||||
$this->_usedProperties['value'] = true;
|
||||
$this->value = $value['value'];
|
||||
unset($value['value']);
|
||||
}
|
||||
|
||||
if (array_key_exists('message', $value)) {
|
||||
$this->_usedProperties['message'] = true;
|
||||
$this->message = $value['message'];
|
||||
unset($value['message']);
|
||||
}
|
||||
|
||||
if (array_key_exists('parameters', $value)) {
|
||||
$this->_usedProperties['parameters'] = true;
|
||||
$this->parameters = $value['parameters'];
|
||||
unset($value['parameters']);
|
||||
}
|
||||
|
||||
if (array_key_exists('domain', $value)) {
|
||||
$this->_usedProperties['domain'] = true;
|
||||
$this->domain = $value['domain'];
|
||||
unset($value['domain']);
|
||||
}
|
||||
|
||||
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['value'])) {
|
||||
$output['value'] = $this->value;
|
||||
}
|
||||
if (isset($this->_usedProperties['message'])) {
|
||||
$output['message'] = $this->message;
|
||||
}
|
||||
if (isset($this->_usedProperties['parameters'])) {
|
||||
$output['parameters'] = $this->parameters;
|
||||
}
|
||||
if (isset($this->_usedProperties['domain'])) {
|
||||
$output['domain'] = $this->domain;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
98
var/cache/dev/Symfony/Config/Framework/Translator/ProviderConfig.php
vendored
Normal file
98
var/cache/dev/Symfony/Config/Framework/Translator/ProviderConfig.php
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Translator;
|
||||
|
||||
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 ProviderConfig
|
||||
{
|
||||
private $dsn;
|
||||
private $domains;
|
||||
private $locales;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function dsn($value): static
|
||||
{
|
||||
$this->_usedProperties['dsn'] = true;
|
||||
$this->dsn = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function domains(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['domains'] = true;
|
||||
$this->domains = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function locales(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['locales'] = true;
|
||||
$this->locales = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('dsn', $value)) {
|
||||
$this->_usedProperties['dsn'] = true;
|
||||
$this->dsn = $value['dsn'];
|
||||
unset($value['dsn']);
|
||||
}
|
||||
|
||||
if (array_key_exists('domains', $value)) {
|
||||
$this->_usedProperties['domains'] = true;
|
||||
$this->domains = $value['domains'];
|
||||
unset($value['domains']);
|
||||
}
|
||||
|
||||
if (array_key_exists('locales', $value)) {
|
||||
$this->_usedProperties['locales'] = true;
|
||||
$this->locales = $value['locales'];
|
||||
unset($value['locales']);
|
||||
}
|
||||
|
||||
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['dsn'])) {
|
||||
$output['dsn'] = $this->dsn;
|
||||
}
|
||||
if (isset($this->_usedProperties['domains'])) {
|
||||
$output['domains'] = $this->domains;
|
||||
}
|
||||
if (isset($this->_usedProperties['locales'])) {
|
||||
$output['locales'] = $this->locales;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
167
var/cache/dev/Symfony/Config/Framework/Translator/PseudoLocalizationConfig.php
vendored
Normal file
167
var/cache/dev/Symfony/Config/Framework/Translator/PseudoLocalizationConfig.php
vendored
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Translator;
|
||||
|
||||
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 PseudoLocalizationConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $accents;
|
||||
private $expansionFactor;
|
||||
private $brackets;
|
||||
private $parseHtml;
|
||||
private $localizableHtmlAttributes;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function accents($value): static
|
||||
{
|
||||
$this->_usedProperties['accents'] = true;
|
||||
$this->accents = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 1.0
|
||||
* @param ParamConfigurator|float $value
|
||||
* @return $this
|
||||
*/
|
||||
public function expansionFactor($value): static
|
||||
{
|
||||
$this->_usedProperties['expansionFactor'] = true;
|
||||
$this->expansionFactor = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function brackets($value): static
|
||||
{
|
||||
$this->_usedProperties['brackets'] = true;
|
||||
$this->brackets = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function parseHtml($value): static
|
||||
{
|
||||
$this->_usedProperties['parseHtml'] = true;
|
||||
$this->parseHtml = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function localizableHtmlAttributes(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['localizableHtmlAttributes'] = true;
|
||||
$this->localizableHtmlAttributes = $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 (array_key_exists('accents', $value)) {
|
||||
$this->_usedProperties['accents'] = true;
|
||||
$this->accents = $value['accents'];
|
||||
unset($value['accents']);
|
||||
}
|
||||
|
||||
if (array_key_exists('expansion_factor', $value)) {
|
||||
$this->_usedProperties['expansionFactor'] = true;
|
||||
$this->expansionFactor = $value['expansion_factor'];
|
||||
unset($value['expansion_factor']);
|
||||
}
|
||||
|
||||
if (array_key_exists('brackets', $value)) {
|
||||
$this->_usedProperties['brackets'] = true;
|
||||
$this->brackets = $value['brackets'];
|
||||
unset($value['brackets']);
|
||||
}
|
||||
|
||||
if (array_key_exists('parse_html', $value)) {
|
||||
$this->_usedProperties['parseHtml'] = true;
|
||||
$this->parseHtml = $value['parse_html'];
|
||||
unset($value['parse_html']);
|
||||
}
|
||||
|
||||
if (array_key_exists('localizable_html_attributes', $value)) {
|
||||
$this->_usedProperties['localizableHtmlAttributes'] = true;
|
||||
$this->localizableHtmlAttributes = $value['localizable_html_attributes'];
|
||||
unset($value['localizable_html_attributes']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['accents'])) {
|
||||
$output['accents'] = $this->accents;
|
||||
}
|
||||
if (isset($this->_usedProperties['expansionFactor'])) {
|
||||
$output['expansion_factor'] = $this->expansionFactor;
|
||||
}
|
||||
if (isset($this->_usedProperties['brackets'])) {
|
||||
$output['brackets'] = $this->brackets;
|
||||
}
|
||||
if (isset($this->_usedProperties['parseHtml'])) {
|
||||
$output['parse_html'] = $this->parseHtml;
|
||||
}
|
||||
if (isset($this->_usedProperties['localizableHtmlAttributes'])) {
|
||||
$output['localizable_html_attributes'] = $this->localizableHtmlAttributes;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
282
var/cache/dev/Symfony/Config/Framework/TranslatorConfig.php
vendored
Normal file
282
var/cache/dev/Symfony/Config/Framework/TranslatorConfig.php
vendored
Normal file
@@ -0,0 +1,282 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Translator'.\DIRECTORY_SEPARATOR.'PseudoLocalizationConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Translator'.\DIRECTORY_SEPARATOR.'ProviderConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Translator'.\DIRECTORY_SEPARATOR.'GlobalConfig.php';
|
||||
|
||||
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 TranslatorConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $fallbacks;
|
||||
private $logging;
|
||||
private $formatter;
|
||||
private $cacheDir;
|
||||
private $defaultPath;
|
||||
private $paths;
|
||||
private $pseudoLocalization;
|
||||
private $providers;
|
||||
private $globals;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function fallbacks(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['fallbacks'] = true;
|
||||
$this->fallbacks = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function logging($value): static
|
||||
{
|
||||
$this->_usedProperties['logging'] = true;
|
||||
$this->logging = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'translator.formatter.default'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function formatter($value): static
|
||||
{
|
||||
$this->_usedProperties['formatter'] = true;
|
||||
$this->formatter = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default '%kernel.cache_dir%/translations'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function cacheDir($value): static
|
||||
{
|
||||
$this->_usedProperties['cacheDir'] = true;
|
||||
$this->cacheDir = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The default path used to load translations.
|
||||
* @default '%kernel.project_dir%/translations'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultPath($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultPath'] = true;
|
||||
$this->defaultPath = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function paths(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['paths'] = true;
|
||||
$this->paths = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default {"enabled":false,"accents":true,"expansion_factor":1,"brackets":true,"parse_html":false,"localizable_html_attributes":[]}
|
||||
*/
|
||||
public function pseudoLocalization(array $value = []): \Symfony\Config\Framework\Translator\PseudoLocalizationConfig
|
||||
{
|
||||
if (null === $this->pseudoLocalization) {
|
||||
$this->_usedProperties['pseudoLocalization'] = true;
|
||||
$this->pseudoLocalization = new \Symfony\Config\Framework\Translator\PseudoLocalizationConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "pseudoLocalization()" has already been initialized. You cannot pass values the second time you call pseudoLocalization().');
|
||||
}
|
||||
|
||||
return $this->pseudoLocalization;
|
||||
}
|
||||
|
||||
/**
|
||||
* Translation providers you can read/write your translations from.
|
||||
*/
|
||||
public function provider(string $name, array $value = []): \Symfony\Config\Framework\Translator\ProviderConfig
|
||||
{
|
||||
if (!isset($this->providers[$name])) {
|
||||
$this->_usedProperties['providers'] = true;
|
||||
$this->providers[$name] = new \Symfony\Config\Framework\Translator\ProviderConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "provider()" has already been initialized. You cannot pass values the second time you call provider().');
|
||||
}
|
||||
|
||||
return $this->providers[$name];
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* Global parameters.
|
||||
* @example 3.14
|
||||
* @return \Symfony\Config\Framework\Translator\GlobalConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Framework\Translator\GlobalConfig : static)
|
||||
*/
|
||||
public function global(string $name, mixed $value = []): \Symfony\Config\Framework\Translator\GlobalConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['globals'] = true;
|
||||
$this->globals[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!isset($this->globals[$name]) || !$this->globals[$name] instanceof \Symfony\Config\Framework\Translator\GlobalConfig) {
|
||||
$this->_usedProperties['globals'] = true;
|
||||
$this->globals[$name] = new \Symfony\Config\Framework\Translator\GlobalConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "global()" has already been initialized. You cannot pass values the second time you call global().');
|
||||
}
|
||||
|
||||
return $this->globals[$name];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('fallbacks', $value)) {
|
||||
$this->_usedProperties['fallbacks'] = true;
|
||||
$this->fallbacks = $value['fallbacks'];
|
||||
unset($value['fallbacks']);
|
||||
}
|
||||
|
||||
if (array_key_exists('logging', $value)) {
|
||||
$this->_usedProperties['logging'] = true;
|
||||
$this->logging = $value['logging'];
|
||||
unset($value['logging']);
|
||||
}
|
||||
|
||||
if (array_key_exists('formatter', $value)) {
|
||||
$this->_usedProperties['formatter'] = true;
|
||||
$this->formatter = $value['formatter'];
|
||||
unset($value['formatter']);
|
||||
}
|
||||
|
||||
if (array_key_exists('cache_dir', $value)) {
|
||||
$this->_usedProperties['cacheDir'] = true;
|
||||
$this->cacheDir = $value['cache_dir'];
|
||||
unset($value['cache_dir']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_path', $value)) {
|
||||
$this->_usedProperties['defaultPath'] = true;
|
||||
$this->defaultPath = $value['default_path'];
|
||||
unset($value['default_path']);
|
||||
}
|
||||
|
||||
if (array_key_exists('paths', $value)) {
|
||||
$this->_usedProperties['paths'] = true;
|
||||
$this->paths = $value['paths'];
|
||||
unset($value['paths']);
|
||||
}
|
||||
|
||||
if (array_key_exists('pseudo_localization', $value)) {
|
||||
$this->_usedProperties['pseudoLocalization'] = true;
|
||||
$this->pseudoLocalization = \is_array($value['pseudo_localization']) ? new \Symfony\Config\Framework\Translator\PseudoLocalizationConfig($value['pseudo_localization']) : $value['pseudo_localization'];
|
||||
unset($value['pseudo_localization']);
|
||||
}
|
||||
|
||||
if (array_key_exists('providers', $value)) {
|
||||
$this->_usedProperties['providers'] = true;
|
||||
$this->providers = array_map(fn ($v) => new \Symfony\Config\Framework\Translator\ProviderConfig($v), $value['providers']);
|
||||
unset($value['providers']);
|
||||
}
|
||||
|
||||
if (array_key_exists('globals', $value)) {
|
||||
$this->_usedProperties['globals'] = true;
|
||||
$this->globals = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Framework\Translator\GlobalConfig($v) : $v, $value['globals']);
|
||||
unset($value['globals']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['fallbacks'])) {
|
||||
$output['fallbacks'] = $this->fallbacks;
|
||||
}
|
||||
if (isset($this->_usedProperties['logging'])) {
|
||||
$output['logging'] = $this->logging;
|
||||
}
|
||||
if (isset($this->_usedProperties['formatter'])) {
|
||||
$output['formatter'] = $this->formatter;
|
||||
}
|
||||
if (isset($this->_usedProperties['cacheDir'])) {
|
||||
$output['cache_dir'] = $this->cacheDir;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultPath'])) {
|
||||
$output['default_path'] = $this->defaultPath;
|
||||
}
|
||||
if (isset($this->_usedProperties['paths'])) {
|
||||
$output['paths'] = $this->paths;
|
||||
}
|
||||
if (isset($this->_usedProperties['pseudoLocalization'])) {
|
||||
$output['pseudo_localization'] = $this->pseudoLocalization instanceof \Symfony\Config\Framework\Translator\PseudoLocalizationConfig ? $this->pseudoLocalization->toArray() : $this->pseudoLocalization;
|
||||
}
|
||||
if (isset($this->_usedProperties['providers'])) {
|
||||
$output['providers'] = array_map(fn ($v) => $v->toArray(), $this->providers);
|
||||
}
|
||||
if (isset($this->_usedProperties['globals'])) {
|
||||
$output['globals'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Framework\Translator\GlobalConfig ? $v->toArray() : $v, $this->globals);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Framework/TypeInfoConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Framework/TypeInfoConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 TypeInfoConfig
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
167
var/cache/dev/Symfony/Config/Framework/UidConfig.php
vendored
Normal file
167
var/cache/dev/Symfony/Config/Framework/UidConfig.php
vendored
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 UidConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $defaultUuidVersion;
|
||||
private $nameBasedUuidVersion;
|
||||
private $nameBasedUuidNamespace;
|
||||
private $timeBasedUuidVersion;
|
||||
private $timeBasedUuidNode;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 7
|
||||
* @param ParamConfigurator|7|6|4|1 $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultUuidVersion($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultUuidVersion'] = true;
|
||||
$this->defaultUuidVersion = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 5
|
||||
* @param ParamConfigurator|5|3 $value
|
||||
* @return $this
|
||||
*/
|
||||
public function nameBasedUuidVersion($value): static
|
||||
{
|
||||
$this->_usedProperties['nameBasedUuidVersion'] = true;
|
||||
$this->nameBasedUuidVersion = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function nameBasedUuidNamespace($value): static
|
||||
{
|
||||
$this->_usedProperties['nameBasedUuidNamespace'] = true;
|
||||
$this->nameBasedUuidNamespace = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 7
|
||||
* @param ParamConfigurator|7|6|1 $value
|
||||
* @return $this
|
||||
*/
|
||||
public function timeBasedUuidVersion($value): static
|
||||
{
|
||||
$this->_usedProperties['timeBasedUuidVersion'] = true;
|
||||
$this->timeBasedUuidVersion = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function timeBasedUuidNode($value): static
|
||||
{
|
||||
$this->_usedProperties['timeBasedUuidNode'] = true;
|
||||
$this->timeBasedUuidNode = $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 (array_key_exists('default_uuid_version', $value)) {
|
||||
$this->_usedProperties['defaultUuidVersion'] = true;
|
||||
$this->defaultUuidVersion = $value['default_uuid_version'];
|
||||
unset($value['default_uuid_version']);
|
||||
}
|
||||
|
||||
if (array_key_exists('name_based_uuid_version', $value)) {
|
||||
$this->_usedProperties['nameBasedUuidVersion'] = true;
|
||||
$this->nameBasedUuidVersion = $value['name_based_uuid_version'];
|
||||
unset($value['name_based_uuid_version']);
|
||||
}
|
||||
|
||||
if (array_key_exists('name_based_uuid_namespace', $value)) {
|
||||
$this->_usedProperties['nameBasedUuidNamespace'] = true;
|
||||
$this->nameBasedUuidNamespace = $value['name_based_uuid_namespace'];
|
||||
unset($value['name_based_uuid_namespace']);
|
||||
}
|
||||
|
||||
if (array_key_exists('time_based_uuid_version', $value)) {
|
||||
$this->_usedProperties['timeBasedUuidVersion'] = true;
|
||||
$this->timeBasedUuidVersion = $value['time_based_uuid_version'];
|
||||
unset($value['time_based_uuid_version']);
|
||||
}
|
||||
|
||||
if (array_key_exists('time_based_uuid_node', $value)) {
|
||||
$this->_usedProperties['timeBasedUuidNode'] = true;
|
||||
$this->timeBasedUuidNode = $value['time_based_uuid_node'];
|
||||
unset($value['time_based_uuid_node']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultUuidVersion'])) {
|
||||
$output['default_uuid_version'] = $this->defaultUuidVersion;
|
||||
}
|
||||
if (isset($this->_usedProperties['nameBasedUuidVersion'])) {
|
||||
$output['name_based_uuid_version'] = $this->nameBasedUuidVersion;
|
||||
}
|
||||
if (isset($this->_usedProperties['nameBasedUuidNamespace'])) {
|
||||
$output['name_based_uuid_namespace'] = $this->nameBasedUuidNamespace;
|
||||
}
|
||||
if (isset($this->_usedProperties['timeBasedUuidVersion'])) {
|
||||
$output['time_based_uuid_version'] = $this->timeBasedUuidVersion;
|
||||
}
|
||||
if (isset($this->_usedProperties['timeBasedUuidNode'])) {
|
||||
$output['time_based_uuid_node'] = $this->timeBasedUuidNode;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Framework/Validation/AutoMappingConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Framework/Validation/AutoMappingConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Validation;
|
||||
|
||||
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 AutoMappingConfig
|
||||
{
|
||||
private $services;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function services(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['services'] = true;
|
||||
$this->services = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('services', $value)) {
|
||||
$this->_usedProperties['services'] = true;
|
||||
$this->services = $value['services'];
|
||||
unset($value['services']);
|
||||
}
|
||||
|
||||
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['services'])) {
|
||||
$output['services'] = $this->services;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Framework/Validation/MappingConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Framework/Validation/MappingConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Validation;
|
||||
|
||||
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 MappingConfig
|
||||
{
|
||||
private $paths;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function paths(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['paths'] = true;
|
||||
$this->paths = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('paths', $value)) {
|
||||
$this->_usedProperties['paths'] = true;
|
||||
$this->paths = $value['paths'];
|
||||
unset($value['paths']);
|
||||
}
|
||||
|
||||
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['paths'])) {
|
||||
$output['paths'] = $this->paths;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
77
var/cache/dev/Symfony/Config/Framework/Validation/NotCompromisedPasswordConfig.php
vendored
Normal file
77
var/cache/dev/Symfony/Config/Framework/Validation/NotCompromisedPasswordConfig.php
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Validation;
|
||||
|
||||
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 NotCompromisedPasswordConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $endpoint;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* When disabled, compromised passwords will be accepted as valid.
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* API endpoint for the NotCompromisedPassword Validator.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function endpoint($value): static
|
||||
{
|
||||
$this->_usedProperties['endpoint'] = true;
|
||||
$this->endpoint = $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 (array_key_exists('endpoint', $value)) {
|
||||
$this->_usedProperties['endpoint'] = true;
|
||||
$this->endpoint = $value['endpoint'];
|
||||
unset($value['endpoint']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['endpoint'])) {
|
||||
$output['endpoint'] = $this->endpoint;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
272
var/cache/dev/Symfony/Config/Framework/ValidationConfig.php
vendored
Normal file
272
var/cache/dev/Symfony/Config/Framework/ValidationConfig.php
vendored
Normal file
@@ -0,0 +1,272 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Validation'.\DIRECTORY_SEPARATOR.'MappingConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Validation'.\DIRECTORY_SEPARATOR.'NotCompromisedPasswordConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Validation'.\DIRECTORY_SEPARATOR.'AutoMappingConfig.php';
|
||||
|
||||
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 ValidationConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $cache;
|
||||
private $enableAttributes;
|
||||
private $staticMethod;
|
||||
private $translationDomain;
|
||||
private $emailValidationMode;
|
||||
private $mapping;
|
||||
private $notCompromisedPassword;
|
||||
private $disableTranslation;
|
||||
private $autoMapping;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @deprecated Setting the "validation.cache" configuration option is deprecated. It will be removed in version 8.0.
|
||||
* @return $this
|
||||
*/
|
||||
public function cache($value): static
|
||||
{
|
||||
$this->_usedProperties['cache'] = true;
|
||||
$this->cache = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enableAttributes($value): static
|
||||
{
|
||||
$this->_usedProperties['enableAttributes'] = true;
|
||||
$this->enableAttributes = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function staticMethod(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['staticMethod'] = true;
|
||||
$this->staticMethod = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'validators'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function translationDomain($value): static
|
||||
{
|
||||
$this->_usedProperties['translationDomain'] = true;
|
||||
$this->translationDomain = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'html5'
|
||||
* @param ParamConfigurator|'html5'|'html5-allow-no-tld'|'strict'|'loose' $value
|
||||
* @return $this
|
||||
*/
|
||||
public function emailValidationMode($value): static
|
||||
{
|
||||
$this->_usedProperties['emailValidationMode'] = true;
|
||||
$this->emailValidationMode = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default {"paths":[]}
|
||||
*/
|
||||
public function mapping(array $value = []): \Symfony\Config\Framework\Validation\MappingConfig
|
||||
{
|
||||
if (null === $this->mapping) {
|
||||
$this->_usedProperties['mapping'] = true;
|
||||
$this->mapping = new \Symfony\Config\Framework\Validation\MappingConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "mapping()" has already been initialized. You cannot pass values the second time you call mapping().');
|
||||
}
|
||||
|
||||
return $this->mapping;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default {"enabled":true,"endpoint":null}
|
||||
*/
|
||||
public function notCompromisedPassword(array $value = []): \Symfony\Config\Framework\Validation\NotCompromisedPasswordConfig
|
||||
{
|
||||
if (null === $this->notCompromisedPassword) {
|
||||
$this->_usedProperties['notCompromisedPassword'] = true;
|
||||
$this->notCompromisedPassword = new \Symfony\Config\Framework\Validation\NotCompromisedPasswordConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "notCompromisedPassword()" has already been initialized. You cannot pass values the second time you call notCompromisedPassword().');
|
||||
}
|
||||
|
||||
return $this->notCompromisedPassword;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function disableTranslation($value): static
|
||||
{
|
||||
$this->_usedProperties['disableTranslation'] = true;
|
||||
$this->disableTranslation = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A collection of namespaces for which auto-mapping will be enabled by default, or null to opt-in with the EnableAutoMapping constraint.
|
||||
* @example []
|
||||
* @example ["validator.property_info_loader"]
|
||||
*/
|
||||
public function autoMapping(string $namespace, array $value = []): \Symfony\Config\Framework\Validation\AutoMappingConfig
|
||||
{
|
||||
if (!isset($this->autoMapping[$namespace])) {
|
||||
$this->_usedProperties['autoMapping'] = true;
|
||||
$this->autoMapping[$namespace] = new \Symfony\Config\Framework\Validation\AutoMappingConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "autoMapping()" has already been initialized. You cannot pass values the second time you call autoMapping().');
|
||||
}
|
||||
|
||||
return $this->autoMapping[$namespace];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('cache', $value)) {
|
||||
$this->_usedProperties['cache'] = true;
|
||||
$this->cache = $value['cache'];
|
||||
unset($value['cache']);
|
||||
}
|
||||
|
||||
if (array_key_exists('enable_attributes', $value)) {
|
||||
$this->_usedProperties['enableAttributes'] = true;
|
||||
$this->enableAttributes = $value['enable_attributes'];
|
||||
unset($value['enable_attributes']);
|
||||
}
|
||||
|
||||
if (array_key_exists('static_method', $value)) {
|
||||
$this->_usedProperties['staticMethod'] = true;
|
||||
$this->staticMethod = $value['static_method'];
|
||||
unset($value['static_method']);
|
||||
}
|
||||
|
||||
if (array_key_exists('translation_domain', $value)) {
|
||||
$this->_usedProperties['translationDomain'] = true;
|
||||
$this->translationDomain = $value['translation_domain'];
|
||||
unset($value['translation_domain']);
|
||||
}
|
||||
|
||||
if (array_key_exists('email_validation_mode', $value)) {
|
||||
$this->_usedProperties['emailValidationMode'] = true;
|
||||
$this->emailValidationMode = $value['email_validation_mode'];
|
||||
unset($value['email_validation_mode']);
|
||||
}
|
||||
|
||||
if (array_key_exists('mapping', $value)) {
|
||||
$this->_usedProperties['mapping'] = true;
|
||||
$this->mapping = new \Symfony\Config\Framework\Validation\MappingConfig($value['mapping']);
|
||||
unset($value['mapping']);
|
||||
}
|
||||
|
||||
if (array_key_exists('not_compromised_password', $value)) {
|
||||
$this->_usedProperties['notCompromisedPassword'] = true;
|
||||
$this->notCompromisedPassword = new \Symfony\Config\Framework\Validation\NotCompromisedPasswordConfig($value['not_compromised_password']);
|
||||
unset($value['not_compromised_password']);
|
||||
}
|
||||
|
||||
if (array_key_exists('disable_translation', $value)) {
|
||||
$this->_usedProperties['disableTranslation'] = true;
|
||||
$this->disableTranslation = $value['disable_translation'];
|
||||
unset($value['disable_translation']);
|
||||
}
|
||||
|
||||
if (array_key_exists('auto_mapping', $value)) {
|
||||
$this->_usedProperties['autoMapping'] = true;
|
||||
$this->autoMapping = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Framework\Validation\AutoMappingConfig($v) : $v, $value['auto_mapping']);
|
||||
unset($value['auto_mapping']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['cache'])) {
|
||||
$output['cache'] = $this->cache;
|
||||
}
|
||||
if (isset($this->_usedProperties['enableAttributes'])) {
|
||||
$output['enable_attributes'] = $this->enableAttributes;
|
||||
}
|
||||
if (isset($this->_usedProperties['staticMethod'])) {
|
||||
$output['static_method'] = $this->staticMethod;
|
||||
}
|
||||
if (isset($this->_usedProperties['translationDomain'])) {
|
||||
$output['translation_domain'] = $this->translationDomain;
|
||||
}
|
||||
if (isset($this->_usedProperties['emailValidationMode'])) {
|
||||
$output['email_validation_mode'] = $this->emailValidationMode;
|
||||
}
|
||||
if (isset($this->_usedProperties['mapping'])) {
|
||||
$output['mapping'] = $this->mapping->toArray();
|
||||
}
|
||||
if (isset($this->_usedProperties['notCompromisedPassword'])) {
|
||||
$output['not_compromised_password'] = $this->notCompromisedPassword->toArray();
|
||||
}
|
||||
if (isset($this->_usedProperties['disableTranslation'])) {
|
||||
$output['disable_translation'] = $this->disableTranslation;
|
||||
}
|
||||
if (isset($this->_usedProperties['autoMapping'])) {
|
||||
$output['auto_mapping'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Framework\Validation\AutoMappingConfig ? $v->toArray() : $v, $this->autoMapping);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Framework/WebLinkConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Framework/WebLinkConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
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 WebLinkConfig
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
74
var/cache/dev/Symfony/Config/Framework/Webhook/RoutingConfig.php
vendored
Normal file
74
var/cache/dev/Symfony/Config/Framework/Webhook/RoutingConfig.php
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Webhook;
|
||||
|
||||
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 RoutingConfig
|
||||
{
|
||||
private $service;
|
||||
private $secret;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function service($value): static
|
||||
{
|
||||
$this->_usedProperties['service'] = true;
|
||||
$this->service = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function secret($value): static
|
||||
{
|
||||
$this->_usedProperties['secret'] = true;
|
||||
$this->secret = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('service', $value)) {
|
||||
$this->_usedProperties['service'] = true;
|
||||
$this->service = $value['service'];
|
||||
unset($value['service']);
|
||||
}
|
||||
|
||||
if (array_key_exists('secret', $value)) {
|
||||
$this->_usedProperties['secret'] = true;
|
||||
$this->secret = $value['secret'];
|
||||
unset($value['secret']);
|
||||
}
|
||||
|
||||
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['service'])) {
|
||||
$output['service'] = $this->service;
|
||||
}
|
||||
if (isset($this->_usedProperties['secret'])) {
|
||||
$output['secret'] = $this->secret;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
100
var/cache/dev/Symfony/Config/Framework/WebhookConfig.php
vendored
Normal file
100
var/cache/dev/Symfony/Config/Framework/WebhookConfig.php
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Webhook'.\DIRECTORY_SEPARATOR.'RoutingConfig.php';
|
||||
|
||||
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 WebhookConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $messageBus;
|
||||
private $routing;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The message bus to use.
|
||||
* @default 'messenger.default_bus'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function messageBus($value): static
|
||||
{
|
||||
$this->_usedProperties['messageBus'] = true;
|
||||
$this->messageBus = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function routing(string $type, array $value = []): \Symfony\Config\Framework\Webhook\RoutingConfig
|
||||
{
|
||||
if (!isset($this->routing[$type])) {
|
||||
$this->_usedProperties['routing'] = true;
|
||||
$this->routing[$type] = new \Symfony\Config\Framework\Webhook\RoutingConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "routing()" has already been initialized. You cannot pass values the second time you call routing().');
|
||||
}
|
||||
|
||||
return $this->routing[$type];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('message_bus', $value)) {
|
||||
$this->_usedProperties['messageBus'] = true;
|
||||
$this->messageBus = $value['message_bus'];
|
||||
unset($value['message_bus']);
|
||||
}
|
||||
|
||||
if (array_key_exists('routing', $value)) {
|
||||
$this->_usedProperties['routing'] = true;
|
||||
$this->routing = array_map(fn ($v) => new \Symfony\Config\Framework\Webhook\RoutingConfig($v), $value['routing']);
|
||||
unset($value['routing']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['messageBus'])) {
|
||||
$output['message_bus'] = $this->messageBus;
|
||||
}
|
||||
if (isset($this->_usedProperties['routing'])) {
|
||||
$output['routing'] = array_map(fn ($v) => $v->toArray(), $this->routing);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
302
var/cache/dev/Symfony/Config/Framework/Workflows/WorkflowsConfig.php
vendored
Normal file
302
var/cache/dev/Symfony/Config/Framework/Workflows/WorkflowsConfig.php
vendored
Normal file
@@ -0,0 +1,302 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Workflows;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'WorkflowsConfig'.\DIRECTORY_SEPARATOR.'AuditTrailConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'WorkflowsConfig'.\DIRECTORY_SEPARATOR.'MarkingStoreConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'WorkflowsConfig'.\DIRECTORY_SEPARATOR.'PlaceConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'WorkflowsConfig'.\DIRECTORY_SEPARATOR.'TransitionConfig.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 WorkflowsConfig
|
||||
{
|
||||
private $auditTrail;
|
||||
private $type;
|
||||
private $markingStore;
|
||||
private $supports;
|
||||
private $definitionValidators;
|
||||
private $supportStrategy;
|
||||
private $initialMarking;
|
||||
private $eventsToDispatch;
|
||||
private $places;
|
||||
private $transitions;
|
||||
private $metadata;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default {"enabled":false}
|
||||
*/
|
||||
public function auditTrail(array $value = []): \Symfony\Config\Framework\Workflows\WorkflowsConfig\AuditTrailConfig
|
||||
{
|
||||
if (null === $this->auditTrail) {
|
||||
$this->_usedProperties['auditTrail'] = true;
|
||||
$this->auditTrail = new \Symfony\Config\Framework\Workflows\WorkflowsConfig\AuditTrailConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "auditTrail()" has already been initialized. You cannot pass values the second time you call auditTrail().');
|
||||
}
|
||||
|
||||
return $this->auditTrail;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'state_machine'
|
||||
* @param ParamConfigurator|'workflow'|'state_machine' $value
|
||||
* @return $this
|
||||
*/
|
||||
public function type($value): static
|
||||
{
|
||||
$this->_usedProperties['type'] = true;
|
||||
$this->type = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function markingStore(array $value = []): \Symfony\Config\Framework\Workflows\WorkflowsConfig\MarkingStoreConfig
|
||||
{
|
||||
if (null === $this->markingStore) {
|
||||
$this->_usedProperties['markingStore'] = true;
|
||||
$this->markingStore = new \Symfony\Config\Framework\Workflows\WorkflowsConfig\MarkingStoreConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "markingStore()" has already been initialized. You cannot pass values the second time you call markingStore().');
|
||||
}
|
||||
|
||||
return $this->markingStore;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function supports(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['supports'] = true;
|
||||
$this->supports = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function definitionValidators(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['definitionValidators'] = true;
|
||||
$this->definitionValidators = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function supportStrategy($value): static
|
||||
{
|
||||
$this->_usedProperties['supportStrategy'] = true;
|
||||
$this->supportStrategy = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function initialMarking(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['initialMarking'] = true;
|
||||
$this->initialMarking = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Select which Transition events should be dispatched for this Workflow.
|
||||
* @example workflow.enter
|
||||
* @example workflow.transition
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function eventsToDispatch(mixed $value = NULL): static
|
||||
{
|
||||
$this->_usedProperties['eventsToDispatch'] = true;
|
||||
$this->eventsToDispatch = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Framework\Workflows\WorkflowsConfig\PlaceConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Framework\Workflows\WorkflowsConfig\PlaceConfig : static)
|
||||
*/
|
||||
public function place(mixed $value = []): \Symfony\Config\Framework\Workflows\WorkflowsConfig\PlaceConfig|static
|
||||
{
|
||||
$this->_usedProperties['places'] = true;
|
||||
if (!\is_array($value)) {
|
||||
$this->places[] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
return $this->places[] = new \Symfony\Config\Framework\Workflows\WorkflowsConfig\PlaceConfig($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Framework\Workflows\WorkflowsConfig\TransitionConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Framework\Workflows\WorkflowsConfig\TransitionConfig : static)
|
||||
*/
|
||||
public function transition(mixed $value = []): \Symfony\Config\Framework\Workflows\WorkflowsConfig\TransitionConfig|static
|
||||
{
|
||||
$this->_usedProperties['transitions'] = true;
|
||||
if (!\is_array($value)) {
|
||||
$this->transitions[] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
return $this->transitions[] = new \Symfony\Config\Framework\Workflows\WorkflowsConfig\TransitionConfig($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function metadata(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['metadata'] = true;
|
||||
$this->metadata = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('audit_trail', $value)) {
|
||||
$this->_usedProperties['auditTrail'] = true;
|
||||
$this->auditTrail = \is_array($value['audit_trail']) ? new \Symfony\Config\Framework\Workflows\WorkflowsConfig\AuditTrailConfig($value['audit_trail']) : $value['audit_trail'];
|
||||
unset($value['audit_trail']);
|
||||
}
|
||||
|
||||
if (array_key_exists('type', $value)) {
|
||||
$this->_usedProperties['type'] = true;
|
||||
$this->type = $value['type'];
|
||||
unset($value['type']);
|
||||
}
|
||||
|
||||
if (array_key_exists('marking_store', $value)) {
|
||||
$this->_usedProperties['markingStore'] = true;
|
||||
$this->markingStore = new \Symfony\Config\Framework\Workflows\WorkflowsConfig\MarkingStoreConfig($value['marking_store']);
|
||||
unset($value['marking_store']);
|
||||
}
|
||||
|
||||
if (array_key_exists('supports', $value)) {
|
||||
$this->_usedProperties['supports'] = true;
|
||||
$this->supports = $value['supports'];
|
||||
unset($value['supports']);
|
||||
}
|
||||
|
||||
if (array_key_exists('definition_validators', $value)) {
|
||||
$this->_usedProperties['definitionValidators'] = true;
|
||||
$this->definitionValidators = $value['definition_validators'];
|
||||
unset($value['definition_validators']);
|
||||
}
|
||||
|
||||
if (array_key_exists('support_strategy', $value)) {
|
||||
$this->_usedProperties['supportStrategy'] = true;
|
||||
$this->supportStrategy = $value['support_strategy'];
|
||||
unset($value['support_strategy']);
|
||||
}
|
||||
|
||||
if (array_key_exists('initial_marking', $value)) {
|
||||
$this->_usedProperties['initialMarking'] = true;
|
||||
$this->initialMarking = $value['initial_marking'];
|
||||
unset($value['initial_marking']);
|
||||
}
|
||||
|
||||
if (array_key_exists('events_to_dispatch', $value)) {
|
||||
$this->_usedProperties['eventsToDispatch'] = true;
|
||||
$this->eventsToDispatch = $value['events_to_dispatch'];
|
||||
unset($value['events_to_dispatch']);
|
||||
}
|
||||
|
||||
if (array_key_exists('places', $value)) {
|
||||
$this->_usedProperties['places'] = true;
|
||||
$this->places = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Framework\Workflows\WorkflowsConfig\PlaceConfig($v) : $v, $value['places']);
|
||||
unset($value['places']);
|
||||
}
|
||||
|
||||
if (array_key_exists('transitions', $value)) {
|
||||
$this->_usedProperties['transitions'] = true;
|
||||
$this->transitions = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Framework\Workflows\WorkflowsConfig\TransitionConfig($v) : $v, $value['transitions']);
|
||||
unset($value['transitions']);
|
||||
}
|
||||
|
||||
if (array_key_exists('metadata', $value)) {
|
||||
$this->_usedProperties['metadata'] = true;
|
||||
$this->metadata = $value['metadata'];
|
||||
unset($value['metadata']);
|
||||
}
|
||||
|
||||
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['auditTrail'])) {
|
||||
$output['audit_trail'] = $this->auditTrail instanceof \Symfony\Config\Framework\Workflows\WorkflowsConfig\AuditTrailConfig ? $this->auditTrail->toArray() : $this->auditTrail;
|
||||
}
|
||||
if (isset($this->_usedProperties['type'])) {
|
||||
$output['type'] = $this->type;
|
||||
}
|
||||
if (isset($this->_usedProperties['markingStore'])) {
|
||||
$output['marking_store'] = $this->markingStore->toArray();
|
||||
}
|
||||
if (isset($this->_usedProperties['supports'])) {
|
||||
$output['supports'] = $this->supports;
|
||||
}
|
||||
if (isset($this->_usedProperties['definitionValidators'])) {
|
||||
$output['definition_validators'] = $this->definitionValidators;
|
||||
}
|
||||
if (isset($this->_usedProperties['supportStrategy'])) {
|
||||
$output['support_strategy'] = $this->supportStrategy;
|
||||
}
|
||||
if (isset($this->_usedProperties['initialMarking'])) {
|
||||
$output['initial_marking'] = $this->initialMarking;
|
||||
}
|
||||
if (isset($this->_usedProperties['eventsToDispatch'])) {
|
||||
$output['events_to_dispatch'] = $this->eventsToDispatch;
|
||||
}
|
||||
if (isset($this->_usedProperties['places'])) {
|
||||
$output['places'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Framework\Workflows\WorkflowsConfig\PlaceConfig ? $v->toArray() : $v, $this->places);
|
||||
}
|
||||
if (isset($this->_usedProperties['transitions'])) {
|
||||
$output['transitions'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Framework\Workflows\WorkflowsConfig\TransitionConfig ? $v->toArray() : $v, $this->transitions);
|
||||
}
|
||||
if (isset($this->_usedProperties['metadata'])) {
|
||||
$output['metadata'] = $this->metadata;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Framework/Workflows/WorkflowsConfig/AuditTrailConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Framework/Workflows/WorkflowsConfig/AuditTrailConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Workflows\WorkflowsConfig;
|
||||
|
||||
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 AuditTrailConfig
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
98
var/cache/dev/Symfony/Config/Framework/Workflows/WorkflowsConfig/MarkingStoreConfig.php
vendored
Normal file
98
var/cache/dev/Symfony/Config/Framework/Workflows/WorkflowsConfig/MarkingStoreConfig.php
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Workflows\WorkflowsConfig;
|
||||
|
||||
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 MarkingStoreConfig
|
||||
{
|
||||
private $type;
|
||||
private $property;
|
||||
private $service;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|'method' $value
|
||||
* @return $this
|
||||
*/
|
||||
public function type($value): static
|
||||
{
|
||||
$this->_usedProperties['type'] = true;
|
||||
$this->type = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function property($value): static
|
||||
{
|
||||
$this->_usedProperties['property'] = true;
|
||||
$this->property = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function service($value): static
|
||||
{
|
||||
$this->_usedProperties['service'] = true;
|
||||
$this->service = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('type', $value)) {
|
||||
$this->_usedProperties['type'] = true;
|
||||
$this->type = $value['type'];
|
||||
unset($value['type']);
|
||||
}
|
||||
|
||||
if (array_key_exists('property', $value)) {
|
||||
$this->_usedProperties['property'] = true;
|
||||
$this->property = $value['property'];
|
||||
unset($value['property']);
|
||||
}
|
||||
|
||||
if (array_key_exists('service', $value)) {
|
||||
$this->_usedProperties['service'] = true;
|
||||
$this->service = $value['service'];
|
||||
unset($value['service']);
|
||||
}
|
||||
|
||||
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['type'])) {
|
||||
$output['type'] = $this->type;
|
||||
}
|
||||
if (isset($this->_usedProperties['property'])) {
|
||||
$output['property'] = $this->property;
|
||||
}
|
||||
if (isset($this->_usedProperties['service'])) {
|
||||
$output['service'] = $this->service;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
75
var/cache/dev/Symfony/Config/Framework/Workflows/WorkflowsConfig/PlaceConfig.php
vendored
Normal file
75
var/cache/dev/Symfony/Config/Framework/Workflows/WorkflowsConfig/PlaceConfig.php
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Workflows\WorkflowsConfig;
|
||||
|
||||
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 PlaceConfig
|
||||
{
|
||||
private $name;
|
||||
private $metadata;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function name($value): static
|
||||
{
|
||||
$this->_usedProperties['name'] = true;
|
||||
$this->name = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function metadata(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['metadata'] = true;
|
||||
$this->metadata = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('name', $value)) {
|
||||
$this->_usedProperties['name'] = true;
|
||||
$this->name = $value['name'];
|
||||
unset($value['name']);
|
||||
}
|
||||
|
||||
if (array_key_exists('metadata', $value)) {
|
||||
$this->_usedProperties['metadata'] = true;
|
||||
$this->metadata = $value['metadata'];
|
||||
unset($value['metadata']);
|
||||
}
|
||||
|
||||
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['name'])) {
|
||||
$output['name'] = $this->name;
|
||||
}
|
||||
if (isset($this->_usedProperties['metadata'])) {
|
||||
$output['metadata'] = $this->metadata;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
146
var/cache/dev/Symfony/Config/Framework/Workflows/WorkflowsConfig/TransitionConfig.php
vendored
Normal file
146
var/cache/dev/Symfony/Config/Framework/Workflows/WorkflowsConfig/TransitionConfig.php
vendored
Normal file
@@ -0,0 +1,146 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework\Workflows\WorkflowsConfig;
|
||||
|
||||
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 TransitionConfig
|
||||
{
|
||||
private $name;
|
||||
private $guard;
|
||||
private $from;
|
||||
private $to;
|
||||
private $metadata;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function name($value): static
|
||||
{
|
||||
$this->_usedProperties['name'] = true;
|
||||
$this->name = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* An expression to block the transition.
|
||||
* @example is_fully_authenticated() and is_granted('ROLE_JOURNALIST') and subject.getTitle() == 'My first article'
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function guard($value): static
|
||||
{
|
||||
$this->_usedProperties['guard'] = true;
|
||||
$this->guard = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function from(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['from'] = true;
|
||||
$this->from = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|mixed $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function to(mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['to'] = true;
|
||||
$this->to = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function metadata(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['metadata'] = true;
|
||||
$this->metadata = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('name', $value)) {
|
||||
$this->_usedProperties['name'] = true;
|
||||
$this->name = $value['name'];
|
||||
unset($value['name']);
|
||||
}
|
||||
|
||||
if (array_key_exists('guard', $value)) {
|
||||
$this->_usedProperties['guard'] = true;
|
||||
$this->guard = $value['guard'];
|
||||
unset($value['guard']);
|
||||
}
|
||||
|
||||
if (array_key_exists('from', $value)) {
|
||||
$this->_usedProperties['from'] = true;
|
||||
$this->from = $value['from'];
|
||||
unset($value['from']);
|
||||
}
|
||||
|
||||
if (array_key_exists('to', $value)) {
|
||||
$this->_usedProperties['to'] = true;
|
||||
$this->to = $value['to'];
|
||||
unset($value['to']);
|
||||
}
|
||||
|
||||
if (array_key_exists('metadata', $value)) {
|
||||
$this->_usedProperties['metadata'] = true;
|
||||
$this->metadata = $value['metadata'];
|
||||
unset($value['metadata']);
|
||||
}
|
||||
|
||||
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['name'])) {
|
||||
$output['name'] = $this->name;
|
||||
}
|
||||
if (isset($this->_usedProperties['guard'])) {
|
||||
$output['guard'] = $this->guard;
|
||||
}
|
||||
if (isset($this->_usedProperties['from'])) {
|
||||
$output['from'] = $this->from;
|
||||
}
|
||||
if (isset($this->_usedProperties['to'])) {
|
||||
$output['to'] = $this->to;
|
||||
}
|
||||
if (isset($this->_usedProperties['metadata'])) {
|
||||
$output['metadata'] = $this->metadata;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
89
var/cache/dev/Symfony/Config/Framework/WorkflowsConfig.php
vendored
Normal file
89
var/cache/dev/Symfony/Config/Framework/WorkflowsConfig.php
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Framework;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Workflows'.\DIRECTORY_SEPARATOR.'WorkflowsConfig.php';
|
||||
|
||||
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 WorkflowsConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $workflows;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Framework\Workflows\WorkflowsConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Framework\Workflows\WorkflowsConfig : static)
|
||||
*/
|
||||
public function workflows(string $name, mixed $value = []): \Symfony\Config\Framework\Workflows\WorkflowsConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['workflows'] = true;
|
||||
$this->workflows[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!isset($this->workflows[$name]) || !$this->workflows[$name] instanceof \Symfony\Config\Framework\Workflows\WorkflowsConfig) {
|
||||
$this->_usedProperties['workflows'] = true;
|
||||
$this->workflows[$name] = new \Symfony\Config\Framework\Workflows\WorkflowsConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "workflows()" has already been initialized. You cannot pass values the second time you call workflows().');
|
||||
}
|
||||
|
||||
return $this->workflows[$name];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('workflows', $value)) {
|
||||
$this->_usedProperties['workflows'] = true;
|
||||
$this->workflows = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Framework\Workflows\WorkflowsConfig($v) : $v, $value['workflows']);
|
||||
unset($value['workflows']);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
if (isset($this->_usedProperties['workflows'])) {
|
||||
$output['workflows'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Framework\Workflows\WorkflowsConfig ? $v->toArray() : $v, $this->workflows);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user