doutun9179 2017-08-31 23:55
浏览 50
已采纳

安装项目Symfony 3的新文件

I've installed a Symfony project on Windows (developed on a Mac) and after composer install I got 3 new files :

  • bin/symfony_requirements
  • var/SymfonyRequirements.php
  • web/config.php

Do I need to version those files or ignore them in the .gitignore file ?

  • 写回答

2条回答 默认 最新

  • dongzhan0624 2017-09-01 07:30
    关注
    • web/config.php

    From SensioLabsInsight,

    This config.php file should only be used to bootstrap a Symfony application. Before releasing to production, you should remove it, otherwise attackers could get valuable insight about your application.

    • var/SymfonyRequirements.php

    This file is used by Symfony Check CLI Script to check for minimum requirements of configuring & running a Symfony App. It's a Common Post-Deployment Task.

    See this question Should the changes of SymfonyRequirements.php be included in version control? and the documentation.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?