Hey Bruno,

what I meant is include the file in the plugin to provide "default
values". Of course the user needs to overwrite some of those in the
app.yml of the respective app that uses the plugin. That's how most of
the other plugins do it.

Daniel


On Jul 30, 11:07 am, Bruno Reis <bruno.p.r...@gmail.com> wrote:
> Thanks Daniel,
>
> but, if I do that, the config will be packed with the plugin, commited to
> svn, etc.. I need application specific code in a way I do not need to touch
> the plugin files. I found something on the end 
> of:http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Config....
> If I have success I will post it here.
>
> 2009/7/30 Richtermeister <nex...@gmail.com>
>
>
>
> > Hey Bruno,
>
> > just include a /yourplugin/config/app.yml file that contains your
> > settings.
> > This file will be included in the configuration automatically.
>
> > Daniel
>
> > On Jul 30, 10:16 am, Bruno Reis <bruno.p.r...@gmail.com> wrote:
> > > Thanks Eno, but that does not shows what I am looking for. It explains
> > the
> > > configurations and yaml reading process, but I need to register a custom
> > > handler to use in a plugin.
>
> > > 2009/7/30 Eno <symb...@gmail.com>
>
> > > > On Thu, 30 Jul 2009, Bruno Reis wrote:
>
> > > > > I have a plugin that needs to be configurated with a yml config file.
> > How
> > > > do
> > > > > I register this configuration file so that I can read the values with
> > > > > sfConfig::get?
> > > > > And what is the appropriate place to put this file? config/pluginName
> > ?
>
> > > >http://www.symfony-project.org/book/1_2/05-Configuring-Symfony#chapte.
> > ..
>
> > > > > Is there a way to auto-generate this file on plugin instalation?
>
> > > > Maybe you can override the plugin:publish-assets task?
>
> > > > --
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to