Update Symfony.gitignore to support Symfony3

Symfony3 (and some versions of Symfony2) come with a new directory structure.
This updated version of Symfony.gitignore supports this new directory structure
as well as the old one.
This commit is contained in:
Nic Wortel 2014-09-01 10:50:33 +02:00
parent 5e34ab0bc2
commit 2626eee811

View File

@ -1,16 +1,25 @@
# Cache and logs # Cache and logs (Symfony2)
/app/cache/* /app/cache/*
/app/logs/* /app/logs/*
!app/cache/.gitkeep !app/cache/.gitkeep
!app/logs/.gitkeep !app/logs/.gitkeep
# Cache and logs (Symfony3)
/var/cache/*
/var/logs/*
!var/cache/.gitkeep
!var/logs/.gitkeep
# Parameters # Parameters
/app/config/parameters.yml /app/config/parameters.yml
/app/config/parameters.ini /app/config/parameters.ini
# Managed by Composer # Managed by Composer
/app/bootstrap.php.cache /app/bootstrap.php.cache
/bin/ /var/bootstrap.php.cache
/bin/*
!bin/console
!bin/symfony_requirements
/vendor/ /vendor/
# Assets and user uploads # Assets and user uploads
@ -19,6 +28,7 @@
# PHPUnit # PHPUnit
/app/phpunit.xml /app/phpunit.xml
/phpunit.xml
# Composer PHAR # Composer PHAR
/composer.phar /composer.phar