Skip to content
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

Symfony bundle - auto-enable stream wrapper through config #184

Open
bamarni opened this issue Feb 19, 2016 · 2 comments
Open

Symfony bundle - auto-enable stream wrapper through config #184

bamarni opened this issue Feb 19, 2016 · 2 comments

Comments

@bamarni
Copy link

bamarni commented Feb 19, 2016

Would it make sense to have a config directive in puli bundle to register the stream wrapper automatically? Having this code on Puli's side would also make sure it's registered in the optimized way through a callable.

@webmozart
Copy link
Member

Hi! I'm not a big fan of the stream wrapper since it's basically a global dependency that is hard to customize/override. I think that you should always use the puli.repository service instead.

What's your goal?

@bamarni
Copy link
Author

bamarni commented Feb 20, 2016

I'm looking at how to integrate Puli in a Behat test suite, to load yaml fixtures (with https://github.com/h4cc/AliceFixturesBundle#fixtures) from an external composer package.

And I'm surprised you don't like the stream wrapper :) While I see your point with global dependency, it's very handy to use and can help more people adopting Puli. Unfortunately it's not that trivial to setup in a symfony project, thus my suggestion to have a config for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants