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 matlab实现基于主成分变换的图像融合。
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊