Matthias Nothhaft wrote:
> Hi,
> 
> I'm sitting on a small plugin and I would like to support an optional
> sub directory in each module/config directory.
> 
> Each .yml file i put into this directory must be parsed ba the same
> config handler but each must have another name.
> 
> And then I want to explicitely load one of the config files as needed.
> 
> For example I would like to call in a action method:
> 
> myPlugin::loadConfig('foo');
> 
> And this should load/parse/cache the config file located in
> 
> myCurrentModule/config/myPlugin/foo.yml
> 
> 
> I wonder if this is possible to configure by the config_handlers.yml file?

If someone wants to know it:

Yes, it is. I created a config_handlers.yml file in my plugin's config
dir containing these two lines:

config/foo:
  class: fooConfigHandler


where foo is a directory. The config system then uses fooConfigHandler
for each config file in this dir. That's simply what I want. ;-)

Regards,
Matthias



--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to