您需要通过放两个来逃避百分比符号:
database_password: 'xx%%xxxxx%%x'
Run Code Online (Sandbox Code Playgroud)
有关详细信息,请参阅http://symfony.com/doc/current/service_container/parameters.html#parameters-in-configuration-files.
注意:从技术上讲,此示例中不需要引号,但如果%在标量的开头出现-sign,则必须引用标量.
| 归档时间: |
|
| 查看次数: |
62 次 |
| 最近记录: |