8000 [DI] fix loading env while env loaders are loaded by nicolas-grekas · Pull Request #34301 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[DI] fix loading env while env loaders are loaded #34301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2019

Conversation

nicolas-grekas
Copy link
Member
Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

@@ -141,15 +141,20 @@ public function getEnv($prefix, $name, \Closure $getEnv)
}
}

$loaders = $this->loaders;
$this->loaders = new \ArrayIterator();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if an envLoader needs an other envLoader?

for instance, what's if the Consul loader proposed by @lyrixx #34295 (comment) needs a secret?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That will work thanks to the loadedVars array - but first loaders cannot use latter ones.

nicolas-grekas added a commit that referenced this pull request Nov 8, 2019
…-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

[DI] fix loading env while env loaders are loaded

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Commits
-------

522bd5d [DI] fix loading env while env loaders are loaded
@nicolas-grekas nicolas-grekas merged commit 522bd5d into symfony:4.4 Nov 8, 2019
@nicolas-grekas nicolas-grekas deleted the env-fi branch November 8, 2019 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0