Initial Base

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

View File

@@ -0,0 +1,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;
}
}

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> $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;
}
}

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 $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;
}
}

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 $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;
}
}

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 $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;
}
}