Skip to content

Commit 8d703a3

Browse files
authored
[zenstruck/foundry] introduce flush_once config (#1410)
1 parent 5de3a94 commit 8d703a3

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
when@dev: &dev
2+
# See full configuration: https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html#full-default-bundle-configuration
3+
zenstruck_foundry:
4+
persistence:
5+
# Flush only once per call of `PersistentObjectFactory::create()` in userland
6+
flush_once: true
7+
8+
when@test: *dev

zenstruck/foundry/2.5/manifest.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"copy-from-recipe": {
3+
"config/": "%CONFIG_DIR%/"
4+
},
5+
"bundles": {
6+
"Zenstruck\\Foundry\\ZenstruckFoundryBundle": ["dev", "test"]
7+
},
8+
"conflict": {
9+
"doctrine/persistence": "<2.0",
10+
"symfony/framework-bundle": "<6.4"
11+
},
12+
"aliases": ["foundry"]
13+
}
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* You're ready to use zenstruck/foundry. Create your first factory with
2+
<info>bin/console make:factory</>.
3+
4+
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html</>

0 commit comments

Comments
 (0)