[RFC] Replace the configuration part #285

Closed
willdurand opened this Issue Jul 30, 2012 · 6 comments

Comments

Projects
None yet
8 participants
Owner

willdurand commented Jul 30, 2012

... with something else.

The Generator configuration is tied to Phing, because of the file syntax (pseudo ini file). There are tons of propel. lalala everywhere, and I tend to hate that.

The Symfony2 Config component seems a good candidate to handle that part:

We have tons of build properties. It doesn't make sense to keep this naming, and the component introduced above could help us to build a strong configuration (thanks to the TreeBuilder). We can support configuration in different formats, and so on.

What do you think?

Contributor

stephpy commented Jul 30, 2012

👍 I'm sure it'll be part of a lot of oss projects, and being able to have configuration on yaml, php or may be annotations is great + the benefits of maintenance :)

Member

fzaninotto commented Jul 30, 2012

As most Symfony components, I think this one is overengineerd (LoaderResolver? How about a FileVoterLoaderResolverInterface?)

But it's not as if we had a choice (http://hubscovery.com/search?q=config+l%3Aphp)

So ok for me. But it's a tough job.

rande commented Jul 30, 2012

The OptionResolver can also be used.

Member

hhamon commented Nov 4, 2012

I would be +1 if we decide to support multiple configuration formats otherwise we could stay on a simple handmade solution.

tacone commented Nov 13, 2012

Not supporting php configuration format in 1.6 is a big entry barrier for my use case.

So please do, I think is a great idea :-)

@cristianoc72 cristianoc72 referenced this issue Jan 17, 2014

Merged

[WIP] Configuration system refactor #527

4 of 4 tasks complete
Member

cristianoc72 commented Jul 25, 2014

This issue should be closed (imho).

@marcj marcj closed this Jul 25, 2014

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