On Mon, 7 Jun 2010, Luis Alberto Zarrabeitia wrote:

> So, is it configured "per task"?

Yes.

> I imagined there was some kind of
> config file... now that I think about it, it doesn't makes sense
> either (one would have to update that one).

Its built-in to the task, there's no config file.

> Ok, that particular task
> has a --env argument. But I imagined it would be something general to
> all tasks, and not something that one task may or may not accept.

Some tasks dont need env, or will use whatever the default values are.

> Btw, which "help" command are you referring to? "symfony help" doesn't
> say much. The help for /that/ task, mentions --env (not that I knew
> about it, thanks for the hint that it was task-specific instead of
> symfony-wide),

I think all tasks have built-in help, so you can do something like

        symfony help taskname

where taskname is the name of the task , e.g. generate:project

Its mentioned in the original symfony book and the latest "Gentle" book:
http://www.symfony-project.org/gentle-introduction/1_4/en/16-Application-Management-Tools#chapter_16_sub_custom_tasks

Also mentioned in Jobeet tutorial:
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03#chapter_03_the_orm

And the 1.2 cookbook:
http://www.symfony-project.org/cookbook/1_2/en/tasks

> but my question was more generic (I used the
> guard:promote example only because it was the latest I ran into). So
> there doesn't seem to be a "help file" that answer the question
> "how do I make tools like [some example] use the right DB connection
> configuration?", thought there is one that answers "how do I make this
> particular task use the right DB configuration?", which, of course,
> solves it for that particular task.

Most tasks will use whatever your defaults are. If they take any 
parameters, the help command will tell you.

> I've read it. Several times. The first one, before I chose to use
> symfony. And also parts of the source code... but I didn't memorize
> it, and it seems my google skills weren't good enough to find my
> answer there. Could you provide me a more specific link?

Its mentioned here:
http://www.symfony-project.org/reference/1_4/en/03-Configuration-Files-Principles#chapter_03_environment_awareness

As you can see, you can define some settings based on environment (dev, 
prod, etc).




-- 


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to