I have a set of classes related to retrieving information from web-services, and I placed them in:
/lib/WebServices/ Now, I would like to set up a custom configuration file: /config/webservices.yml In fact I got it to work as follows: /config/config_handlers.yml: config/webservices.yml: class: sfDefineEnvironmentConfigHandler param: prefix: webservices_ /lib/WebServices/WebServices.class.php, /lib/WebServices/WebService.class.php, ...: $configCache = sfContext::getInstance()->getConfigCache(); require_once $configCache->checkConfig('config/webservices.yml'); [...] But is that the way to go? In particular, I don't like the "require_once" in the class files. That doesn't feel right. I'd rather prefer to include the YAML file somewhere globally. By the way, I do *not* need an environment aware handler. -- 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 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