Hi,

I would like to programatically enable plugins for a Symfony 1.4 app
based on the current environment. e.g. if I'm in the dev environment,
I want to enable the sfFirePHP plugin.

I've tried using sfContext::getInstance()->getConfiguration()-
>getEnvironment(); but get:

Fatal error: Uncaught exception 'sfException' with message 'The
"default" context does not exist.

I tried it in the setup() method of ProjectConfiguration.class.php so
it might be that the configuration doesn't actually exist at that
point.

Anyone know of a way to do this?

thanks,

-- 
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

Reply via email to