forked from TYPO3/typo3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Support env vars in YAML file names on import
To have a variable import chain per environment (dev, stage etc) for example, YAML files now may contain environment variables. Resolves: #89398 Releases: master Change-Id: I274c8e78f1a072ba490f4844d545b3015f658409 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61955 Tested-by: Mathias Brodala <[email protected]> Tested-by: TYPO3com <[email protected]> Tested-by: Andreas Fernandez <[email protected]> Reviewed-by: Mathias Brodala <[email protected]> Reviewed-by: Andreas Fernandez <[email protected]>
- Loading branch information
1 parent
58c1510
commit ba50c94
Showing
6 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...r/Feature-89398-SupportForEnvironmentVariablesInImportsInSiteConfigurations.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
===================================================================================== | ||
Feature: #89398 - Support for environment variables in imports in site configurations | ||
===================================================================================== | ||
|
||
See :issue:`89398` | ||
|
||
Description | ||
=========== | ||
|
||
Environment variables are now resolved in imports of site configuration YAML files. | ||
|
||
Example: | ||
|
||
.. code-block:: yaml | ||
imports: | ||
- | ||
resource: 'Env_%env("foo")%.yaml' | ||
Impact | ||
====== | ||
|
||
It is now possible to use environment variables in imports of site configuration yaml files. | ||
|
||
.. index:: Backend, ext:backend |
6 changes: 6 additions & 0 deletions
6
typo3/sysext/core/Tests/Unit/Configuration/Loader/Fixtures/Env/Berta.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
imports: | ||
- { resource: Secondfile.yml } | ||
|
||
options: | ||
- option1 | ||
- option2 |
1 change: 1 addition & 0 deletions
1
typo3/sysext/core/Tests/Unit/Configuration/Loader/Fixtures/Env/Env_barbaz.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
loadedWithEnvVars: 1 |
5 changes: 5 additions & 0 deletions
5
typo3/sysext/core/Tests/Unit/Configuration/Loader/Fixtures/Env/Secondfile.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
imports: | ||
- { resource: Env_%env("foo")%.yml } | ||
|
||
options: | ||
- optionBefore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters