Initial Base
This commit is contained in:
156
var/cache/dev/Symfony/Config/DebugConfig.php
vendored
Normal file
156
var/cache/dev/Symfony/Config/DebugConfig.php
vendored
Normal file
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config;
|
||||
|
||||
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 DebugConfig implements \Symfony\Component\Config\Builder\ConfigBuilderInterface
|
||||
{
|
||||
private $maxItems;
|
||||
private $minDepth;
|
||||
private $maxStringLength;
|
||||
private $dumpDestination;
|
||||
private $theme;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* Max number of displayed items past the first level, -1 means no limit.
|
||||
* @default 2500
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxItems($value): static
|
||||
{
|
||||
$this->_usedProperties['maxItems'] = true;
|
||||
$this->maxItems = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Minimum tree depth to clone all the items, 1 is default.
|
||||
* @default 1
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function minDepth($value): static
|
||||
{
|
||||
$this->_usedProperties['minDepth'] = true;
|
||||
$this->minDepth = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Max length of displayed strings, -1 means no limit.
|
||||
* @default -1
|
||||
* @param ParamConfigurator|int $value
|
||||
* @return $this
|
||||
*/
|
||||
public function maxStringLength($value): static
|
||||
{
|
||||
$this->_usedProperties['maxStringLength'] = true;
|
||||
$this->maxStringLength = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A stream URL where dumps should be written to.
|
||||
* @example php://stderr, or tcp://%env(VAR_DUMPER_SERVER)% when using the "server:dump" command
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function dumpDestination($value): static
|
||||
{
|
||||
$this->_usedProperties['dumpDestination'] = true;
|
||||
$this->dumpDestination = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Changes the color of the dump() output when rendered directly on the templating. "dark" (default) or "light".
|
||||
* @example dark
|
||||
* @default 'dark'
|
||||
* @param ParamConfigurator|'dark'|'light' $value
|
||||
* @return $this
|
||||
*/
|
||||
public function theme($value): static
|
||||
{
|
||||
$this->_usedProperties['theme'] = true;
|
||||
$this->theme = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getExtensionAlias(): string
|
||||
{
|
||||
return 'debug';
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('max_items', $value)) {
|
||||
$this->_usedProperties['maxItems'] = true;
|
||||
$this->maxItems = $value['max_items'];
|
||||
unset($value['max_items']);
|
||||
}
|
||||
|
||||
if (array_key_exists('min_depth', $value)) {
|
||||
$this->_usedProperties['minDepth'] = true;
|
||||
$this->minDepth = $value['min_depth'];
|
||||
unset($value['min_depth']);
|
||||
}
|
||||
|
||||
if (array_key_exists('max_string_length', $value)) {
|
||||
$this->_usedProperties['maxStringLength'] = true;
|
||||
$this->maxStringLength = $value['max_string_length'];
|
||||
unset($value['max_string_length']);
|
||||
}
|
||||
|
||||
if (array_key_exists('dump_destination', $value)) {
|
||||
$this->_usedProperties['dumpDestination'] = true;
|
||||
$this->dumpDestination = $value['dump_destination'];
|
||||
unset($value['dump_destination']);
|
||||
}
|
||||
|
||||
if (array_key_exists('theme', $value)) {
|
||||
$this->_usedProperties['theme'] = true;
|
||||
$this->theme = $value['theme'];
|
||||
unset($value['theme']);
|
||||
}
|
||||
|
||||
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['maxItems'])) {
|
||||
$output['max_items'] = $this->maxItems;
|
||||
}
|
||||
if (isset($this->_usedProperties['minDepth'])) {
|
||||
$output['min_depth'] = $this->minDepth;
|
||||
}
|
||||
if (isset($this->_usedProperties['maxStringLength'])) {
|
||||
$output['max_string_length'] = $this->maxStringLength;
|
||||
}
|
||||
if (isset($this->_usedProperties['dumpDestination'])) {
|
||||
$output['dump_destination'] = $this->dumpDestination;
|
||||
}
|
||||
if (isset($this->_usedProperties['theme'])) {
|
||||
$output['theme'] = $this->theme;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
1276
var/cache/dev/Symfony/Config/Doctrine/Dbal/ConnectionConfig.php
vendored
Normal file
1276
var/cache/dev/Symfony/Config/Doctrine/Dbal/ConnectionConfig.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
744
var/cache/dev/Symfony/Config/Doctrine/Dbal/ConnectionConfig/ReplicaConfig.php
vendored
Normal file
744
var/cache/dev/Symfony/Config/Doctrine/Dbal/ConnectionConfig/ReplicaConfig.php
vendored
Normal file
@@ -0,0 +1,744 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Dbal\ConnectionConfig;
|
||||
|
||||
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 ReplicaConfig
|
||||
{
|
||||
private $url;
|
||||
private $dbname;
|
||||
private $host;
|
||||
private $port;
|
||||
private $user;
|
||||
private $password;
|
||||
private $overrideUrl;
|
||||
private $dbnameSuffix;
|
||||
private $applicationName;
|
||||
private $charset;
|
||||
private $path;
|
||||
private $memory;
|
||||
private $unixSocket;
|
||||
private $persistent;
|
||||
private $protocol;
|
||||
private $service;
|
||||
private $servicename;
|
||||
private $sessionMode;
|
||||
private $server;
|
||||
private $defaultDbname;
|
||||
private $sslmode;
|
||||
private $sslrootcert;
|
||||
private $sslcert;
|
||||
private $sslkey;
|
||||
private $sslcrl;
|
||||
private $pooled;
|
||||
private $multipleActiveResultSets;
|
||||
private $useSavepoints;
|
||||
private $instancename;
|
||||
private $connectstring;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* A URL with connection information; any parameter value parsed from this string will override explicitly set parameters
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function url($value): static
|
||||
{
|
||||
$this->_usedProperties['url'] = true;
|
||||
$this->url = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function dbname($value): static
|
||||
{
|
||||
$this->_usedProperties['dbname'] = true;
|
||||
$this->dbname = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to "localhost" at runtime.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function host($value): static
|
||||
{
|
||||
$this->_usedProperties['host'] = true;
|
||||
$this->host = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to null at runtime.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function port($value): static
|
||||
{
|
||||
$this->_usedProperties['port'] = true;
|
||||
$this->port = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to "root" at runtime.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function user($value): static
|
||||
{
|
||||
$this->_usedProperties['user'] = true;
|
||||
$this->user = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to null at runtime.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function password($value): static
|
||||
{
|
||||
$this->_usedProperties['password'] = true;
|
||||
$this->password = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @deprecated The "doctrine.dbal.override_url" configuration key is deprecated.
|
||||
* @return $this
|
||||
*/
|
||||
public function overrideUrl($value): static
|
||||
{
|
||||
$this->_usedProperties['overrideUrl'] = true;
|
||||
$this->overrideUrl = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the given suffix to the configured database name, this option has no effects for the SQLite platform
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function dbnameSuffix($value): static
|
||||
{
|
||||
$this->_usedProperties['dbnameSuffix'] = true;
|
||||
$this->dbnameSuffix = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function applicationName($value): static
|
||||
{
|
||||
$this->_usedProperties['applicationName'] = true;
|
||||
$this->applicationName = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function charset($value): static
|
||||
{
|
||||
$this->_usedProperties['charset'] = true;
|
||||
$this->charset = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function path($value): static
|
||||
{
|
||||
$this->_usedProperties['path'] = true;
|
||||
$this->path = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function memory($value): static
|
||||
{
|
||||
$this->_usedProperties['memory'] = true;
|
||||
$this->memory = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unix socket to use for MySQL
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function unixSocket($value): static
|
||||
{
|
||||
$this->_usedProperties['unixSocket'] = true;
|
||||
$this->unixSocket = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* True to use as persistent connection for the ibm_db2 driver
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function persistent($value): static
|
||||
{
|
||||
$this->_usedProperties['persistent'] = true;
|
||||
$this->persistent = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The protocol to use for the ibm_db2 driver (default to TCPIP if omitted)
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function protocol($value): static
|
||||
{
|
||||
$this->_usedProperties['protocol'] = true;
|
||||
$this->protocol = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* True to use SERVICE_NAME as connection parameter instead of SID for Oracle
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function service($value): static
|
||||
{
|
||||
$this->_usedProperties['service'] = true;
|
||||
$this->service = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrules dbname parameter if given and used as SERVICE_NAME or SID connection parameter for Oracle depending on the service parameter.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function servicename($value): static
|
||||
{
|
||||
$this->_usedProperties['servicename'] = true;
|
||||
$this->servicename = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The session mode to use for the oci8 driver
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function sessionMode($value): static
|
||||
{
|
||||
$this->_usedProperties['sessionMode'] = true;
|
||||
$this->sessionMode = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of a running database server to connect to for SQL Anywhere.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function server($value): static
|
||||
{
|
||||
$this->_usedProperties['server'] = true;
|
||||
$this->server = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override the default database (postgres) to connect to for PostgreSQL connexion.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultDbname($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultDbname'] = true;
|
||||
$this->defaultDbname = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether or with what priority a SSL TCP/IP connection will be negotiated with the server for PostgreSQL.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function sslmode($value): static
|
||||
{
|
||||
$this->_usedProperties['sslmode'] = true;
|
||||
$this->sslmode = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of a file containing SSL certificate authority (CA) certificate(s). If the file exists, the server's certificate will be verified to be signed by one of these authorities.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function sslrootcert($value): static
|
||||
{
|
||||
$this->_usedProperties['sslrootcert'] = true;
|
||||
$this->sslrootcert = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The path to the SSL client certificate file for PostgreSQL.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function sslcert($value): static
|
||||
{
|
||||
$this->_usedProperties['sslcert'] = true;
|
||||
$this->sslcert = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The path to the SSL client key file for PostgreSQL.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function sslkey($value): static
|
||||
{
|
||||
$this->_usedProperties['sslkey'] = true;
|
||||
$this->sslkey = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The file name of the SSL certificate revocation list for PostgreSQL.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function sslcrl($value): static
|
||||
{
|
||||
$this->_usedProperties['sslcrl'] = true;
|
||||
$this->sslcrl = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* True to use a pooled server with the oci8/pdo_oracle driver
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function pooled($value): static
|
||||
{
|
||||
$this->_usedProperties['pooled'] = true;
|
||||
$this->pooled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configuring MultipleActiveResultSets for the pdo_sqlsrv driver
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function multipleActiveResultSets($value): static
|
||||
{
|
||||
$this->_usedProperties['multipleActiveResultSets'] = true;
|
||||
$this->multipleActiveResultSets = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use savepoints for nested transactions
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function useSavepoints($value): static
|
||||
{
|
||||
$this->_usedProperties['useSavepoints'] = true;
|
||||
$this->useSavepoints = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional parameter, complete whether to add the INSTANCE_NAME parameter in the connection. It is generally used to connect to an Oracle RAC server to select the name of a particular instance.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function instancename($value): static
|
||||
{
|
||||
$this->_usedProperties['instancename'] = true;
|
||||
$this->instancename = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Complete Easy Connect connection descriptor, see https://docs.oracle.com/database/121/NETAG/naming.htm.When using this option, you will still need to provide the user and password parameters, but the other parameters will no longer be used. Note that when using this parameter, the getHost and getPort methods from Doctrine\DBAL\Connection will no longer function as expected.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function connectstring($value): static
|
||||
{
|
||||
$this->_usedProperties['connectstring'] = true;
|
||||
$this->connectstring = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('url', $value)) {
|
||||
$this->_usedProperties['url'] = true;
|
||||
$this->url = $value['url'];
|
||||
unset($value['url']);
|
||||
}
|
||||
|
||||
if (array_key_exists('dbname', $value)) {
|
||||
$this->_usedProperties['dbname'] = true;
|
||||
$this->dbname = $value['dbname'];
|
||||
unset($value['dbname']);
|
||||
}
|
||||
|
||||
if (array_key_exists('host', $value)) {
|
||||
$this->_usedProperties['host'] = true;
|
||||
$this->host = $value['host'];
|
||||
unset($value['host']);
|
||||
}
|
||||
|
||||
if (array_key_exists('port', $value)) {
|
||||
$this->_usedProperties['port'] = true;
|
||||
$this->port = $value['port'];
|
||||
unset($value['port']);
|
||||
}
|
||||
|
||||
if (array_key_exists('user', $value)) {
|
||||
$this->_usedProperties['user'] = true;
|
||||
$this->user = $value['user'];
|
||||
unset($value['user']);
|
||||
}
|
||||
|
||||
if (array_key_exists('password', $value)) {
|
||||
$this->_usedProperties['password'] = true;
|
||||
$this->password = $value['password'];
|
||||
unset($value['password']);
|
||||
}
|
||||
|
||||
if (array_key_exists('override_url', $value)) {
|
||||
$this->_usedProperties['overrideUrl'] = true;
|
||||
$this->overrideUrl = $value['override_url'];
|
||||
unset($value['override_url']);
|
||||
}
|
||||
|
||||
if (array_key_exists('dbname_suffix', $value)) {
|
||||
$this->_usedProperties['dbnameSuffix'] = true;
|
||||
$this->dbnameSuffix = $value['dbname_suffix'];
|
||||
unset($value['dbname_suffix']);
|
||||
}
|
||||
|
||||
if (array_key_exists('application_name', $value)) {
|
||||
$this->_usedProperties['applicationName'] = true;
|
||||
$this->applicationName = $value['application_name'];
|
||||
unset($value['application_name']);
|
||||
}
|
||||
|
||||
if (array_key_exists('charset', $value)) {
|
||||
$this->_usedProperties['charset'] = true;
|
||||
$this->charset = $value['charset'];
|
||||
unset($value['charset']);
|
||||
}
|
||||
|
||||
if (array_key_exists('path', $value)) {
|
||||
$this->_usedProperties['path'] = true;
|
||||
$this->path = $value['path'];
|
||||
unset($value['path']);
|
||||
}
|
||||
|
||||
if (array_key_exists('memory', $value)) {
|
||||
$this->_usedProperties['memory'] = true;
|
||||
$this->memory = $value['memory'];
|
||||
unset($value['memory']);
|
||||
}
|
||||
|
||||
if (array_key_exists('unix_socket', $value)) {
|
||||
$this->_usedProperties['unixSocket'] = true;
|
||||
$this->unixSocket = $value['unix_socket'];
|
||||
unset($value['unix_socket']);
|
||||
}
|
||||
|
||||
if (array_key_exists('persistent', $value)) {
|
||||
$this->_usedProperties['persistent'] = true;
|
||||
$this->persistent = $value['persistent'];
|
||||
unset($value['persistent']);
|
||||
}
|
||||
|
||||
if (array_key_exists('protocol', $value)) {
|
||||
$this->_usedProperties['protocol'] = true;
|
||||
$this->protocol = $value['protocol'];
|
||||
unset($value['protocol']);
|
||||
}
|
||||
|
||||
if (array_key_exists('service', $value)) {
|
||||
$this->_usedProperties['service'] = true;
|
||||
$this->service = $value['service'];
|
||||
unset($value['service']);
|
||||
}
|
||||
|
||||
if (array_key_exists('servicename', $value)) {
|
||||
$this->_usedProperties['servicename'] = true;
|
||||
$this->servicename = $value['servicename'];
|
||||
unset($value['servicename']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sessionMode', $value)) {
|
||||
$this->_usedProperties['sessionMode'] = true;
|
||||
$this->sessionMode = $value['sessionMode'];
|
||||
unset($value['sessionMode']);
|
||||
}
|
||||
|
||||
if (array_key_exists('server', $value)) {
|
||||
$this->_usedProperties['server'] = true;
|
||||
$this->server = $value['server'];
|
||||
unset($value['server']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_dbname', $value)) {
|
||||
$this->_usedProperties['defaultDbname'] = true;
|
||||
$this->defaultDbname = $value['default_dbname'];
|
||||
unset($value['default_dbname']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sslmode', $value)) {
|
||||
$this->_usedProperties['sslmode'] = true;
|
||||
$this->sslmode = $value['sslmode'];
|
||||
unset($value['sslmode']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sslrootcert', $value)) {
|
||||
$this->_usedProperties['sslrootcert'] = true;
|
||||
$this->sslrootcert = $value['sslrootcert'];
|
||||
unset($value['sslrootcert']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sslcert', $value)) {
|
||||
$this->_usedProperties['sslcert'] = true;
|
||||
$this->sslcert = $value['sslcert'];
|
||||
unset($value['sslcert']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sslkey', $value)) {
|
||||
$this->_usedProperties['sslkey'] = true;
|
||||
$this->sslkey = $value['sslkey'];
|
||||
unset($value['sslkey']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sslcrl', $value)) {
|
||||
$this->_usedProperties['sslcrl'] = true;
|
||||
$this->sslcrl = $value['sslcrl'];
|
||||
unset($value['sslcrl']);
|
||||
}
|
||||
|
||||
if (array_key_exists('pooled', $value)) {
|
||||
$this->_usedProperties['pooled'] = true;
|
||||
$this->pooled = $value['pooled'];
|
||||
unset($value['pooled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('MultipleActiveResultSets', $value)) {
|
||||
$this->_usedProperties['multipleActiveResultSets'] = true;
|
||||
$this->multipleActiveResultSets = $value['MultipleActiveResultSets'];
|
||||
unset($value['MultipleActiveResultSets']);
|
||||
}
|
||||
|
||||
if (array_key_exists('use_savepoints', $value)) {
|
||||
$this->_usedProperties['useSavepoints'] = true;
|
||||
$this->useSavepoints = $value['use_savepoints'];
|
||||
unset($value['use_savepoints']);
|
||||
}
|
||||
|
||||
if (array_key_exists('instancename', $value)) {
|
||||
$this->_usedProperties['instancename'] = true;
|
||||
$this->instancename = $value['instancename'];
|
||||
unset($value['instancename']);
|
||||
}
|
||||
|
||||
if (array_key_exists('connectstring', $value)) {
|
||||
$this->_usedProperties['connectstring'] = true;
|
||||
$this->connectstring = $value['connectstring'];
|
||||
unset($value['connectstring']);
|
||||
}
|
||||
|
||||
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['url'])) {
|
||||
$output['url'] = $this->url;
|
||||
}
|
||||
if (isset($this->_usedProperties['dbname'])) {
|
||||
$output['dbname'] = $this->dbname;
|
||||
}
|
||||
if (isset($this->_usedProperties['host'])) {
|
||||
$output['host'] = $this->host;
|
||||
}
|
||||
if (isset($this->_usedProperties['port'])) {
|
||||
$output['port'] = $this->port;
|
||||
}
|
||||
if (isset($this->_usedProperties['user'])) {
|
||||
$output['user'] = $this->user;
|
||||
}
|
||||
if (isset($this->_usedProperties['password'])) {
|
||||
$output['password'] = $this->password;
|
||||
}
|
||||
if (isset($this->_usedProperties['overrideUrl'])) {
|
||||
$output['override_url'] = $this->overrideUrl;
|
||||
}
|
||||
if (isset($this->_usedProperties['dbnameSuffix'])) {
|
||||
$output['dbname_suffix'] = $this->dbnameSuffix;
|
||||
}
|
||||
if (isset($this->_usedProperties['applicationName'])) {
|
||||
$output['application_name'] = $this->applicationName;
|
||||
}
|
||||
if (isset($this->_usedProperties['charset'])) {
|
||||
$output['charset'] = $this->charset;
|
||||
}
|
||||
if (isset($this->_usedProperties['path'])) {
|
||||
$output['path'] = $this->path;
|
||||
}
|
||||
if (isset($this->_usedProperties['memory'])) {
|
||||
$output['memory'] = $this->memory;
|
||||
}
|
||||
if (isset($this->_usedProperties['unixSocket'])) {
|
||||
$output['unix_socket'] = $this->unixSocket;
|
||||
}
|
||||
if (isset($this->_usedProperties['persistent'])) {
|
||||
$output['persistent'] = $this->persistent;
|
||||
}
|
||||
if (isset($this->_usedProperties['protocol'])) {
|
||||
$output['protocol'] = $this->protocol;
|
||||
}
|
||||
if (isset($this->_usedProperties['service'])) {
|
||||
$output['service'] = $this->service;
|
||||
}
|
||||
if (isset($this->_usedProperties['servicename'])) {
|
||||
$output['servicename'] = $this->servicename;
|
||||
}
|
||||
if (isset($this->_usedProperties['sessionMode'])) {
|
||||
$output['sessionMode'] = $this->sessionMode;
|
||||
}
|
||||
if (isset($this->_usedProperties['server'])) {
|
||||
$output['server'] = $this->server;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultDbname'])) {
|
||||
$output['default_dbname'] = $this->defaultDbname;
|
||||
}
|
||||
if (isset($this->_usedProperties['sslmode'])) {
|
||||
$output['sslmode'] = $this->sslmode;
|
||||
}
|
||||
if (isset($this->_usedProperties['sslrootcert'])) {
|
||||
$output['sslrootcert'] = $this->sslrootcert;
|
||||
}
|
||||
if (isset($this->_usedProperties['sslcert'])) {
|
||||
$output['sslcert'] = $this->sslcert;
|
||||
}
|
||||
if (isset($this->_usedProperties['sslkey'])) {
|
||||
$output['sslkey'] = $this->sslkey;
|
||||
}
|
||||
if (isset($this->_usedProperties['sslcrl'])) {
|
||||
$output['sslcrl'] = $this->sslcrl;
|
||||
}
|
||||
if (isset($this->_usedProperties['pooled'])) {
|
||||
$output['pooled'] = $this->pooled;
|
||||
}
|
||||
if (isset($this->_usedProperties['multipleActiveResultSets'])) {
|
||||
$output['MultipleActiveResultSets'] = $this->multipleActiveResultSets;
|
||||
}
|
||||
if (isset($this->_usedProperties['useSavepoints'])) {
|
||||
$output['use_savepoints'] = $this->useSavepoints;
|
||||
}
|
||||
if (isset($this->_usedProperties['instancename'])) {
|
||||
$output['instancename'] = $this->instancename;
|
||||
}
|
||||
if (isset($this->_usedProperties['connectstring'])) {
|
||||
$output['connectstring'] = $this->connectstring;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
744
var/cache/dev/Symfony/Config/Doctrine/Dbal/ConnectionConfig/SlaveConfig.php
vendored
Normal file
744
var/cache/dev/Symfony/Config/Doctrine/Dbal/ConnectionConfig/SlaveConfig.php
vendored
Normal file
@@ -0,0 +1,744 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Dbal\ConnectionConfig;
|
||||
|
||||
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 SlaveConfig
|
||||
{
|
||||
private $url;
|
||||
private $dbname;
|
||||
private $host;
|
||||
private $port;
|
||||
private $user;
|
||||
private $password;
|
||||
private $overrideUrl;
|
||||
private $dbnameSuffix;
|
||||
private $applicationName;
|
||||
private $charset;
|
||||
private $path;
|
||||
private $memory;
|
||||
private $unixSocket;
|
||||
private $persistent;
|
||||
private $protocol;
|
||||
private $service;
|
||||
private $servicename;
|
||||
private $sessionMode;
|
||||
private $server;
|
||||
private $defaultDbname;
|
||||
private $sslmode;
|
||||
private $sslrootcert;
|
||||
private $sslcert;
|
||||
private $sslkey;
|
||||
private $sslcrl;
|
||||
private $pooled;
|
||||
private $multipleActiveResultSets;
|
||||
private $useSavepoints;
|
||||
private $instancename;
|
||||
private $connectstring;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* A URL with connection information; any parameter value parsed from this string will override explicitly set parameters
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function url($value): static
|
||||
{
|
||||
$this->_usedProperties['url'] = true;
|
||||
$this->url = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function dbname($value): static
|
||||
{
|
||||
$this->_usedProperties['dbname'] = true;
|
||||
$this->dbname = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to "localhost" at runtime.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function host($value): static
|
||||
{
|
||||
$this->_usedProperties['host'] = true;
|
||||
$this->host = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to null at runtime.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function port($value): static
|
||||
{
|
||||
$this->_usedProperties['port'] = true;
|
||||
$this->port = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to "root" at runtime.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function user($value): static
|
||||
{
|
||||
$this->_usedProperties['user'] = true;
|
||||
$this->user = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to null at runtime.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function password($value): static
|
||||
{
|
||||
$this->_usedProperties['password'] = true;
|
||||
$this->password = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @deprecated The "doctrine.dbal.override_url" configuration key is deprecated.
|
||||
* @return $this
|
||||
*/
|
||||
public function overrideUrl($value): static
|
||||
{
|
||||
$this->_usedProperties['overrideUrl'] = true;
|
||||
$this->overrideUrl = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the given suffix to the configured database name, this option has no effects for the SQLite platform
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function dbnameSuffix($value): static
|
||||
{
|
||||
$this->_usedProperties['dbnameSuffix'] = true;
|
||||
$this->dbnameSuffix = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function applicationName($value): static
|
||||
{
|
||||
$this->_usedProperties['applicationName'] = true;
|
||||
$this->applicationName = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function charset($value): static
|
||||
{
|
||||
$this->_usedProperties['charset'] = true;
|
||||
$this->charset = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function path($value): static
|
||||
{
|
||||
$this->_usedProperties['path'] = true;
|
||||
$this->path = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function memory($value): static
|
||||
{
|
||||
$this->_usedProperties['memory'] = true;
|
||||
$this->memory = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The unix socket to use for MySQL
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function unixSocket($value): static
|
||||
{
|
||||
$this->_usedProperties['unixSocket'] = true;
|
||||
$this->unixSocket = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* True to use as persistent connection for the ibm_db2 driver
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function persistent($value): static
|
||||
{
|
||||
$this->_usedProperties['persistent'] = true;
|
||||
$this->persistent = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The protocol to use for the ibm_db2 driver (default to TCPIP if omitted)
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function protocol($value): static
|
||||
{
|
||||
$this->_usedProperties['protocol'] = true;
|
||||
$this->protocol = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* True to use SERVICE_NAME as connection parameter instead of SID for Oracle
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function service($value): static
|
||||
{
|
||||
$this->_usedProperties['service'] = true;
|
||||
$this->service = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrules dbname parameter if given and used as SERVICE_NAME or SID connection parameter for Oracle depending on the service parameter.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function servicename($value): static
|
||||
{
|
||||
$this->_usedProperties['servicename'] = true;
|
||||
$this->servicename = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The session mode to use for the oci8 driver
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function sessionMode($value): static
|
||||
{
|
||||
$this->_usedProperties['sessionMode'] = true;
|
||||
$this->sessionMode = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of a running database server to connect to for SQL Anywhere.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function server($value): static
|
||||
{
|
||||
$this->_usedProperties['server'] = true;
|
||||
$this->server = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override the default database (postgres) to connect to for PostgreSQL connexion.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultDbname($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultDbname'] = true;
|
||||
$this->defaultDbname = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether or with what priority a SSL TCP/IP connection will be negotiated with the server for PostgreSQL.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function sslmode($value): static
|
||||
{
|
||||
$this->_usedProperties['sslmode'] = true;
|
||||
$this->sslmode = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of a file containing SSL certificate authority (CA) certificate(s). If the file exists, the server's certificate will be verified to be signed by one of these authorities.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function sslrootcert($value): static
|
||||
{
|
||||
$this->_usedProperties['sslrootcert'] = true;
|
||||
$this->sslrootcert = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The path to the SSL client certificate file for PostgreSQL.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function sslcert($value): static
|
||||
{
|
||||
$this->_usedProperties['sslcert'] = true;
|
||||
$this->sslcert = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The path to the SSL client key file for PostgreSQL.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function sslkey($value): static
|
||||
{
|
||||
$this->_usedProperties['sslkey'] = true;
|
||||
$this->sslkey = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The file name of the SSL certificate revocation list for PostgreSQL.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function sslcrl($value): static
|
||||
{
|
||||
$this->_usedProperties['sslcrl'] = true;
|
||||
$this->sslcrl = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* True to use a pooled server with the oci8/pdo_oracle driver
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function pooled($value): static
|
||||
{
|
||||
$this->_usedProperties['pooled'] = true;
|
||||
$this->pooled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configuring MultipleActiveResultSets for the pdo_sqlsrv driver
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function multipleActiveResultSets($value): static
|
||||
{
|
||||
$this->_usedProperties['multipleActiveResultSets'] = true;
|
||||
$this->multipleActiveResultSets = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use savepoints for nested transactions
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function useSavepoints($value): static
|
||||
{
|
||||
$this->_usedProperties['useSavepoints'] = true;
|
||||
$this->useSavepoints = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional parameter, complete whether to add the INSTANCE_NAME parameter in the connection. It is generally used to connect to an Oracle RAC server to select the name of a particular instance.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function instancename($value): static
|
||||
{
|
||||
$this->_usedProperties['instancename'] = true;
|
||||
$this->instancename = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Complete Easy Connect connection descriptor, see https://docs.oracle.com/database/121/NETAG/naming.htm.When using this option, you will still need to provide the user and password parameters, but the other parameters will no longer be used. Note that when using this parameter, the getHost and getPort methods from Doctrine\DBAL\Connection will no longer function as expected.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function connectstring($value): static
|
||||
{
|
||||
$this->_usedProperties['connectstring'] = true;
|
||||
$this->connectstring = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('url', $value)) {
|
||||
$this->_usedProperties['url'] = true;
|
||||
$this->url = $value['url'];
|
||||
unset($value['url']);
|
||||
}
|
||||
|
||||
if (array_key_exists('dbname', $value)) {
|
||||
$this->_usedProperties['dbname'] = true;
|
||||
$this->dbname = $value['dbname'];
|
||||
unset($value['dbname']);
|
||||
}
|
||||
|
||||
if (array_key_exists('host', $value)) {
|
||||
$this->_usedProperties['host'] = true;
|
||||
$this->host = $value['host'];
|
||||
unset($value['host']);
|
||||
}
|
||||
|
||||
if (array_key_exists('port', $value)) {
|
||||
$this->_usedProperties['port'] = true;
|
||||
$this->port = $value['port'];
|
||||
unset($value['port']);
|
||||
}
|
||||
|
||||
if (array_key_exists('user', $value)) {
|
||||
$this->_usedProperties['user'] = true;
|
||||
$this->user = $value['user'];
|
||||
unset($value['user']);
|
||||
}
|
||||
|
||||
if (array_key_exists('password', $value)) {
|
||||
$this->_usedProperties['password'] = true;
|
||||
$this->password = $value['password'];
|
||||
unset($value['password']);
|
||||
}
|
||||
|
||||
if (array_key_exists('override_url', $value)) {
|
||||
$this->_usedProperties['overrideUrl'] = true;
|
||||
$this->overrideUrl = $value['override_url'];
|
||||
unset($value['override_url']);
|
||||
}
|
||||
|
||||
if (array_key_exists('dbname_suffix', $value)) {
|
||||
$this->_usedProperties['dbnameSuffix'] = true;
|
||||
$this->dbnameSuffix = $value['dbname_suffix'];
|
||||
unset($value['dbname_suffix']);
|
||||
}
|
||||
|
||||
if (array_key_exists('application_name', $value)) {
|
||||
$this->_usedProperties['applicationName'] = true;
|
||||
$this->applicationName = $value['application_name'];
|
||||
unset($value['application_name']);
|
||||
}
|
||||
|
||||
if (array_key_exists('charset', $value)) {
|
||||
$this->_usedProperties['charset'] = true;
|
||||
$this->charset = $value['charset'];
|
||||
unset($value['charset']);
|
||||
}
|
||||
|
||||
if (array_key_exists('path', $value)) {
|
||||
$this->_usedProperties['path'] = true;
|
||||
$this->path = $value['path'];
|
||||
unset($value['path']);
|
||||
}
|
||||
|
||||
if (array_key_exists('memory', $value)) {
|
||||
$this->_usedProperties['memory'] = true;
|
||||
$this->memory = $value['memory'];
|
||||
unset($value['memory']);
|
||||
}
|
||||
|
||||
if (array_key_exists('unix_socket', $value)) {
|
||||
$this->_usedProperties['unixSocket'] = true;
|
||||
$this->unixSocket = $value['unix_socket'];
|
||||
unset($value['unix_socket']);
|
||||
}
|
||||
|
||||
if (array_key_exists('persistent', $value)) {
|
||||
$this->_usedProperties['persistent'] = true;
|
||||
$this->persistent = $value['persistent'];
|
||||
unset($value['persistent']);
|
||||
}
|
||||
|
||||
if (array_key_exists('protocol', $value)) {
|
||||
$this->_usedProperties['protocol'] = true;
|
||||
$this->protocol = $value['protocol'];
|
||||
unset($value['protocol']);
|
||||
}
|
||||
|
||||
if (array_key_exists('service', $value)) {
|
||||
$this->_usedProperties['service'] = true;
|
||||
$this->service = $value['service'];
|
||||
unset($value['service']);
|
||||
}
|
||||
|
||||
if (array_key_exists('servicename', $value)) {
|
||||
$this->_usedProperties['servicename'] = true;
|
||||
$this->servicename = $value['servicename'];
|
||||
unset($value['servicename']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sessionMode', $value)) {
|
||||
$this->_usedProperties['sessionMode'] = true;
|
||||
$this->sessionMode = $value['sessionMode'];
|
||||
unset($value['sessionMode']);
|
||||
}
|
||||
|
||||
if (array_key_exists('server', $value)) {
|
||||
$this->_usedProperties['server'] = true;
|
||||
$this->server = $value['server'];
|
||||
unset($value['server']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_dbname', $value)) {
|
||||
$this->_usedProperties['defaultDbname'] = true;
|
||||
$this->defaultDbname = $value['default_dbname'];
|
||||
unset($value['default_dbname']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sslmode', $value)) {
|
||||
$this->_usedProperties['sslmode'] = true;
|
||||
$this->sslmode = $value['sslmode'];
|
||||
unset($value['sslmode']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sslrootcert', $value)) {
|
||||
$this->_usedProperties['sslrootcert'] = true;
|
||||
$this->sslrootcert = $value['sslrootcert'];
|
||||
unset($value['sslrootcert']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sslcert', $value)) {
|
||||
$this->_usedProperties['sslcert'] = true;
|
||||
$this->sslcert = $value['sslcert'];
|
||||
unset($value['sslcert']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sslkey', $value)) {
|
||||
$this->_usedProperties['sslkey'] = true;
|
||||
$this->sslkey = $value['sslkey'];
|
||||
unset($value['sslkey']);
|
||||
}
|
||||
|
||||
if (array_key_exists('sslcrl', $value)) {
|
||||
$this->_usedProperties['sslcrl'] = true;
|
||||
$this->sslcrl = $value['sslcrl'];
|
||||
unset($value['sslcrl']);
|
||||
}
|
||||
|
||||
if (array_key_exists('pooled', $value)) {
|
||||
$this->_usedProperties['pooled'] = true;
|
||||
$this->pooled = $value['pooled'];
|
||||
unset($value['pooled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('MultipleActiveResultSets', $value)) {
|
||||
$this->_usedProperties['multipleActiveResultSets'] = true;
|
||||
$this->multipleActiveResultSets = $value['MultipleActiveResultSets'];
|
||||
unset($value['MultipleActiveResultSets']);
|
||||
}
|
||||
|
||||
if (array_key_exists('use_savepoints', $value)) {
|
||||
$this->_usedProperties['useSavepoints'] = true;
|
||||
$this->useSavepoints = $value['use_savepoints'];
|
||||
unset($value['use_savepoints']);
|
||||
}
|
||||
|
||||
if (array_key_exists('instancename', $value)) {
|
||||
$this->_usedProperties['instancename'] = true;
|
||||
$this->instancename = $value['instancename'];
|
||||
unset($value['instancename']);
|
||||
}
|
||||
|
||||
if (array_key_exists('connectstring', $value)) {
|
||||
$this->_usedProperties['connectstring'] = true;
|
||||
$this->connectstring = $value['connectstring'];
|
||||
unset($value['connectstring']);
|
||||
}
|
||||
|
||||
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['url'])) {
|
||||
$output['url'] = $this->url;
|
||||
}
|
||||
if (isset($this->_usedProperties['dbname'])) {
|
||||
$output['dbname'] = $this->dbname;
|
||||
}
|
||||
if (isset($this->_usedProperties['host'])) {
|
||||
$output['host'] = $this->host;
|
||||
}
|
||||
if (isset($this->_usedProperties['port'])) {
|
||||
$output['port'] = $this->port;
|
||||
}
|
||||
if (isset($this->_usedProperties['user'])) {
|
||||
$output['user'] = $this->user;
|
||||
}
|
||||
if (isset($this->_usedProperties['password'])) {
|
||||
$output['password'] = $this->password;
|
||||
}
|
||||
if (isset($this->_usedProperties['overrideUrl'])) {
|
||||
$output['override_url'] = $this->overrideUrl;
|
||||
}
|
||||
if (isset($this->_usedProperties['dbnameSuffix'])) {
|
||||
$output['dbname_suffix'] = $this->dbnameSuffix;
|
||||
}
|
||||
if (isset($this->_usedProperties['applicationName'])) {
|
||||
$output['application_name'] = $this->applicationName;
|
||||
}
|
||||
if (isset($this->_usedProperties['charset'])) {
|
||||
$output['charset'] = $this->charset;
|
||||
}
|
||||
if (isset($this->_usedProperties['path'])) {
|
||||
$output['path'] = $this->path;
|
||||
}
|
||||
if (isset($this->_usedProperties['memory'])) {
|
||||
$output['memory'] = $this->memory;
|
||||
}
|
||||
if (isset($this->_usedProperties['unixSocket'])) {
|
||||
$output['unix_socket'] = $this->unixSocket;
|
||||
}
|
||||
if (isset($this->_usedProperties['persistent'])) {
|
||||
$output['persistent'] = $this->persistent;
|
||||
}
|
||||
if (isset($this->_usedProperties['protocol'])) {
|
||||
$output['protocol'] = $this->protocol;
|
||||
}
|
||||
if (isset($this->_usedProperties['service'])) {
|
||||
$output['service'] = $this->service;
|
||||
}
|
||||
if (isset($this->_usedProperties['servicename'])) {
|
||||
$output['servicename'] = $this->servicename;
|
||||
}
|
||||
if (isset($this->_usedProperties['sessionMode'])) {
|
||||
$output['sessionMode'] = $this->sessionMode;
|
||||
}
|
||||
if (isset($this->_usedProperties['server'])) {
|
||||
$output['server'] = $this->server;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultDbname'])) {
|
||||
$output['default_dbname'] = $this->defaultDbname;
|
||||
}
|
||||
if (isset($this->_usedProperties['sslmode'])) {
|
||||
$output['sslmode'] = $this->sslmode;
|
||||
}
|
||||
if (isset($this->_usedProperties['sslrootcert'])) {
|
||||
$output['sslrootcert'] = $this->sslrootcert;
|
||||
}
|
||||
if (isset($this->_usedProperties['sslcert'])) {
|
||||
$output['sslcert'] = $this->sslcert;
|
||||
}
|
||||
if (isset($this->_usedProperties['sslkey'])) {
|
||||
$output['sslkey'] = $this->sslkey;
|
||||
}
|
||||
if (isset($this->_usedProperties['sslcrl'])) {
|
||||
$output['sslcrl'] = $this->sslcrl;
|
||||
}
|
||||
if (isset($this->_usedProperties['pooled'])) {
|
||||
$output['pooled'] = $this->pooled;
|
||||
}
|
||||
if (isset($this->_usedProperties['multipleActiveResultSets'])) {
|
||||
$output['MultipleActiveResultSets'] = $this->multipleActiveResultSets;
|
||||
}
|
||||
if (isset($this->_usedProperties['useSavepoints'])) {
|
||||
$output['use_savepoints'] = $this->useSavepoints;
|
||||
}
|
||||
if (isset($this->_usedProperties['instancename'])) {
|
||||
$output['instancename'] = $this->instancename;
|
||||
}
|
||||
if (isset($this->_usedProperties['connectstring'])) {
|
||||
$output['connectstring'] = $this->connectstring;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
76
var/cache/dev/Symfony/Config/Doctrine/Dbal/TypeConfig.php
vendored
Normal file
76
var/cache/dev/Symfony/Config/Doctrine/Dbal/TypeConfig.php
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Dbal;
|
||||
|
||||
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 TypeConfig
|
||||
{
|
||||
private $class;
|
||||
private $commented;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function class($value): static
|
||||
{
|
||||
$this->_usedProperties['class'] = true;
|
||||
$this->class = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @deprecated The doctrine-bundle type commenting features were removed; the corresponding config parameter was deprecated in 2.0 and will be dropped in 3.0.
|
||||
* @return $this
|
||||
*/
|
||||
public function commented($value): static
|
||||
{
|
||||
$this->_usedProperties['commented'] = true;
|
||||
$this->commented = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('class', $value)) {
|
||||
$this->_usedProperties['class'] = true;
|
||||
$this->class = $value['class'];
|
||||
unset($value['class']);
|
||||
}
|
||||
|
||||
if (array_key_exists('commented', $value)) {
|
||||
$this->_usedProperties['commented'] = true;
|
||||
$this->commented = $value['commented'];
|
||||
unset($value['commented']);
|
||||
}
|
||||
|
||||
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['class'])) {
|
||||
$output['class'] = $this->class;
|
||||
}
|
||||
if (isset($this->_usedProperties['commented'])) {
|
||||
$output['commented'] = $this->commented;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
146
var/cache/dev/Symfony/Config/Doctrine/DbalConfig.php
vendored
Normal file
146
var/cache/dev/Symfony/Config/Doctrine/DbalConfig.php
vendored
Normal file
@@ -0,0 +1,146 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Dbal'.\DIRECTORY_SEPARATOR.'TypeConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Dbal'.\DIRECTORY_SEPARATOR.'ConnectionConfig.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 DbalConfig
|
||||
{
|
||||
private $defaultConnection;
|
||||
private $types;
|
||||
private $driverSchemes;
|
||||
private $connections;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultConnection($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultConnection'] = true;
|
||||
$this->defaultConnection = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of string|array
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Doctrine\Dbal\TypeConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Doctrine\Dbal\TypeConfig : static)
|
||||
*/
|
||||
public function type(string $name, string|array $value = []): \Symfony\Config\Doctrine\Dbal\TypeConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['types'] = true;
|
||||
$this->types[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!isset($this->types[$name]) || !$this->types[$name] instanceof \Symfony\Config\Doctrine\Dbal\TypeConfig) {
|
||||
$this->_usedProperties['types'] = true;
|
||||
$this->types[$name] = new \Symfony\Config\Doctrine\Dbal\TypeConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "type()" has already been initialized. You cannot pass values the second time you call type().');
|
||||
}
|
||||
|
||||
return $this->types[$name];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function driverScheme(string $scheme, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['driverSchemes'] = true;
|
||||
$this->driverSchemes[$scheme] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Doctrine\Dbal\ConnectionConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Doctrine\Dbal\ConnectionConfig : static)
|
||||
*/
|
||||
public function connection(string $name, mixed $value = []): \Symfony\Config\Doctrine\Dbal\ConnectionConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['connections'] = true;
|
||||
$this->connections[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!isset($this->connections[$name]) || !$this->connections[$name] instanceof \Symfony\Config\Doctrine\Dbal\ConnectionConfig) {
|
||||
$this->_usedProperties['connections'] = true;
|
||||
$this->connections[$name] = new \Symfony\Config\Doctrine\Dbal\ConnectionConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "connection()" has already been initialized. You cannot pass values the second time you call connection().');
|
||||
}
|
||||
|
||||
return $this->connections[$name];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('default_connection', $value)) {
|
||||
$this->_usedProperties['defaultConnection'] = true;
|
||||
$this->defaultConnection = $value['default_connection'];
|
||||
unset($value['default_connection']);
|
||||
}
|
||||
|
||||
if (array_key_exists('types', $value)) {
|
||||
$this->_usedProperties['types'] = true;
|
||||
$this->types = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Doctrine\Dbal\TypeConfig($v) : $v, $value['types']);
|
||||
unset($value['types']);
|
||||
}
|
||||
|
||||
if (array_key_exists('driver_schemes', $value)) {
|
||||
$this->_usedProperties['driverSchemes'] = true;
|
||||
$this->driverSchemes = $value['driver_schemes'];
|
||||
unset($value['driver_schemes']);
|
||||
}
|
||||
|
||||
if (array_key_exists('connections', $value)) {
|
||||
$this->_usedProperties['connections'] = true;
|
||||
$this->connections = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Doctrine\Dbal\ConnectionConfig($v) : $v, $value['connections']);
|
||||
unset($value['connections']);
|
||||
}
|
||||
|
||||
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['defaultConnection'])) {
|
||||
$output['default_connection'] = $this->defaultConnection;
|
||||
}
|
||||
if (isset($this->_usedProperties['types'])) {
|
||||
$output['types'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Doctrine\Dbal\TypeConfig ? $v->toArray() : $v, $this->types);
|
||||
}
|
||||
if (isset($this->_usedProperties['driverSchemes'])) {
|
||||
$output['driver_schemes'] = $this->driverSchemes;
|
||||
}
|
||||
if (isset($this->_usedProperties['connections'])) {
|
||||
$output['connections'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Doctrine\Dbal\ConnectionConfig ? $v->toArray() : $v, $this->connections);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
100
var/cache/dev/Symfony/Config/Doctrine/Orm/ControllerResolverConfig.php
vendored
Normal file
100
var/cache/dev/Symfony/Config/Doctrine/Orm/ControllerResolverConfig.php
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm;
|
||||
|
||||
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 ControllerResolverConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $autoMapping;
|
||||
private $evictCache;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enabled($value): static
|
||||
{
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set to false to disable using route placeholders as lookup criteria when the primary key doesn't match the argument name
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function autoMapping($value): static
|
||||
{
|
||||
$this->_usedProperties['autoMapping'] = true;
|
||||
$this->autoMapping = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set to true to fetch the entity from the database instead of using the cache, if any
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function evictCache($value): static
|
||||
{
|
||||
$this->_usedProperties['evictCache'] = true;
|
||||
$this->evictCache = $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('auto_mapping', $value)) {
|
||||
$this->_usedProperties['autoMapping'] = true;
|
||||
$this->autoMapping = $value['auto_mapping'];
|
||||
unset($value['auto_mapping']);
|
||||
}
|
||||
|
||||
if (array_key_exists('evict_cache', $value)) {
|
||||
$this->_usedProperties['evictCache'] = true;
|
||||
$this->evictCache = $value['evict_cache'];
|
||||
unset($value['evict_cache']);
|
||||
}
|
||||
|
||||
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['autoMapping'])) {
|
||||
$output['auto_mapping'] = $this->autoMapping;
|
||||
}
|
||||
if (isset($this->_usedProperties['evictCache'])) {
|
||||
$output['evict_cache'] = $this->evictCache;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
638
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig.php
vendored
Normal file
638
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig.php
vendored
Normal file
@@ -0,0 +1,638 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'EntityManagerConfig'.\DIRECTORY_SEPARATOR.'QueryCacheDriverConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'EntityManagerConfig'.\DIRECTORY_SEPARATOR.'MetadataCacheDriverConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'EntityManagerConfig'.\DIRECTORY_SEPARATOR.'ResultCacheDriverConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'EntityManagerConfig'.\DIRECTORY_SEPARATOR.'EntityListenersConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'EntityManagerConfig'.\DIRECTORY_SEPARATOR.'SecondLevelCacheConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'EntityManagerConfig'.\DIRECTORY_SEPARATOR.'MappingConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'EntityManagerConfig'.\DIRECTORY_SEPARATOR.'DqlConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'EntityManagerConfig'.\DIRECTORY_SEPARATOR.'FilterConfig.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 EntityManagerConfig
|
||||
{
|
||||
private $queryCacheDriver;
|
||||
private $metadataCacheDriver;
|
||||
private $resultCacheDriver;
|
||||
private $entityListeners;
|
||||
private $connection;
|
||||
private $classMetadataFactoryName;
|
||||
private $defaultRepositoryClass;
|
||||
private $autoMapping;
|
||||
private $namingStrategy;
|
||||
private $quoteStrategy;
|
||||
private $typedFieldMapper;
|
||||
private $entityListenerResolver;
|
||||
private $fetchModeSubselectBatchSize;
|
||||
private $repositoryFactory;
|
||||
private $schemaIgnoreClasses;
|
||||
private $reportFieldsWhereDeclared;
|
||||
private $validateXmlMapping;
|
||||
private $secondLevelCache;
|
||||
private $hydrators;
|
||||
private $mappings;
|
||||
private $dql;
|
||||
private $filters;
|
||||
private $identityGenerationPreferences;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @template TValue of string|array
|
||||
* @param TValue $value
|
||||
* @default {"type":null}
|
||||
* @return \Symfony\Config\Doctrine\Orm\EntityManagerConfig\QueryCacheDriverConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Doctrine\Orm\EntityManagerConfig\QueryCacheDriverConfig : static)
|
||||
*/
|
||||
public function queryCacheDriver(string|array $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\QueryCacheDriverConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['queryCacheDriver'] = true;
|
||||
$this->queryCacheDriver = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!$this->queryCacheDriver instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\QueryCacheDriverConfig) {
|
||||
$this->_usedProperties['queryCacheDriver'] = true;
|
||||
$this->queryCacheDriver = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\QueryCacheDriverConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "queryCacheDriver()" has already been initialized. You cannot pass values the second time you call queryCacheDriver().');
|
||||
}
|
||||
|
||||
return $this->queryCacheDriver;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of string|array
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Doctrine\Orm\EntityManagerConfig\MetadataCacheDriverConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Doctrine\Orm\EntityManagerConfig\MetadataCacheDriverConfig : static)
|
||||
*/
|
||||
public function metadataCacheDriver(string|array $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\MetadataCacheDriverConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['metadataCacheDriver'] = true;
|
||||
$this->metadataCacheDriver = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!$this->metadataCacheDriver instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\MetadataCacheDriverConfig) {
|
||||
$this->_usedProperties['metadataCacheDriver'] = true;
|
||||
$this->metadataCacheDriver = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\MetadataCacheDriverConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "metadataCacheDriver()" has already been initialized. You cannot pass values the second time you call metadataCacheDriver().');
|
||||
}
|
||||
|
||||
return $this->metadataCacheDriver;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of string|array
|
||||
* @param TValue $value
|
||||
* @default {"type":null}
|
||||
* @return \Symfony\Config\Doctrine\Orm\EntityManagerConfig\ResultCacheDriverConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Doctrine\Orm\EntityManagerConfig\ResultCacheDriverConfig : static)
|
||||
*/
|
||||
public function resultCacheDriver(string|array $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\ResultCacheDriverConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['resultCacheDriver'] = true;
|
||||
$this->resultCacheDriver = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!$this->resultCacheDriver instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\ResultCacheDriverConfig) {
|
||||
$this->_usedProperties['resultCacheDriver'] = true;
|
||||
$this->resultCacheDriver = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\ResultCacheDriverConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "resultCacheDriver()" has already been initialized. You cannot pass values the second time you call resultCacheDriver().');
|
||||
}
|
||||
|
||||
return $this->resultCacheDriver;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListenersConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListenersConfig : static)
|
||||
*/
|
||||
public function entityListeners(mixed $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListenersConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['entityListeners'] = true;
|
||||
$this->entityListeners = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!$this->entityListeners instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListenersConfig) {
|
||||
$this->_usedProperties['entityListeners'] = true;
|
||||
$this->entityListeners = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListenersConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "entityListeners()" has already been initialized. You cannot pass values the second time you call entityListeners().');
|
||||
}
|
||||
|
||||
return $this->entityListeners;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function connection($value): static
|
||||
{
|
||||
$this->_usedProperties['connection'] = true;
|
||||
$this->connection = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'Doctrine\\ORM\\Mapping\\ClassMetadataFactory'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function classMetadataFactoryName($value): static
|
||||
{
|
||||
$this->_usedProperties['classMetadataFactoryName'] = true;
|
||||
$this->classMetadataFactoryName = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'Doctrine\\ORM\\EntityRepository'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultRepositoryClass($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultRepositoryClass'] = true;
|
||||
$this->defaultRepositoryClass = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default false
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function autoMapping($value): static
|
||||
{
|
||||
$this->_usedProperties['autoMapping'] = true;
|
||||
$this->autoMapping = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'doctrine.orm.naming_strategy.default'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function namingStrategy($value): static
|
||||
{
|
||||
$this->_usedProperties['namingStrategy'] = true;
|
||||
$this->namingStrategy = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'doctrine.orm.quote_strategy.default'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function quoteStrategy($value): static
|
||||
{
|
||||
$this->_usedProperties['quoteStrategy'] = true;
|
||||
$this->quoteStrategy = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'doctrine.orm.typed_field_mapper.default'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function typedFieldMapper($value): static
|
||||
{
|
||||
$this->_usedProperties['typedFieldMapper'] = true;
|
||||
$this->typedFieldMapper = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function entityListenerResolver($value): static
|
||||
{
|
||||
$this->_usedProperties['entityListenerResolver'] = true;
|
||||
$this->entityListenerResolver = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function fetchModeSubselectBatchSize($value): static
|
||||
{
|
||||
$this->_usedProperties['fetchModeSubselectBatchSize'] = true;
|
||||
$this->fetchModeSubselectBatchSize = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'doctrine.orm.container_repository_factory'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function repositoryFactory($value): static
|
||||
{
|
||||
$this->_usedProperties['repositoryFactory'] = true;
|
||||
$this->repositoryFactory = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function schemaIgnoreClasses(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['schemaIgnoreClasses'] = true;
|
||||
$this->schemaIgnoreClasses = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set to "true" to opt-in to the new mapping driver mode that was added in Doctrine ORM 2.16 and will be mandatory in ORM 3.0. See https://github.com/doctrine/orm/pull/10455.
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function reportFieldsWhereDeclared($value): static
|
||||
{
|
||||
$this->_usedProperties['reportFieldsWhereDeclared'] = true;
|
||||
$this->reportFieldsWhereDeclared = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set to "true" to opt-in to the new mapping driver mode that was added in Doctrine ORM 2.14 and will be mandatory in ORM 3.0. See https://github.com/doctrine/orm/pull/6728.
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function validateXmlMapping($value): static
|
||||
{
|
||||
$this->_usedProperties['validateXmlMapping'] = true;
|
||||
$this->validateXmlMapping = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function secondLevelCache(array $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCacheConfig
|
||||
{
|
||||
if (null === $this->secondLevelCache) {
|
||||
$this->_usedProperties['secondLevelCache'] = true;
|
||||
$this->secondLevelCache = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCacheConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "secondLevelCache()" has already been initialized. You cannot pass values the second time you call secondLevelCache().');
|
||||
}
|
||||
|
||||
return $this->secondLevelCache;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function hydrator(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['hydrators'] = true;
|
||||
$this->hydrators[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of string|array
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Doctrine\Orm\EntityManagerConfig\MappingConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Doctrine\Orm\EntityManagerConfig\MappingConfig : static)
|
||||
*/
|
||||
public function mapping(string $name, string|array $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\MappingConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['mappings'] = true;
|
||||
$this->mappings[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!isset($this->mappings[$name]) || !$this->mappings[$name] instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\MappingConfig) {
|
||||
$this->_usedProperties['mappings'] = true;
|
||||
$this->mappings[$name] = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\MappingConfig($value);
|
||||
} elseif (1 < \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->mappings[$name];
|
||||
}
|
||||
|
||||
public function dql(array $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\DqlConfig
|
||||
{
|
||||
if (null === $this->dql) {
|
||||
$this->_usedProperties['dql'] = true;
|
||||
$this->dql = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\DqlConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "dql()" has already been initialized. You cannot pass values the second time you call dql().');
|
||||
}
|
||||
|
||||
return $this->dql;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* Register SQL Filters in the entity manager
|
||||
* @return \Symfony\Config\Doctrine\Orm\EntityManagerConfig\FilterConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Doctrine\Orm\EntityManagerConfig\FilterConfig : static)
|
||||
*/
|
||||
public function filter(string $name, mixed $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\FilterConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['filters'] = true;
|
||||
$this->filters[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!isset($this->filters[$name]) || !$this->filters[$name] instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\FilterConfig) {
|
||||
$this->_usedProperties['filters'] = true;
|
||||
$this->filters[$name] = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\FilterConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "filter()" has already been initialized. You cannot pass values the second time you call filter().');
|
||||
}
|
||||
|
||||
return $this->filters[$name];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function identityGenerationPreference(string $platform, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['identityGenerationPreferences'] = true;
|
||||
$this->identityGenerationPreferences[$platform] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('query_cache_driver', $value)) {
|
||||
$this->_usedProperties['queryCacheDriver'] = true;
|
||||
$this->queryCacheDriver = \is_array($value['query_cache_driver']) ? new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\QueryCacheDriverConfig($value['query_cache_driver']) : $value['query_cache_driver'];
|
||||
unset($value['query_cache_driver']);
|
||||
}
|
||||
|
||||
if (array_key_exists('metadata_cache_driver', $value)) {
|
||||
$this->_usedProperties['metadataCacheDriver'] = true;
|
||||
$this->metadataCacheDriver = \is_array($value['metadata_cache_driver']) ? new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\MetadataCacheDriverConfig($value['metadata_cache_driver']) : $value['metadata_cache_driver'];
|
||||
unset($value['metadata_cache_driver']);
|
||||
}
|
||||
|
||||
if (array_key_exists('result_cache_driver', $value)) {
|
||||
$this->_usedProperties['resultCacheDriver'] = true;
|
||||
$this->resultCacheDriver = \is_array($value['result_cache_driver']) ? new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\ResultCacheDriverConfig($value['result_cache_driver']) : $value['result_cache_driver'];
|
||||
unset($value['result_cache_driver']);
|
||||
}
|
||||
|
||||
if (array_key_exists('entity_listeners', $value)) {
|
||||
$this->_usedProperties['entityListeners'] = true;
|
||||
$this->entityListeners = \is_array($value['entity_listeners']) ? new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListenersConfig($value['entity_listeners']) : $value['entity_listeners'];
|
||||
unset($value['entity_listeners']);
|
||||
}
|
||||
|
||||
if (array_key_exists('connection', $value)) {
|
||||
$this->_usedProperties['connection'] = true;
|
||||
$this->connection = $value['connection'];
|
||||
unset($value['connection']);
|
||||
}
|
||||
|
||||
if (array_key_exists('class_metadata_factory_name', $value)) {
|
||||
$this->_usedProperties['classMetadataFactoryName'] = true;
|
||||
$this->classMetadataFactoryName = $value['class_metadata_factory_name'];
|
||||
unset($value['class_metadata_factory_name']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_repository_class', $value)) {
|
||||
$this->_usedProperties['defaultRepositoryClass'] = true;
|
||||
$this->defaultRepositoryClass = $value['default_repository_class'];
|
||||
unset($value['default_repository_class']);
|
||||
}
|
||||
|
||||
if (array_key_exists('auto_mapping', $value)) {
|
||||
$this->_usedProperties['autoMapping'] = true;
|
||||
$this->autoMapping = $value['auto_mapping'];
|
||||
unset($value['auto_mapping']);
|
||||
}
|
||||
|
||||
if (array_key_exists('naming_strategy', $value)) {
|
||||
$this->_usedProperties['namingStrategy'] = true;
|
||||
$this->namingStrategy = $value['naming_strategy'];
|
||||
unset($value['naming_strategy']);
|
||||
}
|
||||
|
||||
if (array_key_exists('quote_strategy', $value)) {
|
||||
$this->_usedProperties['quoteStrategy'] = true;
|
||||
$this->quoteStrategy = $value['quote_strategy'];
|
||||
unset($value['quote_strategy']);
|
||||
}
|
||||
|
||||
if (array_key_exists('typed_field_mapper', $value)) {
|
||||
$this->_usedProperties['typedFieldMapper'] = true;
|
||||
$this->typedFieldMapper = $value['typed_field_mapper'];
|
||||
unset($value['typed_field_mapper']);
|
||||
}
|
||||
|
||||
if (array_key_exists('entity_listener_resolver', $value)) {
|
||||
$this->_usedProperties['entityListenerResolver'] = true;
|
||||
$this->entityListenerResolver = $value['entity_listener_resolver'];
|
||||
unset($value['entity_listener_resolver']);
|
||||
}
|
||||
|
||||
if (array_key_exists('fetch_mode_subselect_batch_size', $value)) {
|
||||
$this->_usedProperties['fetchModeSubselectBatchSize'] = true;
|
||||
$this->fetchModeSubselectBatchSize = $value['fetch_mode_subselect_batch_size'];
|
||||
unset($value['fetch_mode_subselect_batch_size']);
|
||||
}
|
||||
|
||||
if (array_key_exists('repository_factory', $value)) {
|
||||
$this->_usedProperties['repositoryFactory'] = true;
|
||||
$this->repositoryFactory = $value['repository_factory'];
|
||||
unset($value['repository_factory']);
|
||||
}
|
||||
|
||||
if (array_key_exists('schema_ignore_classes', $value)) {
|
||||
$this->_usedProperties['schemaIgnoreClasses'] = true;
|
||||
$this->schemaIgnoreClasses = $value['schema_ignore_classes'];
|
||||
unset($value['schema_ignore_classes']);
|
||||
}
|
||||
|
||||
if (array_key_exists('report_fields_where_declared', $value)) {
|
||||
$this->_usedProperties['reportFieldsWhereDeclared'] = true;
|
||||
$this->reportFieldsWhereDeclared = $value['report_fields_where_declared'];
|
||||
unset($value['report_fields_where_declared']);
|
||||
}
|
||||
|
||||
if (array_key_exists('validate_xml_mapping', $value)) {
|
||||
$this->_usedProperties['validateXmlMapping'] = true;
|
||||
$this->validateXmlMapping = $value['validate_xml_mapping'];
|
||||
unset($value['validate_xml_mapping']);
|
||||
}
|
||||
|
||||
if (array_key_exists('second_level_cache', $value)) {
|
||||
$this->_usedProperties['secondLevelCache'] = true;
|
||||
$this->secondLevelCache = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCacheConfig($value['second_level_cache']);
|
||||
unset($value['second_level_cache']);
|
||||
}
|
||||
|
||||
if (array_key_exists('hydrators', $value)) {
|
||||
$this->_usedProperties['hydrators'] = true;
|
||||
$this->hydrators = $value['hydrators'];
|
||||
unset($value['hydrators']);
|
||||
}
|
||||
|
||||
if (array_key_exists('mappings', $value)) {
|
||||
$this->_usedProperties['mappings'] = true;
|
||||
$this->mappings = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\MappingConfig($v) : $v, $value['mappings']);
|
||||
unset($value['mappings']);
|
||||
}
|
||||
|
||||
if (array_key_exists('dql', $value)) {
|
||||
$this->_usedProperties['dql'] = true;
|
||||
$this->dql = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\DqlConfig($value['dql']);
|
||||
unset($value['dql']);
|
||||
}
|
||||
|
||||
if (array_key_exists('filters', $value)) {
|
||||
$this->_usedProperties['filters'] = true;
|
||||
$this->filters = array_map(fn ($v) => \is_array($v) ? new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\FilterConfig($v) : $v, $value['filters']);
|
||||
unset($value['filters']);
|
||||
}
|
||||
|
||||
if (array_key_exists('identity_generation_preferences', $value)) {
|
||||
$this->_usedProperties['identityGenerationPreferences'] = true;
|
||||
$this->identityGenerationPreferences = $value['identity_generation_preferences'];
|
||||
unset($value['identity_generation_preferences']);
|
||||
}
|
||||
|
||||
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['queryCacheDriver'])) {
|
||||
$output['query_cache_driver'] = $this->queryCacheDriver instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\QueryCacheDriverConfig ? $this->queryCacheDriver->toArray() : $this->queryCacheDriver;
|
||||
}
|
||||
if (isset($this->_usedProperties['metadataCacheDriver'])) {
|
||||
$output['metadata_cache_driver'] = $this->metadataCacheDriver instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\MetadataCacheDriverConfig ? $this->metadataCacheDriver->toArray() : $this->metadataCacheDriver;
|
||||
}
|
||||
if (isset($this->_usedProperties['resultCacheDriver'])) {
|
||||
$output['result_cache_driver'] = $this->resultCacheDriver instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\ResultCacheDriverConfig ? $this->resultCacheDriver->toArray() : $this->resultCacheDriver;
|
||||
}
|
||||
if (isset($this->_usedProperties['entityListeners'])) {
|
||||
$output['entity_listeners'] = $this->entityListeners instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListenersConfig ? $this->entityListeners->toArray() : $this->entityListeners;
|
||||
}
|
||||
if (isset($this->_usedProperties['connection'])) {
|
||||
$output['connection'] = $this->connection;
|
||||
}
|
||||
if (isset($this->_usedProperties['classMetadataFactoryName'])) {
|
||||
$output['class_metadata_factory_name'] = $this->classMetadataFactoryName;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultRepositoryClass'])) {
|
||||
$output['default_repository_class'] = $this->defaultRepositoryClass;
|
||||
}
|
||||
if (isset($this->_usedProperties['autoMapping'])) {
|
||||
$output['auto_mapping'] = $this->autoMapping;
|
||||
}
|
||||
if (isset($this->_usedProperties['namingStrategy'])) {
|
||||
$output['naming_strategy'] = $this->namingStrategy;
|
||||
}
|
||||
if (isset($this->_usedProperties['quoteStrategy'])) {
|
||||
$output['quote_strategy'] = $this->quoteStrategy;
|
||||
}
|
||||
if (isset($this->_usedProperties['typedFieldMapper'])) {
|
||||
$output['typed_field_mapper'] = $this->typedFieldMapper;
|
||||
}
|
||||
if (isset($this->_usedProperties['entityListenerResolver'])) {
|
||||
$output['entity_listener_resolver'] = $this->entityListenerResolver;
|
||||
}
|
||||
if (isset($this->_usedProperties['fetchModeSubselectBatchSize'])) {
|
||||
$output['fetch_mode_subselect_batch_size'] = $this->fetchModeSubselectBatchSize;
|
||||
}
|
||||
if (isset($this->_usedProperties['repositoryFactory'])) {
|
||||
$output['repository_factory'] = $this->repositoryFactory;
|
||||
}
|
||||
if (isset($this->_usedProperties['schemaIgnoreClasses'])) {
|
||||
$output['schema_ignore_classes'] = $this->schemaIgnoreClasses;
|
||||
}
|
||||
if (isset($this->_usedProperties['reportFieldsWhereDeclared'])) {
|
||||
$output['report_fields_where_declared'] = $this->reportFieldsWhereDeclared;
|
||||
}
|
||||
if (isset($this->_usedProperties['validateXmlMapping'])) {
|
||||
$output['validate_xml_mapping'] = $this->validateXmlMapping;
|
||||
}
|
||||
if (isset($this->_usedProperties['secondLevelCache'])) {
|
||||
$output['second_level_cache'] = $this->secondLevelCache->toArray();
|
||||
}
|
||||
if (isset($this->_usedProperties['hydrators'])) {
|
||||
$output['hydrators'] = $this->hydrators;
|
||||
}
|
||||
if (isset($this->_usedProperties['mappings'])) {
|
||||
$output['mappings'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\MappingConfig ? $v->toArray() : $v, $this->mappings);
|
||||
}
|
||||
if (isset($this->_usedProperties['dql'])) {
|
||||
$output['dql'] = $this->dql->toArray();
|
||||
}
|
||||
if (isset($this->_usedProperties['filters'])) {
|
||||
$output['filters'] = array_map(fn ($v) => $v instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\FilterConfig ? $v->toArray() : $v, $this->filters);
|
||||
}
|
||||
if (isset($this->_usedProperties['identityGenerationPreferences'])) {
|
||||
$output['identity_generation_preferences'] = $this->identityGenerationPreferences;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
92
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/DqlConfig.php
vendored
Normal file
92
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/DqlConfig.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig;
|
||||
|
||||
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 DqlConfig
|
||||
{
|
||||
private $stringFunctions;
|
||||
private $numericFunctions;
|
||||
private $datetimeFunctions;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function stringFunction(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['stringFunctions'] = true;
|
||||
$this->stringFunctions[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function numericFunction(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['numericFunctions'] = true;
|
||||
$this->numericFunctions[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function datetimeFunction(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['datetimeFunctions'] = true;
|
||||
$this->datetimeFunctions[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('string_functions', $value)) {
|
||||
$this->_usedProperties['stringFunctions'] = true;
|
||||
$this->stringFunctions = $value['string_functions'];
|
||||
unset($value['string_functions']);
|
||||
}
|
||||
|
||||
if (array_key_exists('numeric_functions', $value)) {
|
||||
$this->_usedProperties['numericFunctions'] = true;
|
||||
$this->numericFunctions = $value['numeric_functions'];
|
||||
unset($value['numeric_functions']);
|
||||
}
|
||||
|
||||
if (array_key_exists('datetime_functions', $value)) {
|
||||
$this->_usedProperties['datetimeFunctions'] = true;
|
||||
$this->datetimeFunctions = $value['datetime_functions'];
|
||||
unset($value['datetime_functions']);
|
||||
}
|
||||
|
||||
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['stringFunctions'])) {
|
||||
$output['string_functions'] = $this->stringFunctions;
|
||||
}
|
||||
if (isset($this->_usedProperties['numericFunctions'])) {
|
||||
$output['numeric_functions'] = $this->numericFunctions;
|
||||
}
|
||||
if (isset($this->_usedProperties['datetimeFunctions'])) {
|
||||
$output['datetime_functions'] = $this->datetimeFunctions;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/EntityListeners/EntityConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/EntityListeners/EntityConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListeners;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'EntityConfig'.\DIRECTORY_SEPARATOR.'ListenerConfig.php';
|
||||
|
||||
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
|
||||
|
||||
/**
|
||||
* This class is automatically generated to help in creating a config.
|
||||
*/
|
||||
class EntityConfig
|
||||
{
|
||||
private $listeners;
|
||||
private $_usedProperties = [];
|
||||
|
||||
public function listener(string $class, array $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListeners\EntityConfig\ListenerConfig
|
||||
{
|
||||
if (!isset($this->listeners[$class])) {
|
||||
$this->_usedProperties['listeners'] = true;
|
||||
$this->listeners[$class] = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListeners\EntityConfig\ListenerConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "listener()" has already been initialized. You cannot pass values the second time you call listener().');
|
||||
}
|
||||
|
||||
return $this->listeners[$class];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('listeners', $value)) {
|
||||
$this->_usedProperties['listeners'] = true;
|
||||
$this->listeners = array_map(fn ($v) => new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListeners\EntityConfig\ListenerConfig($v), $value['listeners']);
|
||||
unset($value['listeners']);
|
||||
}
|
||||
|
||||
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['listeners'])) {
|
||||
$output['listeners'] = array_map(fn ($v) => $v->toArray(), $this->listeners);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListeners\EntityConfig;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'ListenerConfig'.\DIRECTORY_SEPARATOR.'EventConfig.php';
|
||||
|
||||
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
|
||||
|
||||
/**
|
||||
* This class is automatically generated to help in creating a config.
|
||||
*/
|
||||
class ListenerConfig
|
||||
{
|
||||
private $events;
|
||||
private $_usedProperties = [];
|
||||
|
||||
public function event(array $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListeners\EntityConfig\ListenerConfig\EventConfig
|
||||
{
|
||||
$this->_usedProperties['events'] = true;
|
||||
|
||||
return $this->events[] = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListeners\EntityConfig\ListenerConfig\EventConfig($value);
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('events', $value)) {
|
||||
$this->_usedProperties['events'] = true;
|
||||
$this->events = array_map(fn ($v) => new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListeners\EntityConfig\ListenerConfig\EventConfig($v), $value['events']);
|
||||
unset($value['events']);
|
||||
}
|
||||
|
||||
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['events'])) {
|
||||
$output['events'] = array_map(fn ($v) => $v->toArray(), $this->events);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListeners\EntityConfig\ListenerConfig;
|
||||
|
||||
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 EventConfig
|
||||
{
|
||||
private $type;
|
||||
private $method;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $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 method($value): static
|
||||
{
|
||||
$this->_usedProperties['method'] = true;
|
||||
$this->method = $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('method', $value)) {
|
||||
$this->_usedProperties['method'] = true;
|
||||
$this->method = $value['method'];
|
||||
unset($value['method']);
|
||||
}
|
||||
|
||||
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['method'])) {
|
||||
$output['method'] = $this->method;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/EntityListenersConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/EntityListenersConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'EntityListeners'.\DIRECTORY_SEPARATOR.'EntityConfig.php';
|
||||
|
||||
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
|
||||
|
||||
/**
|
||||
* This class is automatically generated to help in creating a config.
|
||||
*/
|
||||
class EntityListenersConfig
|
||||
{
|
||||
private $entities;
|
||||
private $_usedProperties = [];
|
||||
|
||||
public function entity(string $class, array $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListeners\EntityConfig
|
||||
{
|
||||
if (!isset($this->entities[$class])) {
|
||||
$this->_usedProperties['entities'] = true;
|
||||
$this->entities[$class] = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListeners\EntityConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "entity()" has already been initialized. You cannot pass values the second time you call entity().');
|
||||
}
|
||||
|
||||
return $this->entities[$class];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('entities', $value)) {
|
||||
$this->_usedProperties['entities'] = true;
|
||||
$this->entities = array_map(fn ($v) => new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\EntityListeners\EntityConfig($v), $value['entities']);
|
||||
unset($value['entities']);
|
||||
}
|
||||
|
||||
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['entities'])) {
|
||||
$output['entities'] = array_map(fn ($v) => $v->toArray(), $this->entities);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
96
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/FilterConfig.php
vendored
Normal file
96
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/FilterConfig.php
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig;
|
||||
|
||||
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 FilterConfig
|
||||
{
|
||||
private $class;
|
||||
private $enabled;
|
||||
private $parameters;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function class($value): static
|
||||
{
|
||||
$this->_usedProperties['class'] = true;
|
||||
$this->class = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @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 parameter(string $name, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['parameters'] = true;
|
||||
$this->parameters[$name] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('class', $value)) {
|
||||
$this->_usedProperties['class'] = true;
|
||||
$this->class = $value['class'];
|
||||
unset($value['class']);
|
||||
}
|
||||
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('parameters', $value)) {
|
||||
$this->_usedProperties['parameters'] = true;
|
||||
$this->parameters = $value['parameters'];
|
||||
unset($value['parameters']);
|
||||
}
|
||||
|
||||
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['class'])) {
|
||||
$output['class'] = $this->class;
|
||||
}
|
||||
if (isset($this->_usedProperties['enabled'])) {
|
||||
$output['enabled'] = $this->enabled;
|
||||
}
|
||||
if (isset($this->_usedProperties['parameters'])) {
|
||||
$output['parameters'] = $this->parameters;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
167
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/MappingConfig.php
vendored
Normal file
167
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/MappingConfig.php
vendored
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig;
|
||||
|
||||
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 $mapping;
|
||||
private $type;
|
||||
private $dir;
|
||||
private $alias;
|
||||
private $prefix;
|
||||
private $isBundle;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function mapping($value): static
|
||||
{
|
||||
$this->_usedProperties['mapping'] = true;
|
||||
$this->mapping = $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 null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function dir($value): static
|
||||
{
|
||||
$this->_usedProperties['dir'] = true;
|
||||
$this->dir = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function alias($value): static
|
||||
{
|
||||
$this->_usedProperties['alias'] = true;
|
||||
$this->alias = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function prefix($value): static
|
||||
{
|
||||
$this->_usedProperties['prefix'] = true;
|
||||
$this->prefix = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function isBundle($value): static
|
||||
{
|
||||
$this->_usedProperties['isBundle'] = true;
|
||||
$this->isBundle = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('mapping', $value)) {
|
||||
$this->_usedProperties['mapping'] = true;
|
||||
$this->mapping = $value['mapping'];
|
||||
unset($value['mapping']);
|
||||
}
|
||||
|
||||
if (array_key_exists('type', $value)) {
|
||||
$this->_usedProperties['type'] = true;
|
||||
$this->type = $value['type'];
|
||||
unset($value['type']);
|
||||
}
|
||||
|
||||
if (array_key_exists('dir', $value)) {
|
||||
$this->_usedProperties['dir'] = true;
|
||||
$this->dir = $value['dir'];
|
||||
unset($value['dir']);
|
||||
}
|
||||
|
||||
if (array_key_exists('alias', $value)) {
|
||||
$this->_usedProperties['alias'] = true;
|
||||
$this->alias = $value['alias'];
|
||||
unset($value['alias']);
|
||||
}
|
||||
|
||||
if (array_key_exists('prefix', $value)) {
|
||||
$this->_usedProperties['prefix'] = true;
|
||||
$this->prefix = $value['prefix'];
|
||||
unset($value['prefix']);
|
||||
}
|
||||
|
||||
if (array_key_exists('is_bundle', $value)) {
|
||||
$this->_usedProperties['isBundle'] = true;
|
||||
$this->isBundle = $value['is_bundle'];
|
||||
unset($value['is_bundle']);
|
||||
}
|
||||
|
||||
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['mapping'])) {
|
||||
$output['mapping'] = $this->mapping;
|
||||
}
|
||||
if (isset($this->_usedProperties['type'])) {
|
||||
$output['type'] = $this->type;
|
||||
}
|
||||
if (isset($this->_usedProperties['dir'])) {
|
||||
$output['dir'] = $this->dir;
|
||||
}
|
||||
if (isset($this->_usedProperties['alias'])) {
|
||||
$output['alias'] = $this->alias;
|
||||
}
|
||||
if (isset($this->_usedProperties['prefix'])) {
|
||||
$output['prefix'] = $this->prefix;
|
||||
}
|
||||
if (isset($this->_usedProperties['isBundle'])) {
|
||||
$output['is_bundle'] = $this->isBundle;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
98
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/MetadataCacheDriverConfig.php
vendored
Normal file
98
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/MetadataCacheDriverConfig.php
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig;
|
||||
|
||||
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 MetadataCacheDriverConfig
|
||||
{
|
||||
private $type;
|
||||
private $id;
|
||||
private $pool;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $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 id($value): static
|
||||
{
|
||||
$this->_usedProperties['id'] = true;
|
||||
$this->id = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function pool($value): static
|
||||
{
|
||||
$this->_usedProperties['pool'] = true;
|
||||
$this->pool = $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('id', $value)) {
|
||||
$this->_usedProperties['id'] = true;
|
||||
$this->id = $value['id'];
|
||||
unset($value['id']);
|
||||
}
|
||||
|
||||
if (array_key_exists('pool', $value)) {
|
||||
$this->_usedProperties['pool'] = true;
|
||||
$this->pool = $value['pool'];
|
||||
unset($value['pool']);
|
||||
}
|
||||
|
||||
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['id'])) {
|
||||
$output['id'] = $this->id;
|
||||
}
|
||||
if (isset($this->_usedProperties['pool'])) {
|
||||
$output['pool'] = $this->pool;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
98
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/QueryCacheDriverConfig.php
vendored
Normal file
98
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/QueryCacheDriverConfig.php
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig;
|
||||
|
||||
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 QueryCacheDriverConfig
|
||||
{
|
||||
private $type;
|
||||
private $id;
|
||||
private $pool;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $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 id($value): static
|
||||
{
|
||||
$this->_usedProperties['id'] = true;
|
||||
$this->id = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function pool($value): static
|
||||
{
|
||||
$this->_usedProperties['pool'] = true;
|
||||
$this->pool = $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('id', $value)) {
|
||||
$this->_usedProperties['id'] = true;
|
||||
$this->id = $value['id'];
|
||||
unset($value['id']);
|
||||
}
|
||||
|
||||
if (array_key_exists('pool', $value)) {
|
||||
$this->_usedProperties['pool'] = true;
|
||||
$this->pool = $value['pool'];
|
||||
unset($value['pool']);
|
||||
}
|
||||
|
||||
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['id'])) {
|
||||
$output['id'] = $this->id;
|
||||
}
|
||||
if (isset($this->_usedProperties['pool'])) {
|
||||
$output['pool'] = $this->pool;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
98
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/ResultCacheDriverConfig.php
vendored
Normal file
98
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/ResultCacheDriverConfig.php
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig;
|
||||
|
||||
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 ResultCacheDriverConfig
|
||||
{
|
||||
private $type;
|
||||
private $id;
|
||||
private $pool;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $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 id($value): static
|
||||
{
|
||||
$this->_usedProperties['id'] = true;
|
||||
$this->id = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function pool($value): static
|
||||
{
|
||||
$this->_usedProperties['pool'] = true;
|
||||
$this->pool = $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('id', $value)) {
|
||||
$this->_usedProperties['id'] = true;
|
||||
$this->id = $value['id'];
|
||||
unset($value['id']);
|
||||
}
|
||||
|
||||
if (array_key_exists('pool', $value)) {
|
||||
$this->_usedProperties['pool'] = true;
|
||||
$this->pool = $value['pool'];
|
||||
unset($value['pool']);
|
||||
}
|
||||
|
||||
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['id'])) {
|
||||
$output['id'] = $this->id;
|
||||
}
|
||||
if (isset($this->_usedProperties['pool'])) {
|
||||
$output['pool'] = $this->pool;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
75
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/SecondLevelCache/LoggerConfig.php
vendored
Normal file
75
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/SecondLevelCache/LoggerConfig.php
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache;
|
||||
|
||||
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 LoggerConfig
|
||||
{
|
||||
private $name;
|
||||
private $service;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @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 service($value): static
|
||||
{
|
||||
$this->_usedProperties['service'] = true;
|
||||
$this->service = $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('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['name'])) {
|
||||
$output['name'] = $this->name;
|
||||
}
|
||||
if (isset($this->_usedProperties['service'])) {
|
||||
$output['service'] = $this->service;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache;
|
||||
|
||||
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 RegionCacheDriverConfig
|
||||
{
|
||||
private $type;
|
||||
private $id;
|
||||
private $pool;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $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 id($value): static
|
||||
{
|
||||
$this->_usedProperties['id'] = true;
|
||||
$this->id = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function pool($value): static
|
||||
{
|
||||
$this->_usedProperties['pool'] = true;
|
||||
$this->pool = $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('id', $value)) {
|
||||
$this->_usedProperties['id'] = true;
|
||||
$this->id = $value['id'];
|
||||
unset($value['id']);
|
||||
}
|
||||
|
||||
if (array_key_exists('pool', $value)) {
|
||||
$this->_usedProperties['pool'] = true;
|
||||
$this->pool = $value['pool'];
|
||||
unset($value['pool']);
|
||||
}
|
||||
|
||||
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['id'])) {
|
||||
$output['id'] = $this->id;
|
||||
}
|
||||
if (isset($this->_usedProperties['pool'])) {
|
||||
$output['pool'] = $this->pool;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
205
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/SecondLevelCache/RegionConfig.php
vendored
Normal file
205
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/SecondLevelCache/RegionConfig.php
vendored
Normal file
@@ -0,0 +1,205 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'RegionConfig'.\DIRECTORY_SEPARATOR.'CacheDriverConfig.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 RegionConfig
|
||||
{
|
||||
private $cacheDriver;
|
||||
private $lockPath;
|
||||
private $lockLifetime;
|
||||
private $type;
|
||||
private $lifetime;
|
||||
private $service;
|
||||
private $name;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @template TValue of string|array
|
||||
* @param TValue $value
|
||||
* @default {"type":null}
|
||||
* @return \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionConfig\CacheDriverConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionConfig\CacheDriverConfig : static)
|
||||
*/
|
||||
public function cacheDriver(string|array $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionConfig\CacheDriverConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['cacheDriver'] = true;
|
||||
$this->cacheDriver = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!$this->cacheDriver instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionConfig\CacheDriverConfig) {
|
||||
$this->_usedProperties['cacheDriver'] = true;
|
||||
$this->cacheDriver = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionConfig\CacheDriverConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "cacheDriver()" has already been initialized. You cannot pass values the second time you call cacheDriver().');
|
||||
}
|
||||
|
||||
return $this->cacheDriver;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default '%kernel.cache_dir%/doctrine/orm/slc/filelock'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function lockPath($value): static
|
||||
{
|
||||
$this->_usedProperties['lockPath'] = true;
|
||||
$this->lockPath = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 60
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function lockLifetime($value): static
|
||||
{
|
||||
$this->_usedProperties['lockLifetime'] = true;
|
||||
$this->lockLifetime = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'default'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function type($value): static
|
||||
{
|
||||
$this->_usedProperties['type'] = true;
|
||||
$this->type = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 0
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function lifetime($value): static
|
||||
{
|
||||
$this->_usedProperties['lifetime'] = true;
|
||||
$this->lifetime = $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;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function name($value): static
|
||||
{
|
||||
$this->_usedProperties['name'] = true;
|
||||
$this->name = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('cache_driver', $value)) {
|
||||
$this->_usedProperties['cacheDriver'] = true;
|
||||
$this->cacheDriver = \is_array($value['cache_driver']) ? new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionConfig\CacheDriverConfig($value['cache_driver']) : $value['cache_driver'];
|
||||
unset($value['cache_driver']);
|
||||
}
|
||||
|
||||
if (array_key_exists('lock_path', $value)) {
|
||||
$this->_usedProperties['lockPath'] = true;
|
||||
$this->lockPath = $value['lock_path'];
|
||||
unset($value['lock_path']);
|
||||
}
|
||||
|
||||
if (array_key_exists('lock_lifetime', $value)) {
|
||||
$this->_usedProperties['lockLifetime'] = true;
|
||||
$this->lockLifetime = $value['lock_lifetime'];
|
||||
unset($value['lock_lifetime']);
|
||||
}
|
||||
|
||||
if (array_key_exists('type', $value)) {
|
||||
$this->_usedProperties['type'] = true;
|
||||
$this->type = $value['type'];
|
||||
unset($value['type']);
|
||||
}
|
||||
|
||||
if (array_key_exists('lifetime', $value)) {
|
||||
$this->_usedProperties['lifetime'] = true;
|
||||
$this->lifetime = $value['lifetime'];
|
||||
unset($value['lifetime']);
|
||||
}
|
||||
|
||||
if (array_key_exists('service', $value)) {
|
||||
$this->_usedProperties['service'] = true;
|
||||
$this->service = $value['service'];
|
||||
unset($value['service']);
|
||||
}
|
||||
|
||||
if (array_key_exists('name', $value)) {
|
||||
$this->_usedProperties['name'] = true;
|
||||
$this->name = $value['name'];
|
||||
unset($value['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['cacheDriver'])) {
|
||||
$output['cache_driver'] = $this->cacheDriver instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionConfig\CacheDriverConfig ? $this->cacheDriver->toArray() : $this->cacheDriver;
|
||||
}
|
||||
if (isset($this->_usedProperties['lockPath'])) {
|
||||
$output['lock_path'] = $this->lockPath;
|
||||
}
|
||||
if (isset($this->_usedProperties['lockLifetime'])) {
|
||||
$output['lock_lifetime'] = $this->lockLifetime;
|
||||
}
|
||||
if (isset($this->_usedProperties['type'])) {
|
||||
$output['type'] = $this->type;
|
||||
}
|
||||
if (isset($this->_usedProperties['lifetime'])) {
|
||||
$output['lifetime'] = $this->lifetime;
|
||||
}
|
||||
if (isset($this->_usedProperties['service'])) {
|
||||
$output['service'] = $this->service;
|
||||
}
|
||||
if (isset($this->_usedProperties['name'])) {
|
||||
$output['name'] = $this->name;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionConfig;
|
||||
|
||||
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 CacheDriverConfig
|
||||
{
|
||||
private $type;
|
||||
private $id;
|
||||
private $pool;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $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 id($value): static
|
||||
{
|
||||
$this->_usedProperties['id'] = true;
|
||||
$this->id = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function pool($value): static
|
||||
{
|
||||
$this->_usedProperties['pool'] = true;
|
||||
$this->pool = $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('id', $value)) {
|
||||
$this->_usedProperties['id'] = true;
|
||||
$this->id = $value['id'];
|
||||
unset($value['id']);
|
||||
}
|
||||
|
||||
if (array_key_exists('pool', $value)) {
|
||||
$this->_usedProperties['pool'] = true;
|
||||
$this->pool = $value['pool'];
|
||||
unset($value['pool']);
|
||||
}
|
||||
|
||||
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['id'])) {
|
||||
$output['id'] = $this->id;
|
||||
}
|
||||
if (isset($this->_usedProperties['pool'])) {
|
||||
$output['pool'] = $this->pool;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
228
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/SecondLevelCacheConfig.php
vendored
Normal file
228
var/cache/dev/Symfony/Config/Doctrine/Orm/EntityManagerConfig/SecondLevelCacheConfig.php
vendored
Normal file
@@ -0,0 +1,228 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine\Orm\EntityManagerConfig;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'SecondLevelCache'.\DIRECTORY_SEPARATOR.'RegionCacheDriverConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'SecondLevelCache'.\DIRECTORY_SEPARATOR.'RegionConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'SecondLevelCache'.\DIRECTORY_SEPARATOR.'LoggerConfig.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 SecondLevelCacheConfig
|
||||
{
|
||||
private $regionCacheDriver;
|
||||
private $regionLockLifetime;
|
||||
private $logEnabled;
|
||||
private $regionLifetime;
|
||||
private $enabled;
|
||||
private $factory;
|
||||
private $regions;
|
||||
private $loggers;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @template TValue of string|array
|
||||
* @param TValue $value
|
||||
* @default {"type":null}
|
||||
* @return \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionCacheDriverConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionCacheDriverConfig : static)
|
||||
*/
|
||||
public function regionCacheDriver(string|array $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionCacheDriverConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['regionCacheDriver'] = true;
|
||||
$this->regionCacheDriver = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!$this->regionCacheDriver instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionCacheDriverConfig) {
|
||||
$this->_usedProperties['regionCacheDriver'] = true;
|
||||
$this->regionCacheDriver = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionCacheDriverConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "regionCacheDriver()" has already been initialized. You cannot pass values the second time you call regionCacheDriver().');
|
||||
}
|
||||
|
||||
return $this->regionCacheDriver;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 60
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function regionLockLifetime($value): static
|
||||
{
|
||||
$this->_usedProperties['regionLockLifetime'] = true;
|
||||
$this->regionLockLifetime = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function logEnabled($value): static
|
||||
{
|
||||
$this->_usedProperties['logEnabled'] = true;
|
||||
$this->logEnabled = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 3600
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function regionLifetime($value): static
|
||||
{
|
||||
$this->_usedProperties['regionLifetime'] = true;
|
||||
$this->regionLifetime = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default true
|
||||
* @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 factory($value): static
|
||||
{
|
||||
$this->_usedProperties['factory'] = true;
|
||||
$this->factory = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function region(string $name, array $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionConfig
|
||||
{
|
||||
if (!isset($this->regions[$name])) {
|
||||
$this->_usedProperties['regions'] = true;
|
||||
$this->regions[$name] = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "region()" has already been initialized. You cannot pass values the second time you call region().');
|
||||
}
|
||||
|
||||
return $this->regions[$name];
|
||||
}
|
||||
|
||||
public function logger(string $name, array $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\LoggerConfig
|
||||
{
|
||||
if (!isset($this->loggers[$name])) {
|
||||
$this->_usedProperties['loggers'] = true;
|
||||
$this->loggers[$name] = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\LoggerConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "logger()" has already been initialized. You cannot pass values the second time you call logger().');
|
||||
}
|
||||
|
||||
return $this->loggers[$name];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('region_cache_driver', $value)) {
|
||||
$this->_usedProperties['regionCacheDriver'] = true;
|
||||
$this->regionCacheDriver = \is_array($value['region_cache_driver']) ? new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionCacheDriverConfig($value['region_cache_driver']) : $value['region_cache_driver'];
|
||||
unset($value['region_cache_driver']);
|
||||
}
|
||||
|
||||
if (array_key_exists('region_lock_lifetime', $value)) {
|
||||
$this->_usedProperties['regionLockLifetime'] = true;
|
||||
$this->regionLockLifetime = $value['region_lock_lifetime'];
|
||||
unset($value['region_lock_lifetime']);
|
||||
}
|
||||
|
||||
if (array_key_exists('log_enabled', $value)) {
|
||||
$this->_usedProperties['logEnabled'] = true;
|
||||
$this->logEnabled = $value['log_enabled'];
|
||||
unset($value['log_enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('region_lifetime', $value)) {
|
||||
$this->_usedProperties['regionLifetime'] = true;
|
||||
$this->regionLifetime = $value['region_lifetime'];
|
||||
unset($value['region_lifetime']);
|
||||
}
|
||||
|
||||
if (array_key_exists('enabled', $value)) {
|
||||
$this->_usedProperties['enabled'] = true;
|
||||
$this->enabled = $value['enabled'];
|
||||
unset($value['enabled']);
|
||||
}
|
||||
|
||||
if (array_key_exists('factory', $value)) {
|
||||
$this->_usedProperties['factory'] = true;
|
||||
$this->factory = $value['factory'];
|
||||
unset($value['factory']);
|
||||
}
|
||||
|
||||
if (array_key_exists('regions', $value)) {
|
||||
$this->_usedProperties['regions'] = true;
|
||||
$this->regions = array_map(fn ($v) => new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionConfig($v), $value['regions']);
|
||||
unset($value['regions']);
|
||||
}
|
||||
|
||||
if (array_key_exists('loggers', $value)) {
|
||||
$this->_usedProperties['loggers'] = true;
|
||||
$this->loggers = array_map(fn ($v) => new \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\LoggerConfig($v), $value['loggers']);
|
||||
unset($value['loggers']);
|
||||
}
|
||||
|
||||
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['regionCacheDriver'])) {
|
||||
$output['region_cache_driver'] = $this->regionCacheDriver instanceof \Symfony\Config\Doctrine\Orm\EntityManagerConfig\SecondLevelCache\RegionCacheDriverConfig ? $this->regionCacheDriver->toArray() : $this->regionCacheDriver;
|
||||
}
|
||||
if (isset($this->_usedProperties['regionLockLifetime'])) {
|
||||
$output['region_lock_lifetime'] = $this->regionLockLifetime;
|
||||
}
|
||||
if (isset($this->_usedProperties['logEnabled'])) {
|
||||
$output['log_enabled'] = $this->logEnabled;
|
||||
}
|
||||
if (isset($this->_usedProperties['regionLifetime'])) {
|
||||
$output['region_lifetime'] = $this->regionLifetime;
|
||||
}
|
||||
if (isset($this->_usedProperties['enabled'])) {
|
||||
$output['enabled'] = $this->enabled;
|
||||
}
|
||||
if (isset($this->_usedProperties['factory'])) {
|
||||
$output['factory'] = $this->factory;
|
||||
}
|
||||
if (isset($this->_usedProperties['regions'])) {
|
||||
$output['regions'] = array_map(fn ($v) => $v->toArray(), $this->regions);
|
||||
}
|
||||
if (isset($this->_usedProperties['loggers'])) {
|
||||
$output['loggers'] = array_map(fn ($v) => $v->toArray(), $this->loggers);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
243
var/cache/dev/Symfony/Config/Doctrine/OrmConfig.php
vendored
Normal file
243
var/cache/dev/Symfony/Config/Doctrine/OrmConfig.php
vendored
Normal file
@@ -0,0 +1,243 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Doctrine;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Orm'.\DIRECTORY_SEPARATOR.'ControllerResolverConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Orm'.\DIRECTORY_SEPARATOR.'EntityManagerConfig.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 OrmConfig
|
||||
{
|
||||
private $defaultEntityManager;
|
||||
private $autoGenerateProxyClasses;
|
||||
private $enableLazyGhostObjects;
|
||||
private $enableNativeLazyObjects;
|
||||
private $proxyDir;
|
||||
private $proxyNamespace;
|
||||
private $controllerResolver;
|
||||
private $entityManagers;
|
||||
private $resolveTargetEntities;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultEntityManager($value): static
|
||||
{
|
||||
$this->_usedProperties['defaultEntityManager'] = true;
|
||||
$this->defaultEntityManager = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Auto generate mode possible values are: "NEVER", "ALWAYS", "FILE_NOT_EXISTS", "EVAL", "FILE_NOT_EXISTS_OR_CHANGED", this option is ignored when the "enable_native_lazy_objects" option is true
|
||||
* @default false
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function autoGenerateProxyClasses($value): static
|
||||
{
|
||||
$this->_usedProperties['autoGenerateProxyClasses'] = true;
|
||||
$this->autoGenerateProxyClasses = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables the new implementation of proxies based on lazy ghosts instead of using the legacy implementation
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enableLazyGhostObjects($value): static
|
||||
{
|
||||
$this->_usedProperties['enableLazyGhostObjects'] = true;
|
||||
$this->enableLazyGhostObjects = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables the new native implementation of PHP lazy objects instead of generated proxies
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enableNativeLazyObjects($value): static
|
||||
{
|
||||
$this->_usedProperties['enableNativeLazyObjects'] = true;
|
||||
$this->enableNativeLazyObjects = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configures the path where generated proxy classes are saved when using non-native lazy objects, this option is ignored when the "enable_native_lazy_objects" option is true
|
||||
* @default '%kernel.build_dir%/doctrine/orm/Proxies'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function proxyDir($value): static
|
||||
{
|
||||
$this->_usedProperties['proxyDir'] = true;
|
||||
$this->proxyDir = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the root namespace for generated proxy classes when using non-native lazy objects, this option is ignored when the "enable_native_lazy_objects" option is true
|
||||
* @default 'Proxies'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function proxyNamespace($value): static
|
||||
{
|
||||
$this->_usedProperties['proxyNamespace'] = true;
|
||||
$this->proxyNamespace = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default {"enabled":true,"auto_mapping":null,"evict_cache":false}
|
||||
*/
|
||||
public function controllerResolver(array $value = []): \Symfony\Config\Doctrine\Orm\ControllerResolverConfig
|
||||
{
|
||||
if (null === $this->controllerResolver) {
|
||||
$this->_usedProperties['controllerResolver'] = true;
|
||||
$this->controllerResolver = new \Symfony\Config\Doctrine\Orm\ControllerResolverConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "controllerResolver()" has already been initialized. You cannot pass values the second time you call controllerResolver().');
|
||||
}
|
||||
|
||||
return $this->controllerResolver;
|
||||
}
|
||||
|
||||
public function entityManager(string $name, array $value = []): \Symfony\Config\Doctrine\Orm\EntityManagerConfig
|
||||
{
|
||||
if (!isset($this->entityManagers[$name])) {
|
||||
$this->_usedProperties['entityManagers'] = true;
|
||||
$this->entityManagers[$name] = new \Symfony\Config\Doctrine\Orm\EntityManagerConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "entityManager()" has already been initialized. You cannot pass values the second time you call entityManager().');
|
||||
}
|
||||
|
||||
return $this->entityManagers[$name];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function resolveTargetEntity(string $interface, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['resolveTargetEntities'] = true;
|
||||
$this->resolveTargetEntities[$interface] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('default_entity_manager', $value)) {
|
||||
$this->_usedProperties['defaultEntityManager'] = true;
|
||||
$this->defaultEntityManager = $value['default_entity_manager'];
|
||||
unset($value['default_entity_manager']);
|
||||
}
|
||||
|
||||
if (array_key_exists('auto_generate_proxy_classes', $value)) {
|
||||
$this->_usedProperties['autoGenerateProxyClasses'] = true;
|
||||
$this->autoGenerateProxyClasses = $value['auto_generate_proxy_classes'];
|
||||
unset($value['auto_generate_proxy_classes']);
|
||||
}
|
||||
|
||||
if (array_key_exists('enable_lazy_ghost_objects', $value)) {
|
||||
$this->_usedProperties['enableLazyGhostObjects'] = true;
|
||||
$this->enableLazyGhostObjects = $value['enable_lazy_ghost_objects'];
|
||||
unset($value['enable_lazy_ghost_objects']);
|
||||
}
|
||||
|
||||
if (array_key_exists('enable_native_lazy_objects', $value)) {
|
||||
$this->_usedProperties['enableNativeLazyObjects'] = true;
|
||||
$this->enableNativeLazyObjects = $value['enable_native_lazy_objects'];
|
||||
unset($value['enable_native_lazy_objects']);
|
||||
}
|
||||
|
||||
if (array_key_exists('proxy_dir', $value)) {
|
||||
$this->_usedProperties['proxyDir'] = true;
|
||||
$this->proxyDir = $value['proxy_dir'];
|
||||
unset($value['proxy_dir']);
|
||||
}
|
||||
|
||||
if (array_key_exists('proxy_namespace', $value)) {
|
||||
$this->_usedProperties['proxyNamespace'] = true;
|
||||
$this->proxyNamespace = $value['proxy_namespace'];
|
||||
unset($value['proxy_namespace']);
|
||||
}
|
||||
|
||||
if (array_key_exists('controller_resolver', $value)) {
|
||||
$this->_usedProperties['controllerResolver'] = true;
|
||||
$this->controllerResolver = new \Symfony\Config\Doctrine\Orm\ControllerResolverConfig($value['controller_resolver']);
|
||||
unset($value['controller_resolver']);
|
||||
}
|
||||
|
||||
if (array_key_exists('entity_managers', $value)) {
|
||||
$this->_usedProperties['entityManagers'] = true;
|
||||
$this->entityManagers = array_map(fn ($v) => new \Symfony\Config\Doctrine\Orm\EntityManagerConfig($v), $value['entity_managers']);
|
||||
unset($value['entity_managers']);
|
||||
}
|
||||
|
||||
if (array_key_exists('resolve_target_entities', $value)) {
|
||||
$this->_usedProperties['resolveTargetEntities'] = true;
|
||||
$this->resolveTargetEntities = $value['resolve_target_entities'];
|
||||
unset($value['resolve_target_entities']);
|
||||
}
|
||||
|
||||
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['defaultEntityManager'])) {
|
||||
$output['default_entity_manager'] = $this->defaultEntityManager;
|
||||
}
|
||||
if (isset($this->_usedProperties['autoGenerateProxyClasses'])) {
|
||||
$output['auto_generate_proxy_classes'] = $this->autoGenerateProxyClasses;
|
||||
}
|
||||
if (isset($this->_usedProperties['enableLazyGhostObjects'])) {
|
||||
$output['enable_lazy_ghost_objects'] = $this->enableLazyGhostObjects;
|
||||
}
|
||||
if (isset($this->_usedProperties['enableNativeLazyObjects'])) {
|
||||
$output['enable_native_lazy_objects'] = $this->enableNativeLazyObjects;
|
||||
}
|
||||
if (isset($this->_usedProperties['proxyDir'])) {
|
||||
$output['proxy_dir'] = $this->proxyDir;
|
||||
}
|
||||
if (isset($this->_usedProperties['proxyNamespace'])) {
|
||||
$output['proxy_namespace'] = $this->proxyNamespace;
|
||||
}
|
||||
if (isset($this->_usedProperties['controllerResolver'])) {
|
||||
$output['controller_resolver'] = $this->controllerResolver->toArray();
|
||||
}
|
||||
if (isset($this->_usedProperties['entityManagers'])) {
|
||||
$output['entity_managers'] = array_map(fn ($v) => $v->toArray(), $this->entityManagers);
|
||||
}
|
||||
if (isset($this->_usedProperties['resolveTargetEntities'])) {
|
||||
$output['resolve_target_entities'] = $this->resolveTargetEntities;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
106
var/cache/dev/Symfony/Config/DoctrineConfig.php
vendored
Normal file
106
var/cache/dev/Symfony/Config/DoctrineConfig.php
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Doctrine'.\DIRECTORY_SEPARATOR.'DbalConfig.php';
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Doctrine'.\DIRECTORY_SEPARATOR.'OrmConfig.php';
|
||||
|
||||
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
|
||||
|
||||
/**
|
||||
* This class is automatically generated to help in creating a config.
|
||||
*/
|
||||
class DoctrineConfig implements \Symfony\Component\Config\Builder\ConfigBuilderInterface
|
||||
{
|
||||
private $dbal;
|
||||
private $orm;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Doctrine\DbalConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Doctrine\DbalConfig : static)
|
||||
*/
|
||||
public function dbal(mixed $value = []): \Symfony\Config\Doctrine\DbalConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['dbal'] = true;
|
||||
$this->dbal = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!$this->dbal instanceof \Symfony\Config\Doctrine\DbalConfig) {
|
||||
$this->_usedProperties['dbal'] = true;
|
||||
$this->dbal = new \Symfony\Config\Doctrine\DbalConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "dbal()" has already been initialized. You cannot pass values the second time you call dbal().');
|
||||
}
|
||||
|
||||
return $this->dbal;
|
||||
}
|
||||
|
||||
/**
|
||||
* @template TValue of mixed
|
||||
* @param TValue $value
|
||||
* @return \Symfony\Config\Doctrine\OrmConfig|$this
|
||||
* @psalm-return (TValue is array ? \Symfony\Config\Doctrine\OrmConfig : static)
|
||||
*/
|
||||
public function orm(mixed $value = []): \Symfony\Config\Doctrine\OrmConfig|static
|
||||
{
|
||||
if (!\is_array($value)) {
|
||||
$this->_usedProperties['orm'] = true;
|
||||
$this->orm = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if (!$this->orm instanceof \Symfony\Config\Doctrine\OrmConfig) {
|
||||
$this->_usedProperties['orm'] = true;
|
||||
$this->orm = new \Symfony\Config\Doctrine\OrmConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "orm()" has already been initialized. You cannot pass values the second time you call orm().');
|
||||
}
|
||||
|
||||
return $this->orm;
|
||||
}
|
||||
|
||||
public function getExtensionAlias(): string
|
||||
{
|
||||
return 'doctrine';
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('dbal', $value)) {
|
||||
$this->_usedProperties['dbal'] = true;
|
||||
$this->dbal = \is_array($value['dbal']) ? new \Symfony\Config\Doctrine\DbalConfig($value['dbal']) : $value['dbal'];
|
||||
unset($value['dbal']);
|
||||
}
|
||||
|
||||
if (array_key_exists('orm', $value)) {
|
||||
$this->_usedProperties['orm'] = true;
|
||||
$this->orm = \is_array($value['orm']) ? new \Symfony\Config\Doctrine\OrmConfig($value['orm']) : $value['orm'];
|
||||
unset($value['orm']);
|
||||
}
|
||||
|
||||
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['dbal'])) {
|
||||
$output['dbal'] = $this->dbal instanceof \Symfony\Config\Doctrine\DbalConfig ? $this->dbal->toArray() : $this->dbal;
|
||||
}
|
||||
if (isset($this->_usedProperties['orm'])) {
|
||||
$output['orm'] = $this->orm instanceof \Symfony\Config\Doctrine\OrmConfig ? $this->orm->toArray() : $this->orm;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
144
var/cache/dev/Symfony/Config/DoctrineMigrations/Storage/TableStorageConfig.php
vendored
Normal file
144
var/cache/dev/Symfony/Config/DoctrineMigrations/Storage/TableStorageConfig.php
vendored
Normal file
@@ -0,0 +1,144 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\DoctrineMigrations\Storage;
|
||||
|
||||
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 TableStorageConfig
|
||||
{
|
||||
private $tableName;
|
||||
private $versionColumnName;
|
||||
private $versionColumnLength;
|
||||
private $executedAtColumnName;
|
||||
private $executionTimeColumnName;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function tableName($value): static
|
||||
{
|
||||
$this->_usedProperties['tableName'] = true;
|
||||
$this->tableName = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function versionColumnName($value): static
|
||||
{
|
||||
$this->_usedProperties['versionColumnName'] = true;
|
||||
$this->versionColumnName = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function versionColumnLength($value): static
|
||||
{
|
||||
$this->_usedProperties['versionColumnLength'] = true;
|
||||
$this->versionColumnLength = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function executedAtColumnName($value): static
|
||||
{
|
||||
$this->_usedProperties['executedAtColumnName'] = true;
|
||||
$this->executedAtColumnName = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function executionTimeColumnName($value): static
|
||||
{
|
||||
$this->_usedProperties['executionTimeColumnName'] = true;
|
||||
$this->executionTimeColumnName = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('table_name', $value)) {
|
||||
$this->_usedProperties['tableName'] = true;
|
||||
$this->tableName = $value['table_name'];
|
||||
unset($value['table_name']);
|
||||
}
|
||||
|
||||
if (array_key_exists('version_column_name', $value)) {
|
||||
$this->_usedProperties['versionColumnName'] = true;
|
||||
$this->versionColumnName = $value['version_column_name'];
|
||||
unset($value['version_column_name']);
|
||||
}
|
||||
|
||||
if (array_key_exists('version_column_length', $value)) {
|
||||
$this->_usedProperties['versionColumnLength'] = true;
|
||||
$this->versionColumnLength = $value['version_column_length'];
|
||||
unset($value['version_column_length']);
|
||||
}
|
||||
|
||||
if (array_key_exists('executed_at_column_name', $value)) {
|
||||
$this->_usedProperties['executedAtColumnName'] = true;
|
||||
$this->executedAtColumnName = $value['executed_at_column_name'];
|
||||
unset($value['executed_at_column_name']);
|
||||
}
|
||||
|
||||
if (array_key_exists('execution_time_column_name', $value)) {
|
||||
$this->_usedProperties['executionTimeColumnName'] = true;
|
||||
$this->executionTimeColumnName = $value['execution_time_column_name'];
|
||||
unset($value['execution_time_column_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['tableName'])) {
|
||||
$output['table_name'] = $this->tableName;
|
||||
}
|
||||
if (isset($this->_usedProperties['versionColumnName'])) {
|
||||
$output['version_column_name'] = $this->versionColumnName;
|
||||
}
|
||||
if (isset($this->_usedProperties['versionColumnLength'])) {
|
||||
$output['version_column_length'] = $this->versionColumnLength;
|
||||
}
|
||||
if (isset($this->_usedProperties['executedAtColumnName'])) {
|
||||
$output['executed_at_column_name'] = $this->executedAtColumnName;
|
||||
}
|
||||
if (isset($this->_usedProperties['executionTimeColumnName'])) {
|
||||
$output['execution_time_column_name'] = $this->executionTimeColumnName;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
56
var/cache/dev/Symfony/Config/DoctrineMigrations/StorageConfig.php
vendored
Normal file
56
var/cache/dev/Symfony/Config/DoctrineMigrations/StorageConfig.php
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\DoctrineMigrations;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Storage'.\DIRECTORY_SEPARATOR.'TableStorageConfig.php';
|
||||
|
||||
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
|
||||
|
||||
/**
|
||||
* This class is automatically generated to help in creating a config.
|
||||
*/
|
||||
class StorageConfig
|
||||
{
|
||||
private $tableStorage;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* The default metadata storage, implemented as a table in the database.
|
||||
* @default {"table_name":null,"version_column_name":null,"version_column_length":null,"executed_at_column_name":null,"execution_time_column_name":null}
|
||||
*/
|
||||
public function tableStorage(array $value = []): \Symfony\Config\DoctrineMigrations\Storage\TableStorageConfig
|
||||
{
|
||||
if (null === $this->tableStorage) {
|
||||
$this->_usedProperties['tableStorage'] = true;
|
||||
$this->tableStorage = new \Symfony\Config\DoctrineMigrations\Storage\TableStorageConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "tableStorage()" has already been initialized. You cannot pass values the second time you call tableStorage().');
|
||||
}
|
||||
|
||||
return $this->tableStorage;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('table_storage', $value)) {
|
||||
$this->_usedProperties['tableStorage'] = true;
|
||||
$this->tableStorage = new \Symfony\Config\DoctrineMigrations\Storage\TableStorageConfig($value['table_storage']);
|
||||
unset($value['table_storage']);
|
||||
}
|
||||
|
||||
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['tableStorage'])) {
|
||||
$output['table_storage'] = $this->tableStorage->toArray();
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
340
var/cache/dev/Symfony/Config/DoctrineMigrationsConfig.php
vendored
Normal file
340
var/cache/dev/Symfony/Config/DoctrineMigrationsConfig.php
vendored
Normal file
@@ -0,0 +1,340 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'DoctrineMigrations'.\DIRECTORY_SEPARATOR.'StorageConfig.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 DoctrineMigrationsConfig implements \Symfony\Component\Config\Builder\ConfigBuilderInterface
|
||||
{
|
||||
private $migrationsPaths;
|
||||
private $services;
|
||||
private $factories;
|
||||
private $storage;
|
||||
private $migrations;
|
||||
private $connection;
|
||||
private $em;
|
||||
private $allOrNothing;
|
||||
private $checkDatabasePlatform;
|
||||
private $customTemplate;
|
||||
private $organizeMigrations;
|
||||
private $enableProfiler;
|
||||
private $transactional;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function migrationsPath(string $namespace, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['migrationsPaths'] = true;
|
||||
$this->migrationsPaths[$namespace] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function services(string $service, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['services'] = true;
|
||||
$this->services[$service] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function factories(string $factory, mixed $value): static
|
||||
{
|
||||
$this->_usedProperties['factories'] = true;
|
||||
$this->factories[$factory] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Storage to use for migration status metadata.
|
||||
* @default {"table_storage":{"table_name":null,"version_column_name":null,"version_column_length":null,"executed_at_column_name":null,"execution_time_column_name":null}}
|
||||
*/
|
||||
public function storage(array $value = []): \Symfony\Config\DoctrineMigrations\StorageConfig
|
||||
{
|
||||
if (null === $this->storage) {
|
||||
$this->_usedProperties['storage'] = true;
|
||||
$this->storage = new \Symfony\Config\DoctrineMigrations\StorageConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "storage()" has already been initialized. You cannot pass values the second time you call storage().');
|
||||
}
|
||||
|
||||
return $this->storage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function migrations(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['migrations'] = true;
|
||||
$this->migrations = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Connection name to use for the migrations database.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function connection($value): static
|
||||
{
|
||||
$this->_usedProperties['connection'] = true;
|
||||
$this->connection = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Entity manager name to use for the migrations database (available when doctrine/orm is installed).
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function em($value): static
|
||||
{
|
||||
$this->_usedProperties['em'] = true;
|
||||
$this->em = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Run all migrations in a transaction.
|
||||
* @default false
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function allOrNothing($value): static
|
||||
{
|
||||
$this->_usedProperties['allOrNothing'] = true;
|
||||
$this->allOrNothing = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds an extra check in the generated migrations to allow execution only on the same platform as they were initially generated on.
|
||||
* @default true
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function checkDatabasePlatform($value): static
|
||||
{
|
||||
$this->_usedProperties['checkDatabasePlatform'] = true;
|
||||
$this->checkDatabasePlatform = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom template path for generated migration classes.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function customTemplate($value): static
|
||||
{
|
||||
$this->_usedProperties['customTemplate'] = true;
|
||||
$this->customTemplate = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Organize migrations mode. Possible values are: "BY_YEAR", "BY_YEAR_AND_MONTH", false
|
||||
* @default false
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function organizeMigrations($value): static
|
||||
{
|
||||
$this->_usedProperties['organizeMigrations'] = true;
|
||||
$this->organizeMigrations = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether or not to enable the profiler collector to calculate and visualize migration status. This adds some queries overhead.
|
||||
* @default false
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function enableProfiler($value): static
|
||||
{
|
||||
$this->_usedProperties['enableProfiler'] = true;
|
||||
$this->enableProfiler = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether or not to wrap migrations in a single transaction.
|
||||
* @default true
|
||||
* @param ParamConfigurator|bool $value
|
||||
* @return $this
|
||||
*/
|
||||
public function transactional($value): static
|
||||
{
|
||||
$this->_usedProperties['transactional'] = true;
|
||||
$this->transactional = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getExtensionAlias(): string
|
||||
{
|
||||
return 'doctrine_migrations';
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('migrations_paths', $value)) {
|
||||
$this->_usedProperties['migrationsPaths'] = true;
|
||||
$this->migrationsPaths = $value['migrations_paths'];
|
||||
unset($value['migrations_paths']);
|
||||
}
|
||||
|
||||
if (array_key_exists('services', $value)) {
|
||||
$this->_usedProperties['services'] = true;
|
||||
$this->services = $value['services'];
|
||||
unset($value['services']);
|
||||
}
|
||||
|
||||
if (array_key_exists('factories', $value)) {
|
||||
$this->_usedProperties['factories'] = true;
|
||||
$this->factories = $value['factories'];
|
||||
unset($value['factories']);
|
||||
}
|
||||
|
||||
if (array_key_exists('storage', $value)) {
|
||||
$this->_usedProperties['storage'] = true;
|
||||
$this->storage = new \Symfony\Config\DoctrineMigrations\StorageConfig($value['storage']);
|
||||
unset($value['storage']);
|
||||
}
|
||||
|
||||
if (array_key_exists('migrations', $value)) {
|
||||
$this->_usedProperties['migrations'] = true;
|
||||
$this->migrations = $value['migrations'];
|
||||
unset($value['migrations']);
|
||||
}
|
||||
|
||||
if (array_key_exists('connection', $value)) {
|
||||
$this->_usedProperties['connection'] = true;
|
||||
$this->connection = $value['connection'];
|
||||
unset($value['connection']);
|
||||
}
|
||||
|
||||
if (array_key_exists('em', $value)) {
|
||||
$this->_usedProperties['em'] = true;
|
||||
$this->em = $value['em'];
|
||||
unset($value['em']);
|
||||
}
|
||||
|
||||
if (array_key_exists('all_or_nothing', $value)) {
|
||||
$this->_usedProperties['allOrNothing'] = true;
|
||||
$this->allOrNothing = $value['all_or_nothing'];
|
||||
unset($value['all_or_nothing']);
|
||||
}
|
||||
|
||||
if (array_key_exists('check_database_platform', $value)) {
|
||||
$this->_usedProperties['checkDatabasePlatform'] = true;
|
||||
$this->checkDatabasePlatform = $value['check_database_platform'];
|
||||
unset($value['check_database_platform']);
|
||||
}
|
||||
|
||||
if (array_key_exists('custom_template', $value)) {
|
||||
$this->_usedProperties['customTemplate'] = true;
|
||||
$this->customTemplate = $value['custom_template'];
|
||||
unset($value['custom_template']);
|
||||
}
|
||||
|
||||
if (array_key_exists('organize_migrations', $value)) {
|
||||
$this->_usedProperties['organizeMigrations'] = true;
|
||||
$this->organizeMigrations = $value['organize_migrations'];
|
||||
unset($value['organize_migrations']);
|
||||
}
|
||||
|
||||
if (array_key_exists('enable_profiler', $value)) {
|
||||
$this->_usedProperties['enableProfiler'] = true;
|
||||
$this->enableProfiler = $value['enable_profiler'];
|
||||
unset($value['enable_profiler']);
|
||||
}
|
||||
|
||||
if (array_key_exists('transactional', $value)) {
|
||||
$this->_usedProperties['transactional'] = true;
|
||||
$this->transactional = $value['transactional'];
|
||||
unset($value['transactional']);
|
||||
}
|
||||
|
||||
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['migrationsPaths'])) {
|
||||
$output['migrations_paths'] = $this->migrationsPaths;
|
||||
}
|
||||
if (isset($this->_usedProperties['services'])) {
|
||||
$output['services'] = $this->services;
|
||||
}
|
||||
if (isset($this->_usedProperties['factories'])) {
|
||||
$output['factories'] = $this->factories;
|
||||
}
|
||||
if (isset($this->_usedProperties['storage'])) {
|
||||
$output['storage'] = $this->storage->toArray();
|
||||
}
|
||||
if (isset($this->_usedProperties['migrations'])) {
|
||||
$output['migrations'] = $this->migrations;
|
||||
}
|
||||
if (isset($this->_usedProperties['connection'])) {
|
||||
$output['connection'] = $this->connection;
|
||||
}
|
||||
if (isset($this->_usedProperties['em'])) {
|
||||
$output['em'] = $this->em;
|
||||
}
|
||||
if (isset($this->_usedProperties['allOrNothing'])) {
|
||||
$output['all_or_nothing'] = $this->allOrNothing;
|
||||
}
|
||||
if (isset($this->_usedProperties['checkDatabasePlatform'])) {
|
||||
$output['check_database_platform'] = $this->checkDatabasePlatform;
|
||||
}
|
||||
if (isset($this->_usedProperties['customTemplate'])) {
|
||||
$output['custom_template'] = $this->customTemplate;
|
||||
}
|
||||
if (isset($this->_usedProperties['organizeMigrations'])) {
|
||||
$output['organize_migrations'] = $this->organizeMigrations;
|
||||
}
|
||||
if (isset($this->_usedProperties['enableProfiler'])) {
|
||||
$output['enable_profiler'] = $this->enableProfiler;
|
||||
}
|
||||
if (isset($this->_usedProperties['transactional'])) {
|
||||
$output['transactional'] = $this->transactional;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
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 true
|
||||
* @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":["css","cur","eot","html","js","json","md","otc","otf","proto","rss","rtf","svg","ttc","ttf","txt","wasm","xml"]}
|
||||
*/
|
||||
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 true
|
||||
* @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 true
|
||||
* @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 true
|
||||
* @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 true
|
||||
* @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 true
|
||||
* @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 true
|
||||
* @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 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 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 true
|
||||
* @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.runtime_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 true
|
||||
* @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 true
|
||||
* @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 true
|
||||
* @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 true
|
||||
* @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;
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user