Skip to content

Conversation

@nicolas-grekas
Copy link
Member

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

}

$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