This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Config
Nicolas Grekas 27b0baa270 bug #33998 [Config] Disable default alphabet sorting in glob function due of unstable sort (hurricane-voronin)
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
-------

3bed0247c0 [Config] Disable default alphabet sorting in glob function due of unstable sort
2019-10-30 13:46:47 +01:00
..
Definition [Config] fix return type declarations 2019-08-26 09:52:57 +02:00
DependencyInjection fixed some deprecation messages 2017-12-31 07:59:27 +01:00
Exception switched array() to [] 2019-01-16 10:39:14 +01:00
Loader Fix inconsistent return points. 2019-08-20 15:31:17 +02:00
Resource [Config] Disable default alphabet sorting in glob function due of unstable sort 2019-10-30 13:43:22 +01:00
Tests Remove unused local variables in tests 2019-10-24 17:33:53 +02:00
Util [Config] fix return type declarations 2019-08-26 09:52:57 +02:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md fixed short array CS in comments 2019-01-16 14:27:11 +01:00
composer.json Merge branch '2.8' into 3.4 2018-05-01 15:53:27 -07:00
ConfigCache.php switched array() to [] 2019-01-16 10:39:14 +01:00
ConfigCacheFactory.php Enable the fixer enforcing fully-qualified calls for compiler-optimized functions 2018-07-24 12:05:38 +02:00
ConfigCacheFactoryInterface.php [cs] correct invalid @param types 2018-11-20 16:55:20 +01:00
ConfigCacheInterface.php removed dots at the end of @param and @return 2016-06-28 08:24:06 +02:00
FileLocator.php switched array() to [] 2019-01-16 10:39:14 +01:00
FileLocatorInterface.php Use a dedicated exception in the file locator 2016-08-09 07:23:16 -07:00
LICENSE update year in license files 2019-01-01 14:45:19 +01:00
phpunit.xml.dist Bump phpunit XSD version to 5.2 2018-11-11 12:18:13 +01:00
README.md Updated all the README files 2016-03-04 08:12:06 +01:00
ResourceCheckerConfigCache.php [Config] ensure moving away from Serializable wont break cache:clear 2019-01-30 09:47:57 +01:00
ResourceCheckerConfigCacheFactory.php switched array() to [] 2019-01-16 10:39:14 +01:00
ResourceCheckerInterface.php fixed CS 2016-06-29 07:31:50 +02:00

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).

Resources