On Wednesday 14 March 2007 10:21, Loïc Vernet wrote: > My understanding is as it's not something for users we can stay in dev mode > to have all the log/debug features... I don't agree. You can have very different config between dev & prod. And the same batch should then produce different result when you switch to production.
I already encountered that and what I did is to create a kind of partial. I have now 3 files : myBatch_dev myBatch_prod _myBatch_batch The 2 first define the constants and then include the last one. I am not sure whether this is the symfony way of doing it, but that works :-) -- Michel
pgpAx1ssZHyAO.pgp
Description: PGP signature