Symfony2 stop Composer installing parameters.yml.dist into parameters.yml

后端 未结 4 597
有刺的猬
有刺的猬 2020-12-13 08:47

New in symfony 2.3 the composer install script also copies the parameters.yml.dist file contents into the parameters.yml file, explain

4条回答
  •  旧巷少年郎
    2020-12-13 09:08

    Remove this line twice from your composer.json:

    "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
    

    This is done by the IncenteevParameterHandler library, which contains a script that does this. By removing the script from the config, it will never be called.

    If you remove that line for ever, you can also remove these lines (as the library isn't really needed anymore):

    "incenteev/composer-parameter-handler": "~2.0",
    
    ...
    
    "incenteev-parameters": {
        "file": "app/config/parameters.yml"
    },
    

提交回复
热议问题