@Dmitri : very nice solution !

On Mon, Oct 4, 2010 at 10:53 AM, Fabien Potencier <
[email protected]> wrote:

> On 10/4/10 10:47 AM, Dmitri wrote:
>
>> Hello,
>>
>> Symfony1 already sort of allows for host based configuration files
>> with minimal hacking.
>>
>> [database.yml/app.yml/settings.yml]
>> dev.localhost:
>>   param: "..."
>>
>> prod.remotehost:
>>   param: "..."
>>
>> [index.php]
>> ...
>> $configuration =
>> ProjectConfiguration::getApplicationConfiguration('frontend',
>> $_SERVER['HTTP_HOST'], false);
>> ...
>>
>> This seems to do the trick for us on apache2 at least, YMMV.
>>
>
> And this is still possible in Symfony2... with more flexibility as an
> environment can extend any other one (or several ones for that matter).
>
> Fabien
>
>
>  ---
>> Dmitri
>>
>> On Sep 27, 10:02 pm, Thomas Rabaix<[email protected]>  wrote:
>>
>>> Hello,
>>>
>>> One thing very frustrating with symfony 1 is there is no configuration
>>> per
>>> host available.
>>> It will be great if this feature can be built-in into the Symfony2 core.
>>>
>>> What do you think ?
>>>
>>> --
>>> Thomas Rabaixhttp://rabaix.net
>>>
>>
>>
> --
> 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]<symfony-devs%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>



-- 
Thomas Rabaix
http://rabaix.net

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