Initial Base
This commit is contained in:
75
var/cache/dev/Symfony/Config/Security/FirewallConfig/RememberMe/TokenProvider/DoctrineConfig.php
vendored
Normal file
75
var/cache/dev/Symfony/Config/Security/FirewallConfig/RememberMe/TokenProvider/DoctrineConfig.php
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Security\FirewallConfig\RememberMe\TokenProvider;
|
||||
|
||||
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 DoctrineConfig
|
||||
{
|
||||
private $enabled;
|
||||
private $connection;
|
||||
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 connection($value): static
|
||||
{
|
||||
$this->_usedProperties['connection'] = true;
|
||||
$this->connection = $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('connection', $value)) {
|
||||
$this->_usedProperties['connection'] = true;
|
||||
$this->connection = $value['connection'];
|
||||
unset($value['connection']);
|
||||
}
|
||||
|
||||
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['connection'])) {
|
||||
$output['connection'] = $this->connection;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
80
var/cache/dev/Symfony/Config/Security/FirewallConfig/RememberMe/TokenProviderConfig.php
vendored
Normal file
80
var/cache/dev/Symfony/Config/Security/FirewallConfig/RememberMe/TokenProviderConfig.php
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Security\FirewallConfig\RememberMe;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'TokenProvider'.\DIRECTORY_SEPARATOR.'DoctrineConfig.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 TokenProviderConfig
|
||||
{
|
||||
private $service;
|
||||
private $doctrine;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* The service ID of a custom rememberme token provider.
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function service($value): static
|
||||
{
|
||||
$this->_usedProperties['service'] = true;
|
||||
$this->service = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default {"enabled":false,"connection":null}
|
||||
*/
|
||||
public function doctrine(array $value = []): \Symfony\Config\Security\FirewallConfig\RememberMe\TokenProvider\DoctrineConfig
|
||||
{
|
||||
if (null === $this->doctrine) {
|
||||
$this->_usedProperties['doctrine'] = true;
|
||||
$this->doctrine = new \Symfony\Config\Security\FirewallConfig\RememberMe\TokenProvider\DoctrineConfig($value);
|
||||
} elseif (0 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "doctrine()" has already been initialized. You cannot pass values the second time you call doctrine().');
|
||||
}
|
||||
|
||||
return $this->doctrine;
|
||||
}
|
||||
|
||||
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('doctrine', $value)) {
|
||||
$this->_usedProperties['doctrine'] = true;
|
||||
$this->doctrine = \is_array($value['doctrine']) ? new \Symfony\Config\Security\FirewallConfig\RememberMe\TokenProvider\DoctrineConfig($value['doctrine']) : $value['doctrine'];
|
||||
unset($value['doctrine']);
|
||||
}
|
||||
|
||||
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['doctrine'])) {
|
||||
$output['doctrine'] = $this->doctrine instanceof \Symfony\Config\Security\FirewallConfig\RememberMe\TokenProvider\DoctrineConfig ? $this->doctrine->toArray() : $this->doctrine;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user