5762b5e1d2
This PR was squashed before being merged into the master branch (closes #7399).
Discussion
----------
[Config] Add possibility to get "parent bundle resource file" in import file loading process
FileLoader doesn't throw FileLoaderImportCircularReferenceException anymore if another file matchs import request.
Currently if a Bundle is defined as child of another Bundle and if we try to import a Resource from parent Bundle into the same "overrided" Resource, we get a FileLoaderImportCircularReferenceException.
Now, FileLoader locates "available files" and try to import one of them (rule is "the first that is not currently loading").
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes?
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
Commits
-------
|
||
---|---|---|
.. | ||
Definition | ||
Exception | ||
Loader | ||
Resource | ||
Tests | ||
Util | ||
.gitignore | ||
CHANGELOG.md | ||
composer.json | ||
ConfigCache.php | ||
FileLocator.php | ||
FileLocatorInterface.php | ||
LICENSE | ||
phpunit.xml.dist | ||
README.md |
Config Component
Config provides the infrastructure for loading configurations from different data sources and optionally monitoring these data sources for changes. There are additional tools for validating, normalizing and handling of defaults that can optionally be used to convert from different formats to arrays.
Resources
You can run the unit tests with the following command:
$ cd path/to/Symfony/Component/Config/
$ composer.phar install --dev
$ phpunit