Fix weird behaviour with component name_prefix config #14
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.
When we use
name_prefix
and store component intemplates/components/
, Twig identify same template two times:with templates stored in
![Capture d’écran 2025-01-20 à 18 44 18](https://private-user-images.githubusercontent.com/4466694/404968015-c5c41c2e-3164-466e-8dae-04e405ddc2bc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzOTk0MjYsIm5iZiI6MTczOTM5OTEyNiwicGF0aCI6Ii80NDY2Njk0LzQwNDk2ODAxNS1jNWM0MWMyZS0zMTY0LTQ2NmUtOGRhZS0wNGU0MDVkZGMyYmMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMjIyNTI2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTBlMjgyZmJlZTYxNWYxODNhZDAzOTk1YTk0ZTVkMWQwM2JmOTk2ZWZhYzYzM2UwMjkzODg3MTRkNDA0MzM1ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.OtSuzg16xWSg3E88FjB-Vg6bHPkmk6T1uwq_w5PFI_A)
/templates/components/
with templates stored in
![Capture d’écran 2025-01-20 à 18 44 26](https://private-user-images.githubusercontent.com/4466694/404967901-ee8c6158-bbcd-4b50-95d3-dcb1e0db60d4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzOTk0MjYsIm5iZiI6MTczOTM5OTEyNiwicGF0aCI6Ii80NDY2Njk0LzQwNDk2NzkwMS1lZThjNjE1OC1iYmNkLTRiNTAtOTVkMy1kY2IxZTBkYjYwZDQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMjIyNTI2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGUxOGEyZDYyODAxNzhiNzgzMGNlZWM1MzY2NTY0MjFjOGRhYTA0MGJhMDQzNWQ5YTE4ZGNlY2EyM2I5ODU3YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.DMFweUIKKpKcjmoNXtQhg60Ch5OYMJrNyBTwqk4wiek)
/templates/