another solution is using same class delegate to do the work for you (as in symfony default factories)
e.g. variableResolver: MyVariableResolver and then use this class in ProjectConfiguration setup method to set a global variable depending on the context (I'd do this if the logic of the variation is sufficiently complex to justify that...). Cheers Martino On Thu, Feb 12, 2009 at 7:37 PM, Jonathan Wage <[email protected]> wrote: > You could also just sfYaml::load() the yaml file, modify the array, then > sfYaml::dump() it back to the same location. > > - Jon > > On Thu, Feb 12, 2009 at 10:50 AM, Eno <[email protected]> wrote: >> >> On Feb 12, 11:37 am, yoni <[email protected]> wrote: >> >> > is there a way to update in the daily way the file app.YML in order to >> > have dynamic constants ? >> > >> > I have some variable that has to be change each days, like a sessionId >> > that i use for a webservice, >> > >> > I thought to put this information into the app.yml, but how can i >> > change it through batch php file ? >> >> >> >> http://www.symfony-project.org/book/1_2/05-Configuring-Symfony#chapter_05_sub_using_scriptable_configuration >> >> >> > > > > -- > Jonathan H. Wage > Open Source Software Developer & Evangelist > http://www.jwage.com > http://www.doctrine-project.org > http://www.symfony-project.org > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
