From 65b14047ce0e6c8696d6284c049ab1e2d430b2f0 Mon Sep 17 00:00:00 2001 From: Nicolas PHILIPPE Date: Sun, 4 May 2025 19:52:19 +0200 Subject: [PATCH] [zenstruck/foundry] introduce flush_once config --- .../2.5/config/packages/zenstruck_foundry.yaml | 8 ++++++++ zenstruck/foundry/2.5/manifest.json | 13 +++++++++++++ zenstruck/foundry/2.5/post-install.txt | 4 ++++ 3 files changed, 25 insertions(+) create mode 100644 zenstruck/foundry/2.5/config/packages/zenstruck_foundry.yaml create mode 100644 zenstruck/foundry/2.5/manifest.json create mode 100644 zenstruck/foundry/2.5/post-install.txt diff --git a/zenstruck/foundry/2.5/config/packages/zenstruck_foundry.yaml b/zenstruck/foundry/2.5/config/packages/zenstruck_foundry.yaml new file mode 100644 index 000000000..9e674c0b7 --- /dev/null +++ b/zenstruck/foundry/2.5/config/packages/zenstruck_foundry.yaml @@ -0,0 +1,8 @@ +when@dev: &dev + # See full configuration: https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html#full-default-bundle-configuration + zenstruck_foundry: + persistence: + # Flush only once per call of `PersistentObjectFactory::create()` in userland + flush_once: true + +when@test: *dev diff --git a/zenstruck/foundry/2.5/manifest.json b/zenstruck/foundry/2.5/manifest.json new file mode 100644 index 000000000..2306a8017 --- /dev/null +++ b/zenstruck/foundry/2.5/manifest.json @@ -0,0 +1,13 @@ +{ + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "bundles": { + "Zenstruck\\Foundry\\ZenstruckFoundryBundle": ["dev", "test"] + }, + "conflict": { + "doctrine/persistence": "<2.0", + "symfony/framework-bundle": "<6.4" + }, + "aliases": ["foundry"] +} diff --git a/zenstruck/foundry/2.5/post-install.txt b/zenstruck/foundry/2.5/post-install.txt new file mode 100644 index 000000000..456b63d04 --- /dev/null +++ b/zenstruck/foundry/2.5/post-install.txt @@ -0,0 +1,4 @@ + * You're ready to use zenstruck/foundry. Create your first factory with + bin/console make:factory. + + * Read the documentation at https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html