Created
February 7, 2014 17:37
-
-
Save LibertyDevs/8867707 to your computer and use it in GitHub Desktop.
Symfony2 環境の切り替え ref: http://qiita.com/Liberty/items/e7289d747b417a971ca8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// stg を追加 | |
if (in_array($this->getEnvironment(), array('dev', 'test', 'stg'))) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports: | |
# コメントアウト | |
# config_%kernel.environment%.yml を参照させるため | |
# - { resource: parameters.yml } | |
- { resource: security.yml } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports: | |
#- { resource: parameters_%kernel.environment%.yml } # 追加:これだと%kernel.environment%を見てくれないケースがあったので以下の通り再定義 | |
- { resource: parameters_dev.yml } # 環境により dev,prodなど変える | |
- { resource: config.yml } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment