Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

ComplexSettingValueResolver.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ComplexSettings;
8
35 class ComplexSettingValueResolver
36 {
46 public function resolveSetting($argumentString)
47 {
48 $arguments = array_slice(func_get_args(), 1);
49
50 $value = $argumentString;
51 while ($dynamicSettingName = array_shift($arguments)) {
52 $dynamicSettingValue = array_shift($arguments);
53 $value = str_replace("\$$dynamicSettingName\$", $dynamicSettingValue, $value);
54 }
55
56 return $value;
57 }
58 }
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ComplexSettings\ComplexSettingValueResolver
Factory for complex dynamic settings resolution.
Definition: ComplexSettingValueResolver.php:36
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ComplexSettings\ComplexSettingValueResolver\resolveSetting
resolveSetting($argumentString)
Can receive as many tuples of array( argumentName ), argumentValue as necessary.
Definition: ComplexSettingValueResolver.php:46
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ComplexSettings
Definition: ComplexSettingParser.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.