安装项目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 ?

  • 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.

No need to add these files in git.

I use .gitignore as like this and its working fine for me and my team.

/web/assetic/
/web/bundles/*
/var/bootstrap.php.cache
/var/cache/*
/var/sessions/*
/app/config/parameters.yml
/var/logs/*
/vendor/
/bin/
/web/uploads/
/.project
/.buildpath
/.settings