fixed Doctrine migrations default configuration

This commit is contained in:
Fabien Potencier
2017-09-11 05:36:59 -07:00
parent 6942b72314
commit 87edffe754
2 changed files with 4 additions and 1 deletions
@@ -1,2 +1,5 @@
doctrine_migrations:
dir_name: '%kernel.project_dir%/src/Migrations'
# namespace is arbitrary but should be different from App\Migrations
# as migrations classes should NOT be autoloaded
namespace: DoctrineMigrations
@@ -19,7 +19,7 @@ services:
resource: '../src/*'
# you can exclude directories or files
# but if a service is unused, it's removed anyway
exclude: '../src/{Entity,Repository,Tests}'
exclude: '../src/{Entity,Migrations,Repository,Tests}'
# controllers are imported separately to make sure they're public
# and have a tag that allows actions to type-hint services