diff --git a/zenstruck/foundry/2.7/config/packages/zenstruck_foundry.yaml b/zenstruck/foundry/2.7/config/packages/zenstruck_foundry.yaml index 20592c518..09c5c77b3 100644 --- a/zenstruck/foundry/2.7/config/packages/zenstruck_foundry.yaml +++ b/zenstruck/foundry/2.7/config/packages/zenstruck_foundry.yaml @@ -5,4 +5,12 @@ when@dev: &dev # Flush only once per call of `PersistentObjectFactory::create()` flush_once: true + # If you use the `make:factory --test` command, you may need to uncomment the following. + # See https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html#generate + #services: + # App\Tests\Factory\: + # resource: '%kernel.project_dir%/tests/Factory/' + # autowire: true + # autoconfigure: true + when@test: *dev