Skip to content

Commit

Permalink
Consistently use when@env (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas authored Feb 15, 2022
1 parent ee79aec commit fadeac1
Show file tree
Hide file tree
Showing 14 changed files with 121 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
when@dev: &dev
hautelook_alice:
fixtures_path: fixtures

when@test: *dev
Empty file.
13 changes: 13 additions & 0 deletions hautelook/alice-bundle/2.2/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
2 changes: 2 additions & 0 deletions hautelook/alice-bundle/2.2/post-install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* <fg=blue>Write</> fixtures files in the <comment>fixtures/</> folder
* <fg=blue>Run</> <comment>php bin/console hautelook:fixtures:load</>
12 changes: 12 additions & 0 deletions nelmio/alice/3.3/config/packages/nelmio_alice.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
when@dev: &dev
nelmio_alice:
functions_blacklist:
- 'current'
- 'shuffle'
- 'date'
- 'time'
- 'file'
- 'md5'
- 'sha1'

when@test: *dev
11 changes: 11 additions & 0 deletions nelmio/alice/3.3/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"bundles": {
"Nelmio\\Alice\\Bridge\\Symfony\\NelmioAliceBundle": ["dev", "test"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"conflict": {
"symfony/framework-bundle": "<5.3"
}
}
13 changes: 13 additions & 0 deletions symfony/validator/5.3/config/packages/validator.yaml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions symfony/validator/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"aliases": ["validation"],
"conflict": {
"symfony/framework-bundle": "<5.3"
}
}
15 changes: 15 additions & 0 deletions symfony/web-profiler-bundle/5.3/config/packages/web_profiler.yaml
Original file line number Diff line number Diff line change
@@ -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 }
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions symfony/web-profiler-bundle/5.3/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"bundles": {
"Symfony\\Bundle\\WebProfilerBundle\\WebProfilerBundle": ["dev", "test"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"conflict": {
"symfony/framework-bundle": "<5.3"
}
}
7 changes: 7 additions & 0 deletions zenstruck/foundry/1.10/config/packages/zenstruck_foundry.yaml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions zenstruck/foundry/1.10/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"bundles": {
"Zenstruck\\Foundry\\ZenstruckFoundryBundle": ["dev", "test"]
},
"conflict": {
"symfony/framework-bundle": "<5.3"
}
}
4 changes: 4 additions & 0 deletions zenstruck/foundry/1.10/post-install.txt
Original file line number Diff line number Diff line change
@@ -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</>

0 comments on commit fadeac1

Please sign in to comment.