将参数包含到另一个参数时未找到参数异常

Parameter not found exception when including a parameter into another

parameters:
     bundles:
        liveupload: 'GabrielLiveUploadBundle' 
     entities:
        liveupload_post: "%bundles.liveupload%:Post"

此代码抛出错误

ParameterNotFoundException: The parameter "entities" has a dependency on a non-existent parameter "bundles.liveupload".

有办法解决这个问题吗?

试试这个语法:

parameters:
    bundles.liveupload: 'GabrielLiveUploadBundle' 
    entities:
        liveupload_post: "%bundles.liveupload%:Post"