File tree Expand file tree Collapse file tree 5 files changed +42
-1
lines changed Expand file tree Collapse file tree 5 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ when@dev: &dev
22 # See full configuration: https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html#full-default-bundle-configuration
33 zenstruck_foundry :
44 persistence :
5- # Flush only once per call of `PersistentObjectFactory::create()` in userland
5+ # Flush only once per call of `PersistentObjectFactory::create()`
66 flush_once : true
77
88when@test : *dev
Original file line number Diff line number Diff line change 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()`
6+ flush_once : true
7+
8+ when@test : *dev
Original file line number Diff line number Diff line change 1+ {
2+ "copy-from-recipe" : {
3+ "config/" : " %CONFIG_DIR%/" ,
4+ "src/" : " %SRC_DIR%/"
5+ },
6+ "bundles" : {
7+ "Zenstruck\\ Foundry\\ ZenstruckFoundryBundle" : [" dev" , " test" ]
8+ },
9+ "conflict" : {
10+ "doctrine/persistence" : " <2.0" ,
11+ "symfony/framework-bundle" : " <6.4"
12+ },
13+ "aliases" : [" foundry" ]
14+ }
Original file line number Diff line number Diff line change 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</>
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace App \Story ;
4+
5+ use Zenstruck \Foundry \Attribute \AsFixture ;
6+ use Zenstruck \Foundry \Story ;
7+
8+ #[AsFixture(name: 'main ' )]
9+ final class AppStory extends Story
10+ {
11+ public function build (): void
12+ {
13+ // SomeFactory::createOne();
14+ }
15+ }
You can’t perform that action at this time.
0 commit comments