mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Update Flex endpoint
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"manifests": {
|
||||
"zenstruck/foundry": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"bundles": {
|
||||
"Zenstruck\\Foundry\\ZenstruckFoundryBundle": [
|
||||
"dev",
|
||||
"test"
|
||||
]
|
||||
},
|
||||
"conflict": {
|
||||
"doctrine/persistence": "<2.0",
|
||||
"symfony/flex": "<1.23.0 || >=2.0.0,<2.8.0",
|
||||
"symfony/framework-bundle": "<6.4"
|
||||
},
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "phpunit.dist.xml",
|
||||
"content": " <bootstrap class=\"Zenstruck\\Foundry\\PHPUnit\\FoundryExtension\" />",
|
||||
"position": "after_target",
|
||||
"target": "<extensions>",
|
||||
"requires": "phpunit/phpunit:>=10",
|
||||
"warn_if_missing": false
|
||||
}
|
||||
],
|
||||
"post-install-output": [
|
||||
" * You're ready to use zenstruck/foundry. Create your first factory with",
|
||||
" <info>bin/console make:factory</>.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/zenstruck_foundry.yaml": {
|
||||
"contents": [
|
||||
"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",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Story/AppStory.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"namespace App\\Story;",
|
||||
"",
|
||||
"use Zenstruck\\Foundry\\Attribute\\AsFixture;",
|
||||
"use Zenstruck\\Foundry\\Story;",
|
||||
"",
|
||||
"#[AsFixture(name: 'main')]",
|
||||
"final class AppStory extends Story",
|
||||
"{",
|
||||
" public function build(): void",
|
||||
" {",
|
||||
" // SomeFactory::createOne();",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "50321333fa5e12324ac1d5a2aeb65fb276a6f9c8"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"manifests": {
|
||||
"zenstruck/foundry": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"bundles": {
|
||||
"Zenstruck\\Foundry\\ZenstruckFoundryBundle": [
|
||||
"dev",
|
||||
"test"
|
||||
]
|
||||
},
|
||||
"conflict": {
|
||||
"doctrine/persistence": "<2.0",
|
||||
"symfony/flex": "<1.23.0 || >=2.0.0,<2.8.0",
|
||||
"symfony/framework-bundle": "<6.4"
|
||||
},
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "phpunit.dist.xml",
|
||||
"content": " <bootstrap class=\"Zenstruck\\Foundry\\PHPUnit\\FoundryExtension\" />",
|
||||
"position": "after_target",
|
||||
"target": "<extensions>",
|
||||
"requires": "phpunit/phpunit:>=10",
|
||||
"warn_if_missing": false
|
||||
}
|
||||
],
|
||||
"post-install-output": [
|
||||
" * You're ready to use zenstruck/foundry. Create your first factory with",
|
||||
" <info>bin/console make:factory</>.",
|
||||
"",
|
||||
" * <fg=blue>Read</> the documentation at <comment>https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/zenstruck_foundry.yaml": {
|
||||
"contents": [
|
||||
"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",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "fceaa3cfccd042e527c20632f55624ff984eb158"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1498,10 +1498,12 @@
|
||||
},
|
||||
"2.5": {
|
||||
"doctrine/persistence": "<2.0",
|
||||
"symfony/flex": "<1.23.0 || >=2.0.0,<2.8.0",
|
||||
"symfony/framework-bundle": "<6.4"
|
||||
},
|
||||
"2.6": {
|
||||
"doctrine/persistence": "<2.0",
|
||||
"symfony/flex": "<1.23.0 || >=2.0.0,<2.8.0",
|
||||
"symfony/framework-bundle": "<6.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,8 +13,19 @@
|
||||
},
|
||||
"conflict": {
|
||||
"doctrine/persistence": "<2.0",
|
||||
"symfony/flex": "<1.23.0 || >=2.0.0,<2.8.0",
|
||||
"symfony/framework-bundle": "<6.4"
|
||||
},
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "phpunit.dist.xml",
|
||||
"content": " <bootstrap class=\"Zenstruck\\Foundry\\PHPUnit\\FoundryExtension\" />",
|
||||
"position": "after_target",
|
||||
"target": "<extensions>",
|
||||
"requires": "phpunit/phpunit:>=10",
|
||||
"warn_if_missing": false
|
||||
}
|
||||
],
|
||||
"post-install-output": [
|
||||
" * You're ready to use zenstruck/foundry. Create your first factory with",
|
||||
" <info>bin/console make:factory</>.",
|
||||
@@ -38,7 +49,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "8390abe263fa9b68f55c2799c44af5fec2912c5d"
|
||||
"ref": "fceaa3cfccd042e527c20632f55624ff984eb158"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,8 +14,19 @@
|
||||
},
|
||||
"conflict": {
|
||||
"doctrine/persistence": "<2.0",
|
||||
"symfony/flex": "<1.23.0 || >=2.0.0,<2.8.0",
|
||||
"symfony/framework-bundle": "<6.4"
|
||||
},
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "phpunit.dist.xml",
|
||||
"content": " <bootstrap class=\"Zenstruck\\Foundry\\PHPUnit\\FoundryExtension\" />",
|
||||
"position": "after_target",
|
||||
"target": "<extensions>",
|
||||
"requires": "phpunit/phpunit:>=10",
|
||||
"warn_if_missing": false
|
||||
}
|
||||
],
|
||||
"post-install-output": [
|
||||
" * You're ready to use zenstruck/foundry. Create your first factory with",
|
||||
" <info>bin/console make:factory</>.",
|
||||
@@ -60,7 +71,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "3c7f73fdbf04b3a00e0664b0b9cc6fdebbb50a8a"
|
||||
"ref": "50321333fa5e12324ac1d5a2aeb65fb276a6f9c8"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user