-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple root paths for FileSystemLoader #851
Conversation
c836fda
to
b3b7b06
Compare
b3b7b06
to
c263bf2
Compare
8c84f62
to
dfa45d8
Compare
Amended PR to support PHP |
dfa45d8
to
9c3db01
Compare
@antoligy @cedricziel How do you guys feel about this feature, as both a ligament new feature (regardless of symbolic links) and a possible fix for those attempting to use multiple symbolic links that point outside a single path (see #846). |
9c3db01
to
4bea06f
Compare
Amended PR to add a test case that ensures configuration |
Nice, with that latest addition this should be fully backwards compatible with the latest release! 🙂 I'm very happy with this approach, not least of all as it addresses the "real" issue, but also as it adds more thorough tests. |
c691b34
to
4a0be3c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Wondering if it's worth standardising how we format the display of multiple paths in the future (I rather like /whatever/:/foo/bar/
, but I'm not sure if this is defined).
@antoligy I too like the format |
4a0be3c
to
bd7c18c
Compare
bd7c18c
to
beeeb5a
Compare
So, I'm pretty positive this doesn't result in any BC breaks: the configuration value for A possible BC break exists for someone extending the Which brings us to one of the most pressing issues for Thoughts? |
So, @antoligy: we want to merge this? |
Sorry for the delay, and yes I think we should be good to merge this! Can we can warn about the potential BC breakage in the changelog? (I doubt that this bit of the API is actually used though, and I agree that in 2.0 we should reduce the surface area exposed by the API - As we're looking to decouple business logic from controllers the API definition would be greatly improved anyway!) |
Agreed (re decoupling and reduction of surface area). Ok; I'll merge this and release |
Nothing as far as I'm aware |
🎉 |
Still need to cherry pick for master and 2.0 branches, but 1.7.1 release is now live! ;-) |
Comment about the BC break for those extending |
Allow multiple data roots for file system loader as a possible approach to resolve #846. Includes
beforeNormalization
step in configuration tree-builder to allow prior string values fordata_root
bundle configuration to be seamlessly converted into an array. For example, both of the following are now valid configurations:This also adds a "feature" in that we can look in multiple locations using the same file system loader now, which I suspect could be beneficial for some use-cases. Most importantly, though, this implementation doesn't break any prior unit tests (but it does add a few unit tests to cover the new cases introduced).