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
Post a Comment