Skip to content

Commit ea6ade9

Browse files
authored
Consolidating env-specific files into main config file for simplicity
1 parent 55d7c81 commit ea6ade9

File tree

7 files changed

+39
-30
lines changed

7 files changed

+39
-30
lines changed

doctrine/doctrine-bundle/2.4/config/packages/doctrine.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,28 @@ doctrine:
1515
dir: '%kernel.project_dir%/src/Entity'
1616
prefix: 'App\Entity'
1717
alias: App
18+
19+
when@test:
20+
doctrine:
21+
dbal:
22+
# "TEST_TOKEN" is typically set by ParaTest
23+
dbname_suffix: '_test%env(default::TEST_TOKEN)%'
24+
25+
when@prod:
26+
doctrine:
27+
orm:
28+
auto_generate_proxy_classes: false
29+
query_cache_driver:
30+
type: pool
31+
pool: doctrine.system_cache_pool
32+
result_cache_driver:
33+
type: pool
34+
pool: doctrine.result_cache_pool
35+
36+
framework:
37+
cache:
38+
pools:
39+
doctrine.result_cache_pool:
40+
adapter: cache.app
41+
doctrine.system_cache_pool:
42+
adapter: cache.system

doctrine/doctrine-bundle/2.4/config/packages/prod/doctrine.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

doctrine/doctrine-bundle/2.4/config/packages/test/doctrine.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

symfony/webpack-encore-bundle/1.9/config/packages/assets.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

symfony/webpack-encore-bundle/1.9/config/packages/prod/webpack_encore.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

symfony/webpack-encore-bundle/1.9/config/packages/test/webpack_encore.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

symfony/webpack-encore-bundle/1.9/config/packages/webpack_encore.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,17 @@ webpack_encore:
3333
# Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
3434
# Put in config/packages/prod/webpack_encore.yaml
3535
# cache: true
36+
37+
framework:
38+
assets:
39+
json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'
40+
41+
#when@prod:
42+
# webpack_encore:
43+
# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
44+
# # Available in version 1.2
45+
# cache: true
46+
47+
#when@test:
48+
# webpack_encore:
49+
# strict_mode: false

0 commit comments

Comments
 (0)