Consistently use when@env (#1058)

This commit is contained in:
Nicolas Grekas
2022-02-15 16:55:00 +01:00
committed by GitHub
parent ee79aec158
commit fadeac1c28
14 changed files with 121 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
when@dev: &dev
hautelook_alice:
fixtures_path: fixtures
when@test: *dev

View File

View File

@@ -0,0 +1,13 @@
{
"aliases": ["alice"],
"bundles": {
"Hautelook\\AliceBundle\\HautelookAliceBundle": ["dev", "test"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"fixtures/": "fixtures/"
},
"conflict": {
"symfony/framework-bundle": "<5.3"
}
}

View File

@@ -0,0 +1,2 @@
* <fg=blue>Write</> fixtures files in the <comment>fixtures/</> folder
* <fg=blue>Run</> <comment>php bin/console hautelook:fixtures:load</>

View File

@@ -0,0 +1,12 @@
when@dev: &dev
nelmio_alice:
functions_blacklist:
- 'current'
- 'shuffle'
- 'date'
- 'time'
- 'file'
- 'md5'
- 'sha1'
when@test: *dev

View File

@@ -0,0 +1,11 @@
{
"bundles": {
"Nelmio\\Alice\\Bridge\\Symfony\\NelmioAliceBundle": ["dev", "test"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"conflict": {
"symfony/framework-bundle": "<5.3"
}
}

View File

@@ -0,0 +1,13 @@
framework:
validation:
email_validation_mode: html5
# Enables validator auto-mapping support.
# For instance, basic validation constraints will be inferred from Doctrine's metadata.
#auto_mapping:
# App\Entity\: []
when@test:
framework:
validation:
not_compromised_password: false

View File

@@ -0,0 +1,9 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"aliases": ["validation"],
"conflict": {
"symfony/framework-bundle": "<5.3"
}
}

View File

@@ -0,0 +1,15 @@
when@dev:
web_profiler:
toolbar: true
intercept_redirects: false
framework:
profiler: { only_exceptions: false }
when@test:
web_profiler:
toolbar: false
intercept_redirects: false
framework:
profiler: { collect: false }

View File

@@ -0,0 +1,8 @@
when@dev:
web_profiler_wdt:
resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'
prefix: /_wdt
web_profiler_profiler:
resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
prefix: /_profiler

View File

@@ -0,0 +1,11 @@
{
"bundles": {
"Symfony\\Bundle\\WebProfilerBundle\\WebProfilerBundle": ["dev", "test"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"conflict": {
"symfony/framework-bundle": "<5.3"
}
}

View File

@@ -0,0 +1,7 @@
when@dev: &dev
# See full configuration: https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html#full-default-bundle-configuration
zenstruck_foundry:
# Whether to auto-refresh proxies by default (https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html#auto-refresh)
auto_refresh_proxies: true
when@test: *dev

View File

@@ -0,0 +1,11 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"bundles": {
"Zenstruck\\Foundry\\ZenstruckFoundryBundle": ["dev", "test"]
},
"conflict": {
"symfony/framework-bundle": "<5.3"
}
}

View File

@@ -0,0 +1,4 @@
* 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</>