Files
CKEditor_4.6.1
Date
backup
bibelpopup
classes
config
fetch_bibel
fetch_chorbuch
images
jpgraph
kalender
language
lib
lieder
livesearch
msd
overlib
pma
doc
examples
js
libraries
locale
setup
sql
templates
themes
tmp
vendor
bacon
composer
dasprid
google
nikic
paragonie
phpmyadmin
phpseclib
pragmarx
psr
samyoul
symfony
cache
cache-contracts
config
dependency-injection
Argument
Compiler
AbstractRecursivePass.php
AnalyzeServiceReferencesPass.php
AutoAliasServicePass.php
AutowirePass.php
AutowireRequiredMethodsPass.php
CheckArgumentsValidityPass.php
CheckCircularReferencesPass.php
CheckDefinitionValidityPass.php
CheckExceptionOnInvalidReferenceBehaviorPass.php
CheckReferenceValidityPass.php
CheckTypeDeclarationsPass.php
Compiler.php
CompilerPassInterface.php
DecoratorServicePass.php
DefinitionErrorExceptionPass.php
ExtensionCompilerPass.php
InlineServiceDefinitionsPass.php
MergeExtensionConfigurationPass.php
PassConfig.php
PriorityTaggedServiceTrait.php
RegisterEnvVarProcessorsPass.php
RegisterReverseContainerPass.php
RegisterServiceSubscribersPass.php
RemoveAbstractDefinitionsPass.php
RemovePrivateAliasesPass.php
RemoveUnusedDefinitionsPass.php
RepeatablePassInterface.php
RepeatedPass.php
ReplaceAliasByActualDefinitionPass.php
ResolveBindingsPass.php
ResolveChildDefinitionsPass.php
ResolveClassPass.php
ResolveEnvPlaceholdersPass.php
ResolveFactoryClassPass.php
ResolveHotPathPass.php
ResolveInstanceofConditionalsPass.php
ResolveInvalidReferencesPass.php
ResolveNamedArgumentsPass.php
ResolveParameterPlaceHoldersPass.php
ResolvePrivatesPass.php
ResolveReferencesToAliasesPass.php
ResolveServiceSubscribersPass.php
ResolveTaggedIteratorArgumentPass.php
ServiceLocatorTagPass.php
ServiceReferenceGraph.php
ServiceReferenceGraphEdge.php
ServiceReferenceGraphNode.php
ValidateEnvPlaceholdersPass.php
Config
Dumper
Exception
Extension
LazyProxy
Loader
ParameterBag
Alias.php
CHANGELOG.md
ChildDefinition.php
Container.php
ContainerAwareInterface.php
ContainerAwareTrait.php
ContainerBuilder.php
ContainerInterface.php
Definition.php
EnvVarLoaderInterface.php
EnvVarProcessor.php
EnvVarProcessorInterface.php
ExpressionLanguage.php
ExpressionLanguageProvider.php
LICENSE
Parameter.php
README.md
Reference.php
ResettableContainerInterface.php
ReverseContainer.php
ServiceLocator.php
ServiceSubscriberInterface.php
TaggedContainerInterface.php
TypedReference.php
Variable.php
composer.json
expression-language
filesystem
polyfill-ctype
polyfill-mbstring
polyfill-php81
service-contracts
var-exporter
tecnickcom
twig
williamdes
autoload.php
CONTRIBUTING.md
ChangeLog
LICENSE
README
RELEASE-DATE-5.1.1
babel.config.json
composer.json
composer.lock
config.inc.php
config.sample.inc.php
favicon.ico
index.php
package.json
print.css
robots.txt
show_config_errors.php
url.php
yarn.lock
templates
templates_c
test
validation
vendor
++ Umstellung Luther 2017.sql
.gitattributes
.htaccess
MyOOS-Dumper-master.zip
Version8_bugs.txt
ansicht.php
ansicht2.php
ausgabe.php
bes_gd.php
bibellookup_1984.php
bibellookup_2017.php
changelog.php
composer.json
composer.lock
config.inc.php
copy.js
faq_text.php
faq_text_ber.php
favicon.ico
fetch_data.php
ftp_ansicht.php
func_agent.php
func_ansicht.php
func_genUser.php
func_highlight.php
func_htmlclean.php
func_make_knk.php
func_make_knk_fa.php
func_make_reference_fa.php
func_rollenrechte.php
func_write_lue_kat.php
further_publication.php
getSubCat.php
graph.php
graph_einzel.php
graph_hauptframe.php
graph_user.php
graph_user_hauptframe.php
hauptframe.php
hello.cgi
hello.pl
hilfe.php
historie.php
index.php
index2.php
indexframe.php
info.php
job_mail_delete_neue_user.php
job_mail_inaktiv.php
job_user_delete_neue_user.php
job_user_inaktiv.php
jquery.min.js
kat_cont.php
kat_cont_fa.php
kat_main.php
kat_main_fa.php
katechismus.php
katechismus_fa.php
lesung.php
lieder.php
livesearch.php
livestat.js
livestat.php
livestat2.php
login_log.php
logininfo.php
logout_admin.php
lue_ansicht.php
lue_bearbeiten.php
lue_erfassen.php
lue_inhalt.php
lue_notizen.php
lue_suche.php
lue_wahl.php
mail.php
make_ical.php
menuframe.php
nachsenden.php
notizen.php
outlook.php
outlook.php_20200212
outlook_ics.php
outlook_vcs.php
passwort_switch.php
pdf_gen.php
preview.php
profil.php
rollen.php
search_note.php
stichworte.php
suche.php
suche_change.php
suche_simp.php
systemmail.php
test.php
test2.php
testmail.php
testmail2.php
topframe.php
upload.php
user_anlegen.php
user_bearbeiten.php
useronline.php
verweise.php
wort_bearbeiten.php
wort_erfassen.php
wort_exegese.php
wort_wahl.php
Leitgedanken/pma/vendor/symfony/dependency-injection/Compiler/ResolveEnvPlaceholdersPass.php
2022-11-21 09:47:28 +01:00

45 lines
1.3 KiB
PHP

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Definition;
/**
* Replaces env var placeholders by their current values.
*/
class ResolveEnvPlaceholdersPass extends AbstractRecursivePass
{
protected function processValue($value, $isRoot = false)
{
if (\is_string($value)) {
return $this->container->resolveEnvPlaceholders($value, true);
}
if ($value instanceof Definition) {
$changes = $value->getChanges();
if (isset($changes['class'])) {
$value->setClass($this->container->resolveEnvPlaceholders($value->getClass(), true));
}
if (isset($changes['file'])) {
$value->setFile($this->container->resolveEnvPlaceholders($value->getFile(), true));
}
}
$value = parent::processValue($value, $isRoot);
if ($value && \is_array($value) && !$isRoot) {
$value = array_combine($this->container->resolveEnvPlaceholders(array_keys($value), true), $value);
}
return $value;
}
}