Hi there!

Another alternative is to have a service that figures out what your current
"domain" is. You can then use a little trick created by OpenSky to make any
parameter dynamic, which could be controlled by that service (
https://github.com/opensky/OpenSkyRuntimeConfigBundle). The approach seems
a little strange, but having runtime configs gives you the flexibility you
need and seems less dramatic than multiple applications or cache
directories.

There might be a better way, but just some thoughts!

Cheers!

Ryan Weaver
US Office Head & Trainer - KnpLabs - Nashville, TN
http://www.knplabs.com <http://www.knplabs.com/en>
http://www.thatsquality.com
Twitter: @weaverryan


2012/2/14 Константин <[email protected]>

> For example we have one site with multiple domains.
>
> site.com // en
> site.ru // ru
>
> There is some hostname-related configuration (session domain cookie,
> security remember me cookie, session dfault locale) wich different in
> hostnames. And when container compiles it contains embedded/resolved
> parameters for only one hostname. So there is 2 possible sollutions:
>
> 1. use multiple apps
> 2. override some methods like getCacheDir in Kernel and resolve cache path
>
>  --
> 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 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
>

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