27b0baa270
This PR was squashed before being merged into the 3.4 branch.
Discussion
----------
[Config] Disable default alphabet sorting in glob function due of unstable sort
…table sort
| Q | A
| ------------- | ---
| Branch? | 3.4 <!-- see below -->
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets | Fix #33990 <!-- prefix each issue number with "Fix #", if any -->
| License | MIT
| Doc PR | no <!-- required for new features -->
`\Symfony\Component\Config\Resource\GlobResource::getIterator` loads files using `glob` not it the stable sorting, e.g several files: `doctrine.yml` and `doctrine_mongodb.yaml` in `config/packages` folder.
On requests these files come(randomly) in a different order, which leads to reinitialization of symfony kernel in `dev` environment. It's a little bit annoying and takes a lot of time in a common :(
<!--
Additionally (see https://symfony.com/roadmap):
- Always add tests and ensure they pass.
- Never break backward compatibility (see https://symfony.com/bc).
- Bug fixes must be submitted against the lowest maintained branch where they apply
(lowest branches are regularly merged to upper ones so they get the fixes too.)
- Features and deprecations must be submitted against branch 4.4.
- Legacy code removals go to the master branch.
-->
Commits
-------
|
||
---|---|---|
.. | ||
Definition | ||
DependencyInjection | ||
Exception | ||
Loader | ||
Resource | ||
Tests | ||
Util | ||
.gitignore | ||
CHANGELOG.md | ||
composer.json | ||
ConfigCache.php | ||
ConfigCacheFactory.php | ||
ConfigCacheFactoryInterface.php | ||
ConfigCacheInterface.php | ||
FileLocator.php | ||
FileLocatorInterface.php | ||
LICENSE | ||
phpunit.xml.dist | ||
README.md | ||
ResourceCheckerConfigCache.php | ||
ResourceCheckerConfigCacheFactory.php | ||
ResourceCheckerInterface.php |
Config Component
The Config component provides several classes to help you find, load, combine, autofill and validate configuration values of any kind, whatever their source may be (YAML, XML, INI files, or for instance a database).