From 777160e0ff4695ce7c1c2ebcbaaf9a8390c63eea Mon Sep 17 00:00:00 2001 From: Nicolas PHILIPPE Date: Sun, 18 May 2025 20:41:26 +0200 Subject: [PATCH] [zenstruc/foundry] Add 2.6 config & one story as fixture --- .../2.5/config/packages/zenstruck_foundry.yaml | 2 +- .../2.6/config/packages/zenstruck_foundry.yaml | 8 ++++++++ zenstruck/foundry/2.6/manifest.json | 14 ++++++++++++++ zenstruck/foundry/2.6/post-install.txt | 4 ++++ zenstruck/foundry/2.6/src/Story/AppStory.php | 15 +++++++++++++++ 5 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 zenstruck/foundry/2.6/config/packages/zenstruck_foundry.yaml create mode 100644 zenstruck/foundry/2.6/manifest.json create mode 100644 zenstruck/foundry/2.6/post-install.txt create mode 100644 zenstruck/foundry/2.6/src/Story/AppStory.php diff --git a/zenstruck/foundry/2.5/config/packages/zenstruck_foundry.yaml b/zenstruck/foundry/2.5/config/packages/zenstruck_foundry.yaml index 9e674c0b7..20592c518 100644 --- a/zenstruck/foundry/2.5/config/packages/zenstruck_foundry.yaml +++ b/zenstruck/foundry/2.5/config/packages/zenstruck_foundry.yaml @@ -2,7 +2,7 @@ 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 only once per call of `PersistentObjectFactory::create()` flush_once: true when@test: *dev diff --git a/zenstruck/foundry/2.6/config/packages/zenstruck_foundry.yaml b/zenstruck/foundry/2.6/config/packages/zenstruck_foundry.yaml new file mode 100644 index 000000000..20592c518 --- /dev/null +++ b/zenstruck/foundry/2.6/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()` + flush_once: true + +when@test: *dev diff --git a/zenstruck/foundry/2.6/manifest.json b/zenstruck/foundry/2.6/manifest.json new file mode 100644 index 000000000..74017adb5 --- /dev/null +++ b/zenstruck/foundry/2.6/manifest.json @@ -0,0 +1,14 @@ +{ + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "src/": "%SRC_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.6/post-install.txt b/zenstruck/foundry/2.6/post-install.txt new file mode 100644 index 000000000..456b63d04 --- /dev/null +++ b/zenstruck/foundry/2.6/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 diff --git a/zenstruck/foundry/2.6/src/Story/AppStory.php b/zenstruck/foundry/2.6/src/Story/AppStory.php new file mode 100644 index 000000000..5cc565779 --- /dev/null +++ b/zenstruck/foundry/2.6/src/Story/AppStory.php @@ -0,0 +1,15 @@ +