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条)

报告相同问题?

悬赏问题

  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决