OpenSkyRuntimeConfigBundle icon indicating copy to clipboard operation
OpenSkyRuntimeConfigBundle copied to clipboard

Documentation Unclear

Open bmeynell opened this issue 12 years ago • 1 comments

How would one, for example, dynamically override the session.cookie_domain parameter in FrameworkBundle based on the domain of the incoming request?

bmeynell avatar Dec 03 '13 18:12 bmeynell

This is a similar question to https://github.com/opensky/OpenSkyRuntimeConfigBundle/issues/6 but I don't know if the answer, "Config processing is handled by each bundle..." is appropriate. We want to override parameters.yml values at runtime. In our case it happens to be based on the incoming host header (this is for a multi-tenant app). Another way to achieve this, and how we currently are, is to have a separate container compiled for each parameters.yml variation. We maintain a host-specific parameters.yml (that we merge with our base parameters.yml) that ultimately provides a customized multi-tenant experience. For example, siteX and siteY both have their specific twitter, facebook, etc., oauth credentials. We'd rather just pull these from a more reliable persistent store (e.g., a database) at runtime. If this is not possible, or applicable to this bundle, this issue can be closed.

bmeynell avatar Dec 21 '15 13:12 bmeynell