]> source.dussan.org Git - gitignore.git/commitdiff
Update Symfony.gitignore to support Symfony3 1117/head
authorNic Wortel <nd.wortel@gmail.com>
Mon, 1 Sep 2014 08:50:33 +0000 (10:50 +0200)
committerNic Wortel <nd.wortel@gmail.com>
Mon, 1 Sep 2014 08:52:45 +0000 (10:52 +0200)
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.

Symfony.gitignore

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