-
-
Notifications
You must be signed in to change notification settings - Fork 84
Allow entrypoints.json to be hosted remotely #97
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 entrypoints.json to be hosted remotely #97
Conversation
8acb968
to
52670b6
Compare
hi, any news? it's any plan to implement this feature? |
Doesn't look like it, and I don't know how to make things go forward :) |
Hello, I am in the same situation as you ... your solution seems viable to me too! |
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.
Seems exactly like what's needed.
I'm not a maintainer of this library, but it would be nice if we could have this.
I'm on it :) |
Sorry but I wasn't able to push on your PR, instead I've opened a new PR #236 |
…uvradoux, Kocal) This PR was merged into the 2.x branch. Discussion ---------- Allow entrypoints.json to be hosted remotely Fixes #76 See #97, this PR uses the Symfony HttpClient to remotely fetch the entrypoints file, but also to allow mocking in a proper way. It also add/adapt many tests, and improve the documentation. Commits ------- f5b9a1d Use HttpClient instead of file_get_contents(), add tests and documentation 2fe9a88 Allow entrypoints.json to be hosted remotely
Fixes #76
file_exists
onentrypoints.json
fails.strict_mode
istrue
, an exception is raised and it's imposible to load the assets.file_get_contents
is used to retrieve theentrypoints.json
contents.What I'm proposing is to use
file_get_contents
earlier to allow fetching a remoteentrypoints.json
to solve the CDN use case. Does it seem OK?On a side note, I don't see how to run the tests locally, so the feedback loop with TRavis makes it difficult to fix them. How should I do? Thanks :)