php - Globals in symfony (like BD config) -


how can setup global var in symfony? i'm developing saas multitenant in symfony , need create dynamical connection in order load tenant information display logged user.

i need change this:

parameters:     database_host: 127.0.0.1     database_port: null     database_name: xxxxxxx     database_user: xxxxxx     database_password: xxxx     database_driver: pdo_mysql     database_path: null 

is possible config global dynamic var?

in doc, said if want have global variables in yaml config files, have surround them '%'.

not sure if that's want, here's link : http://symfony.com/doc/current/service_container/parameters.html


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -