-
Notifications
You must be signed in to change notification settings - Fork 380
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
[Loader] Add bundle resources to safe path when requested #883
Conversation
This looks good. I'm going to clean up a few things and add some additional functionality (allow the user to whitelist and/or blacklist bundles), but otherwise I'm not against adding the option to enable this. We definetly need tests and docs, though I assume you were waiting on the "okay" before providing them. Also, I thought you said you were going to implement a means to differentiate between bundles using a bundle prefix or something? With this setup, all paths are loadable, so given the following files
The user could request the file Doing so shouldn't be especially difficult, as we can register the data paths array as an associative array of |
FYI, the Also, you have introduced test failures ATM, though it looks like it is simply related to the addition of your configuration boolean node: https://travis-ci.org/liip/LiipImagineBundle/builds/204678829. |
I've added some doc and updated the test to complete correctly. I also duplicated the failing test with the Concerning the differentiation on bundle prefix: I believe I did not say that I would implement it, although it should indeed not be to hard. However, I believe it should be a feature for another PR, and I even doubt that kind of logic should be incorporated in this bundle. If I need to do anything for this to be merged, please let me know 👍 |
…eferencing, implement comprehensive tests, update documentation
@bobvandevijver Can you test the updated code in your project and report back? The following changes have been implemented following your initial commits:
|
@robfrawley Just checked it in my project, works like a charm 👍 I like the whitelist/blacklist feature by the way! Also, didn't know about the Looks ready to merge to me 👍 |
@bobvandevijver The |
@bobvandevijver By the way, thanks for pushing this and taking the time to explain your idea in detail during my stubborn conversation with you in #881. This turned out to be a solid feature, despite my initial pessimism; I'm happy to include it in this bundle. |
Feature merged and available immediately via our |
@robfrawley No problem, I'm also known to be stubborn :-) And it all worked out for the best 👍 |
@robfrawley Could you tag the release please? |
@tobias-93 Yeah, it'll be tagged today. I was trying to get a few additional PRs merged, but due to the Amazon S3 failures that directly affected Travis CI (and many other websites), jobs were queued forever and failing for no reason. Things have cleared up now and all PRs are merged for this release. |
@tobias-93 It's out. |
This change adds the functionality to add bundle public resource paths automatically when the
bundle_resources
option is set. See #881 for the discussion on this.