Initial Base
This commit is contained in:
52
var/cache/dev/Symfony/Config/Security/ProviderConfig/ChainConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Security/ProviderConfig/ChainConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Security\ProviderConfig;
|
||||
|
||||
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 ChainConfig
|
||||
{
|
||||
private $providers;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|string $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function providers(ParamConfigurator|string|array $value): static
|
||||
{
|
||||
$this->_usedProperties['providers'] = true;
|
||||
$this->providers = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('providers', $value)) {
|
||||
$this->_usedProperties['providers'] = true;
|
||||
$this->providers = $value['providers'];
|
||||
unset($value['providers']);
|
||||
}
|
||||
|
||||
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['providers'])) {
|
||||
$output['providers'] = $this->providers;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
99
var/cache/dev/Symfony/Config/Security/ProviderConfig/EntityConfig.php
vendored
Normal file
99
var/cache/dev/Symfony/Config/Security/ProviderConfig/EntityConfig.php
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Security\ProviderConfig;
|
||||
|
||||
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 EntityConfig
|
||||
{
|
||||
private $class;
|
||||
private $property;
|
||||
private $managerName;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* The full entity class name of your user class.
|
||||
* @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|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function property($value): static
|
||||
{
|
||||
$this->_usedProperties['property'] = true;
|
||||
$this->property = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function managerName($value): static
|
||||
{
|
||||
$this->_usedProperties['managerName'] = true;
|
||||
$this->managerName = $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('property', $value)) {
|
||||
$this->_usedProperties['property'] = true;
|
||||
$this->property = $value['property'];
|
||||
unset($value['property']);
|
||||
}
|
||||
|
||||
if (array_key_exists('manager_name', $value)) {
|
||||
$this->_usedProperties['managerName'] = true;
|
||||
$this->managerName = $value['manager_name'];
|
||||
unset($value['manager_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['class'])) {
|
||||
$output['class'] = $this->class;
|
||||
}
|
||||
if (isset($this->_usedProperties['property'])) {
|
||||
$output['property'] = $this->property;
|
||||
}
|
||||
if (isset($this->_usedProperties['managerName'])) {
|
||||
$output['manager_name'] = $this->managerName;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
259
var/cache/dev/Symfony/Config/Security/ProviderConfig/LdapConfig.php
vendored
Normal file
259
var/cache/dev/Symfony/Config/Security/ProviderConfig/LdapConfig.php
vendored
Normal file
@@ -0,0 +1,259 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Security\ProviderConfig;
|
||||
|
||||
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 LdapConfig
|
||||
{
|
||||
private $service;
|
||||
private $baseDn;
|
||||
private $searchDn;
|
||||
private $searchPassword;
|
||||
private $extraFields;
|
||||
private $defaultRoles;
|
||||
private $roleFetcher;
|
||||
private $uidKey;
|
||||
private $filter;
|
||||
private $passwordAttribute;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default 'ldap'
|
||||
* @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 baseDn($value): static
|
||||
{
|
||||
$this->_usedProperties['baseDn'] = true;
|
||||
$this->baseDn = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function searchDn($value): static
|
||||
{
|
||||
$this->_usedProperties['searchDn'] = true;
|
||||
$this->searchDn = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function searchPassword($value): static
|
||||
{
|
||||
$this->_usedProperties['searchPassword'] = true;
|
||||
$this->searchPassword = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function extraFields(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['extraFields'] = true;
|
||||
$this->extraFields = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|string $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function defaultRoles(ParamConfigurator|string|array $value): static
|
||||
{
|
||||
$this->_usedProperties['defaultRoles'] = true;
|
||||
$this->defaultRoles = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function roleFetcher($value): static
|
||||
{
|
||||
$this->_usedProperties['roleFetcher'] = true;
|
||||
$this->roleFetcher = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default 'sAMAccountName'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function uidKey($value): static
|
||||
{
|
||||
$this->_usedProperties['uidKey'] = true;
|
||||
$this->uidKey = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default '({uid_key}={user_identifier})'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function filter($value): static
|
||||
{
|
||||
$this->_usedProperties['filter'] = true;
|
||||
$this->filter = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function passwordAttribute($value): static
|
||||
{
|
||||
$this->_usedProperties['passwordAttribute'] = true;
|
||||
$this->passwordAttribute = $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('base_dn', $value)) {
|
||||
$this->_usedProperties['baseDn'] = true;
|
||||
$this->baseDn = $value['base_dn'];
|
||||
unset($value['base_dn']);
|
||||
}
|
||||
|
||||
if (array_key_exists('search_dn', $value)) {
|
||||
$this->_usedProperties['searchDn'] = true;
|
||||
$this->searchDn = $value['search_dn'];
|
||||
unset($value['search_dn']);
|
||||
}
|
||||
|
||||
if (array_key_exists('search_password', $value)) {
|
||||
$this->_usedProperties['searchPassword'] = true;
|
||||
$this->searchPassword = $value['search_password'];
|
||||
unset($value['search_password']);
|
||||
}
|
||||
|
||||
if (array_key_exists('extra_fields', $value)) {
|
||||
$this->_usedProperties['extraFields'] = true;
|
||||
$this->extraFields = $value['extra_fields'];
|
||||
unset($value['extra_fields']);
|
||||
}
|
||||
|
||||
if (array_key_exists('default_roles', $value)) {
|
||||
$this->_usedProperties['defaultRoles'] = true;
|
||||
$this->defaultRoles = $value['default_roles'];
|
||||
unset($value['default_roles']);
|
||||
}
|
||||
|
||||
if (array_key_exists('role_fetcher', $value)) {
|
||||
$this->_usedProperties['roleFetcher'] = true;
|
||||
$this->roleFetcher = $value['role_fetcher'];
|
||||
unset($value['role_fetcher']);
|
||||
}
|
||||
|
||||
if (array_key_exists('uid_key', $value)) {
|
||||
$this->_usedProperties['uidKey'] = true;
|
||||
$this->uidKey = $value['uid_key'];
|
||||
unset($value['uid_key']);
|
||||
}
|
||||
|
||||
if (array_key_exists('filter', $value)) {
|
||||
$this->_usedProperties['filter'] = true;
|
||||
$this->filter = $value['filter'];
|
||||
unset($value['filter']);
|
||||
}
|
||||
|
||||
if (array_key_exists('password_attribute', $value)) {
|
||||
$this->_usedProperties['passwordAttribute'] = true;
|
||||
$this->passwordAttribute = $value['password_attribute'];
|
||||
unset($value['password_attribute']);
|
||||
}
|
||||
|
||||
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['baseDn'])) {
|
||||
$output['base_dn'] = $this->baseDn;
|
||||
}
|
||||
if (isset($this->_usedProperties['searchDn'])) {
|
||||
$output['search_dn'] = $this->searchDn;
|
||||
}
|
||||
if (isset($this->_usedProperties['searchPassword'])) {
|
||||
$output['search_password'] = $this->searchPassword;
|
||||
}
|
||||
if (isset($this->_usedProperties['extraFields'])) {
|
||||
$output['extra_fields'] = $this->extraFields;
|
||||
}
|
||||
if (isset($this->_usedProperties['defaultRoles'])) {
|
||||
$output['default_roles'] = $this->defaultRoles;
|
||||
}
|
||||
if (isset($this->_usedProperties['roleFetcher'])) {
|
||||
$output['role_fetcher'] = $this->roleFetcher;
|
||||
}
|
||||
if (isset($this->_usedProperties['uidKey'])) {
|
||||
$output['uid_key'] = $this->uidKey;
|
||||
}
|
||||
if (isset($this->_usedProperties['filter'])) {
|
||||
$output['filter'] = $this->filter;
|
||||
}
|
||||
if (isset($this->_usedProperties['passwordAttribute'])) {
|
||||
$output['password_attribute'] = $this->passwordAttribute;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
75
var/cache/dev/Symfony/Config/Security/ProviderConfig/Memory/UserConfig.php
vendored
Normal file
75
var/cache/dev/Symfony/Config/Security/ProviderConfig/Memory/UserConfig.php
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Security\ProviderConfig\Memory;
|
||||
|
||||
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 UserConfig
|
||||
{
|
||||
private $password;
|
||||
private $roles;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @default null
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function password($value): static
|
||||
{
|
||||
$this->_usedProperties['password'] = true;
|
||||
$this->password = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed>|string $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function roles(ParamConfigurator|string|array $value): static
|
||||
{
|
||||
$this->_usedProperties['roles'] = true;
|
||||
$this->roles = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('password', $value)) {
|
||||
$this->_usedProperties['password'] = true;
|
||||
$this->password = $value['password'];
|
||||
unset($value['password']);
|
||||
}
|
||||
|
||||
if (array_key_exists('roles', $value)) {
|
||||
$this->_usedProperties['roles'] = true;
|
||||
$this->roles = $value['roles'];
|
||||
unset($value['roles']);
|
||||
}
|
||||
|
||||
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['password'])) {
|
||||
$output['password'] = $this->password;
|
||||
}
|
||||
if (isset($this->_usedProperties['roles'])) {
|
||||
$output['roles'] = $this->roles;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
52
var/cache/dev/Symfony/Config/Security/ProviderConfig/MemoryConfig.php
vendored
Normal file
52
var/cache/dev/Symfony/Config/Security/ProviderConfig/MemoryConfig.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config\Security\ProviderConfig;
|
||||
|
||||
require_once __DIR__.\DIRECTORY_SEPARATOR.'Memory'.\DIRECTORY_SEPARATOR.'UserConfig.php';
|
||||
|
||||
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
|
||||
|
||||
/**
|
||||
* This class is automatically generated to help in creating a config.
|
||||
*/
|
||||
class MemoryConfig
|
||||
{
|
||||
private $users;
|
||||
private $_usedProperties = [];
|
||||
|
||||
public function user(string $identifier, array $value = []): \Symfony\Config\Security\ProviderConfig\Memory\UserConfig
|
||||
{
|
||||
if (!isset($this->users[$identifier])) {
|
||||
$this->_usedProperties['users'] = true;
|
||||
$this->users[$identifier] = new \Symfony\Config\Security\ProviderConfig\Memory\UserConfig($value);
|
||||
} elseif (1 < \func_num_args()) {
|
||||
throw new InvalidConfigurationException('The node created by "user()" has already been initialized. You cannot pass values the second time you call user().');
|
||||
}
|
||||
|
||||
return $this->users[$identifier];
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('users', $value)) {
|
||||
$this->_usedProperties['users'] = true;
|
||||
$this->users = array_map(fn ($v) => new \Symfony\Config\Security\ProviderConfig\Memory\UserConfig($v), $value['users']);
|
||||
unset($value['users']);
|
||||
}
|
||||
|
||||
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['users'])) {
|
||||
$output['users'] = array_map(fn ($v) => $v->toArray(), $this->users);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user