fix(glide-bundle): change routing file extension from .yml to .yaml #32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Symfony\Routing\Loader\YamlFileLoader
supporte depuis 2015 les fichiers.yaml
(en plus de.yml
) : https://github.com/symfony/symfony/blame/f00b3279ea874dcbd9132cabb2f5d4900c3716ea/src/Symfony/Component/Routing/Loader/YamlFileLoader.php#L108Depuis quelques années, Symfony charge tous les fichiers contenus dans le sous-dossier
routes
du dossier de config.Le code responsable de ce comportement était dans les recettes Flex de Symfony : https://github.com/symfony/recipes/blob/f7b01cec173d58363a236a3cff0bc98e34506ac0/symfony/framework-bundle/4.4/src/Kernel.php#L51
En Symfony 5.1, cette recette a été modifiée pour ne supporter que l'extension
.yaml
par défaut : https://github.com/symfony/recipes/blob/f7b01cec173d58363a236a3cff0bc98e34506ac0/symfony/framework-bundle/5.1/src/Kernel.php#L30Ce code a depuis été déplacé dans le MicroKernelTrait, directement dans Symfony : https://github.com/symfony/symfony/blob/bce54929ef12d644cba84073fa47e2d263f27f79/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php#L79