fix: ambiguous bundle resolution in BundleLocator#18858
Conversation
Review Checklist
|
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
|
Thx very much for your contribution. But, I'm not sure how |
|
My bad, you're right in that case. But if we had |
|
And how does a namespace separator help in this case? |
|
Sorry, good point. Now I have the proper example: \App\Bundle\Branding\BrandingBundle // namespace: \App\Bundle\Branding
\App\Bundle\BrandingAdmin\BrandingAdminBundle // namespace: \App\Bundle\BrandingAdminIf you then want to resolve: |
|
thx for clarification. |



BundleLocatormight resolve the wrong bundle name when names start identically.E.g. if bundle
\App\Bundle\MyBundleand\App\Bundle\MyOtherBundlecoexist,BundleLocatorcurrently matches both. This leads to the error that the first matching bundle will get resolved.Adding a namespace delimiter at the end ensures uniqueness.