开发者

Symfony same webservice working on Databases

开发者 https://www.devze.com 2023-03-22 06:56 出处:网络
Here is the issue: I have some methods in action in a Symfony project that are defined in WSDL. I need a configuration where my ws can work on one of two data bases according to environment.

Here is the issue:

I have some methods in action in a Symfony project that are defined in WSDL. I need a configuration where my ws can work on one of two data bases according to environment. I tried defining different environments and even different applications.But they all insist to use the DB from the database开发者_运维问答s.yml under the config on the level of apps.

I really appreciate any help


In order to select the database connections dynamically you can use the same technique demonstrated in this slide

http://www.slideshare.net/kriswallsmith/symfony-in-the-cloud

0

精彩评论

暂无评论...
验证码 换一张
取 消