This commit is contained in:
Marek
2026-03-24 00:04:55 +01:00
commit c5229e48ed
4225 changed files with 511461 additions and 0 deletions

View 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 $config = [])
{
if (array_key_exists('enabled', $config)) {
$this->_usedProperties['enabled'] = true;
$this->enabled = $config['enabled'];
unset($config['enabled']);
}
if (array_key_exists('key', $config)) {
$this->_usedProperties['key'] = true;
$this->key = $config['key'];
unset($config['key']);
}
if (array_key_exists('domain', $config)) {
$this->_usedProperties['domain'] = true;
$this->domain = $config['domain'];
unset($config['domain']);
}
if (array_key_exists('select', $config)) {
$this->_usedProperties['select'] = true;
$this->select = $config['select'];
unset($config['select']);
}
if (array_key_exists('passphrase', $config)) {
$this->_usedProperties['passphrase'] = true;
$this->passphrase = $config['passphrase'];
unset($config['passphrase']);
}
if (array_key_exists('options', $config)) {
$this->_usedProperties['options'] = true;
$this->options = $config['options'];
unset($config['options']);
}
if ($config) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($config)));
}
}
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;
}
}

View 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>|string $value
*
* @return $this
*/
public function recipients(ParamConfigurator|string|array $value): static
{
$this->_usedProperties['recipients'] = true;
$this->recipients = $value;
return $this;
}
/**
* @param ParamConfigurator|list<ParamConfigurator|mixed>|string $value
*
* @return $this
*/
public function allowedRecipients(ParamConfigurator|string|array $value): static
{
$this->_usedProperties['allowedRecipients'] = true;
$this->allowedRecipients = $value;
return $this;
}
public function __construct(array $config = [])
{
if (array_key_exists('sender', $config)) {
$this->_usedProperties['sender'] = true;
$this->sender = $config['sender'];
unset($config['sender']);
}
if (array_key_exists('recipients', $config)) {
$this->_usedProperties['recipients'] = true;
$this->recipients = $config['recipients'];
unset($config['recipients']);
}
if (array_key_exists('allowed_recipients', $config)) {
$this->_usedProperties['allowedRecipients'] = true;
$this->allowedRecipients = $config['allowed_recipients'];
unset($config['allowed_recipients']);
}
if ($config) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($config)));
}
}
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;
}
}

View 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 $config = [])
{
if (array_key_exists('value', $config)) {
$this->_usedProperties['value'] = true;
$this->value = $config['value'];
unset($config['value']);
}
if ($config) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($config)));
}
}
public function toArray(): array
{
$output = [];
if (isset($this->_usedProperties['value'])) {
$output['value'] = $this->value;
}
return $output;
}
}

View 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 $config = [])
{
if (array_key_exists('enabled', $config)) {
$this->_usedProperties['enabled'] = true;
$this->enabled = $config['enabled'];
unset($config['enabled']);
}
if (array_key_exists('repository', $config)) {
$this->_usedProperties['repository'] = true;
$this->repository = $config['repository'];
unset($config['repository']);
}
if (array_key_exists('cipher', $config)) {
$this->_usedProperties['cipher'] = true;
$this->cipher = $config['cipher'];
unset($config['cipher']);
}
if ($config) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($config)));
}
}
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;
}
}

View 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 $config = [])
{
if (array_key_exists('enabled', $config)) {
$this->_usedProperties['enabled'] = true;
$this->enabled = $config['enabled'];
unset($config['enabled']);
}
if (array_key_exists('key', $config)) {
$this->_usedProperties['key'] = true;
$this->key = $config['key'];
unset($config['key']);
}
if (array_key_exists('certificate', $config)) {
$this->_usedProperties['certificate'] = true;
$this->certificate = $config['certificate'];
unset($config['certificate']);
}
if (array_key_exists('passphrase', $config)) {
$this->_usedProperties['passphrase'] = true;
$this->passphrase = $config['passphrase'];
unset($config['passphrase']);
}
if (array_key_exists('extra_certificates', $config)) {
$this->_usedProperties['extraCertificates'] = true;
$this->extraCertificates = $config['extra_certificates'];
unset($config['extra_certificates']);
}
if (array_key_exists('sign_options', $config)) {
$this->_usedProperties['signOptions'] = true;
$this->signOptions = $config['sign_options'];
unset($config['sign_options']);
}
if ($config) {
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($config)));
}
}
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;
}
}