Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

[RFC] Replace the configuration part #285

Closed
willdurand opened this Issue · 6 comments

8 participants

@willdurand
Owner

... 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?

@stephpy

:+1: 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 :)

@fzaninotto

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

The OptionResolver can also be used.

@hhamon
Collaborator

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

@tacone

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
Merged

[WIP] Configuration system refactor #527

4 of 4 tasks complete
@cristianoc72
Collaborator

This issue should be closed (imho).

@marcj marcj closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.