2017-02-15 5 views
-1

私はdoctrine設定でconfig_dev.yml、config_preprod.yml ...から設定を呼び出しようとしています。symfonyが設定を呼び出す

私は例のために持っている:

doctrine: 
    dbal: 
     connexions: 
     test: 
      driver : ... 
      host: 1.1.1.1 
      port: 1111 
      ... 

と私は今のところ持っているコントローラで:

$output = file_get_contents('http://1.1.1.1:1111/...', 0, $var) 

と私は、HTTPを置き換えたいと思います:...私のconfig doctrine.dbalで。 connexions.test、可能ですか?

+0

で設定を読んでもらいますか? – k0pernikus

答えて

関連する問題