From e63167cf442526ea65d03a348e878ac3210ea150 Mon Sep 17 00:00:00 2001 From: Takashi Kanemoto Date: Fri, 10 Oct 2025 17:17:46 +0900 Subject: [PATCH 1/2] [zenstruck/foundry] add some comments to zenstruck_foundry.yaml --- .../foundry/2.7/config/packages/zenstruck_foundry.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zenstruck/foundry/2.7/config/packages/zenstruck_foundry.yaml b/zenstruck/foundry/2.7/config/packages/zenstruck_foundry.yaml index 20592c518..179b414d3 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: '../../tests/Factory/' + # autowire: true + # autoconfigure: true + when@test: *dev From fec4535878f78a81990a9ba21323dd2c1c44b91f Mon Sep 17 00:00:00 2001 From: Takashi Kanemoto Date: Fri, 10 Oct 2025 17:51:32 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20improve=20the=20`tes?= =?UTF-8?q?ts`=20directory=20path=20notation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zenstruck/foundry/2.7/config/packages/zenstruck_foundry.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zenstruck/foundry/2.7/config/packages/zenstruck_foundry.yaml b/zenstruck/foundry/2.7/config/packages/zenstruck_foundry.yaml index 179b414d3..09c5c77b3 100644 --- a/zenstruck/foundry/2.7/config/packages/zenstruck_foundry.yaml +++ b/zenstruck/foundry/2.7/config/packages/zenstruck_foundry.yaml @@ -9,7 +9,7 @@ when@dev: &dev # See https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html#generate #services: # App\Tests\Factory\: - # resource: '../../tests/Factory/' + # resource: '%kernel.project_dir%/tests/Factory/' # autowire: true # autoconfigure: true