__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Config\Definition; /** * This class is the entry point for config normalization/merging/finalization. * * @author Johannes M. Schmitt <[email protected]> * * @final */ class Processor { /** * Processes an array of configurations. * * @param array $configs An array of configuration items to process */ public function process(NodeInterface $configTree, array $configs): array { $currentConfig = []; foreach ($configs as $config) { $config = $configTree->normalize($config); $currentConfig = $configTree->merge($currentConfig, $config); } return $configTree->finalize($currentConfig); } /** * Processes an array of configurations. * * @param array $configs An array of configuration items to process */ public function processConfiguration(ConfigurationInterface $configuration, array $configs): array { return $this->process($configuration->getConfigTreeBuilder()->buildTree(), $configs); } /** * Normalizes a configuration entry. * * This method returns a normalize configuration array for a given key * to remove the differences due to the original format (YAML and XML mainly). * * Here is an example. * * The configuration in XML: * * <twig:extension>twig.extension.foo</twig:extension> * <twig:extension>twig.extension.bar</twig:extension> * * And the same configuration in YAML: * * extensions: ['twig.extension.foo', 'twig.extension.bar'] * * @param array $config A config array * @param string $key The key to normalize * @param string|null $plural The plural form of the key if it is irregular */ public static function normalizeConfig(array $config, string $key, ?string $plural = null): array { $plural ??= $key.'s'; if (isset($config[$plural])) { return $config[$plural]; } if (isset($config[$key])) { if (\is_string($config[$key]) || !\is_int(key($config[$key]))) { // only one return [$config[$key]]; } return $config[$key]; } return []; } }
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Builder | Folder | 0755 |
|
|
| Configurator | Folder | 0755 |
|
|
| Dumper | Folder | 0755 |
|
|
| Exception | Folder | 0755 |
|
|
| Loader | Folder | 0755 |
|
|
| ArrayNode.php | File | 11.68 KB | 0644 |
|
| BaseNode.php | File | 14.82 KB | 0644 |
|
| BooleanNode.php | File | 1.19 KB | 0644 |
|
| ConfigurableInterface.php | File | 594 B | 0644 |
|
| Configuration.php | File | 1.34 KB | 0644 |
|
| ConfigurationInterface.php | File | 613 B | 0644 |
|
| EnumNode.php | File | 2.7 KB | 0644 |
|
| FloatNode.php | File | 1.19 KB | 0644 |
|
| IntegerNode.php | File | 1.06 KB | 0644 |
|
| NodeInterface.php | File | 2.02 KB | 0644 |
|
| NumericNode.php | File | 1.76 KB | 0644 |
|
| Processor.php | File | 2.47 KB | 0644 |
|
| PrototypeNodeInterface.php | File | 610 B | 0644 |
|
| PrototypedArrayNode.php | File | 11.08 KB | 0644 |
|
| ScalarNode.php | File | 1.59 KB | 0644 |
|
| VariableNode.php | File | 3.36 KB | 0644 |
|