[Flow] database settings on a PAAS

Peter Russ peter.russ at 4many.net
Tue Apr 30 10:58:00 CEST 2013


--- Original Nachricht ---
Absender:   Marc Neuhaus
Datum:       30.04.2013 09:35:
> Hey Stephan,
>
> you can already do this with one tiny "hack" to the Web/Index.php.
> Flow replaces PHP constants in yaml files which are enclosed in %.
> So, if you have an PHP constant with the name "PAAS_DB" defined
> you can insert %PAAS_DB% into your yaml to use that constant.
>
> Here's a little example how you could use that to get those DB informations
> passed into the yaml:
>
> https://gist.github.com/mneuhaus/5487163
>
> Cheers
> Marc

If this might also be required for CLI-mode you must also hack flow.
IMHO the Symfony approach is the better and more flexible solution 
without hacking Flow "Core" components.

Peter.


-- 
Fiat lux! Docendo discimus.
_____________________________
uon GbR

http://www.uon.li
http://www.xing.com/profile/Peter_Russ


More information about the Flow mailing list