David Brewer wrote:
> On 3/19/07, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote:
>> Matthias Nothhaft wrote:
>>
>>>> However I think the following steps would be better:
>>>> I) only execute once per request and when not in dev environment
>>> I don't understand why you want to deny a particular environment as
>>> people could either use different environments or need to test some
>>> function online.  So I would prefer to either not rely on an environment
>>> or to make it configurable.
>> configurable would be ideal yes ..
>> not sure how i would best go about doing that .. should i add a mixin
>> for this?
> 
> Why not have a configuration setting in the application's app.yml
> which enables or disables the entire filter?  Then if desired you
> could turn this entire feature on or off in any environment you
> wanted.

Ok, it will be a ternary that defaults to false as always:

# disable all redirects
disable_ssl_filter: false

# disable all redirects for env dev:
disable_ssl_filter: dev

# disable redirects for any listed env:
disable_ssl_filter: [dev, ..]

# enable without restriction
disable_ssl_filter: on

regards,
Lukas

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