mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Export enivornment-dependent configuration to "config/packages"
This commit is contained in:
parent
4f7b1fdadb
commit
785e5046c1
24 changed files with 68 additions and 103 deletions
|
|
@ -1,30 +0,0 @@
|
|||
# This file is part of the Sylius package.
|
||||
# (c) Paweł Jędrzejewski
|
||||
|
||||
imports:
|
||||
- { resource: "config.yml" }
|
||||
|
||||
framework:
|
||||
router: { resource: "%kernel.project_dir%/app/config/routing_dev.yml" }
|
||||
profiler: { only_exceptions: false }
|
||||
|
||||
doctrine:
|
||||
dbal:
|
||||
dbname: "%database_name%_dev"
|
||||
|
||||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
level: debug
|
||||
firephp:
|
||||
type: firephp
|
||||
level: info
|
||||
|
||||
swiftmailer:
|
||||
disable_delivery: true
|
||||
|
||||
web_profiler:
|
||||
toolbar: true
|
||||
intercept_redirects: false
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
# This file is part of the Sylius package.
|
||||
# (c) Paweł Jędrzejewski
|
||||
|
||||
imports:
|
||||
- { resource: "config.yml" }
|
||||
|
||||
parameters:
|
||||
locale: en_US
|
||||
|
||||
fidry_alice_data_fixtures:
|
||||
default_purge_mode: no_purge
|
||||
|
||||
framework:
|
||||
test: ~
|
||||
session:
|
||||
storage_id: session.storage.mock_file
|
||||
|
||||
doctrine:
|
||||
dbal:
|
||||
dbname: "%database_name%_test"
|
||||
|
||||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
level: error
|
||||
|
||||
swiftmailer:
|
||||
disable_delivery: true
|
||||
logging: true
|
||||
spool:
|
||||
type: file
|
||||
path: "%kernel.cache_dir%/spool"
|
||||
|
||||
sylius_theme:
|
||||
sources:
|
||||
test: ~
|
||||
0
config/packages/dev/doctrine.yaml
Normal file
0
config/packages/dev/doctrine.yaml
Normal file
3
config/packages/dev/framework.yaml
Normal file
3
config/packages/dev/framework.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
framework:
|
||||
router: { resource: "%kernel.project_dir%/app/config/routing_dev.yml" }
|
||||
profiler: { only_exceptions: false }
|
||||
9
config/packages/dev/monolog.yaml
Normal file
9
config/packages/dev/monolog.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
level: debug
|
||||
firephp:
|
||||
type: firephp
|
||||
level: info
|
||||
2
config/packages/dev/swiftmailer.yaml
Normal file
2
config/packages/dev/swiftmailer.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
swiftmailer:
|
||||
disable_delivery: true
|
||||
3
config/packages/dev/web_profiler.yaml
Normal file
3
config/packages/dev/web_profiler.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
web_profiler:
|
||||
toolbar: true
|
||||
intercept_redirects: false
|
||||
|
|
@ -1,9 +1,3 @@
|
|||
# This file is part of the Sylius package.
|
||||
# (c) Paweł Jędrzejewski
|
||||
|
||||
imports:
|
||||
- { resource: "config.yml" }
|
||||
|
||||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
|
|
@ -1,9 +1,3 @@
|
|||
# This file is part of the Sylius package.
|
||||
# (c) Paweł Jędrzejewski
|
||||
|
||||
imports:
|
||||
- { resource: "config.yml" }
|
||||
|
||||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
|
|
@ -14,10 +8,3 @@ monolog:
|
|||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
level: debug
|
||||
|
||||
doctrine:
|
||||
dbal:
|
||||
dbname: "%database_name%_staging"
|
||||
|
||||
swiftmailer:
|
||||
disable_delivery: true
|
||||
2
config/packages/staging/swiftmailer.yaml
Normal file
2
config/packages/staging/swiftmailer.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
swiftmailer:
|
||||
disable_delivery: true
|
||||
2
config/packages/test/fidry_alice_data_fixtures.yaml
Normal file
2
config/packages/test/fidry_alice_data_fixtures.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
fidry_alice_data_fixtures:
|
||||
default_purge_mode: no_purge
|
||||
4
config/packages/test/framework.yaml
Normal file
4
config/packages/test/framework.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
framework:
|
||||
test: ~
|
||||
session:
|
||||
storage_id: session.storage.mock_file
|
||||
6
config/packages/test/monolog.yaml
Normal file
6
config/packages/test/monolog.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
level: error
|
||||
6
config/packages/test/swiftmailer.yaml
Normal file
6
config/packages/test/swiftmailer.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
swiftmailer:
|
||||
disable_delivery: true
|
||||
logging: true
|
||||
spool:
|
||||
type: file
|
||||
path: "%kernel.cache_dir%/spool"
|
||||
3
config/packages/test/sylius_theme.yaml
Normal file
3
config/packages/test/sylius_theme.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
sylius_theme:
|
||||
sources:
|
||||
test: ~
|
||||
|
|
@ -1,9 +1,3 @@
|
|||
# This file is part of the Sylius package.
|
||||
# (c) Paweł Jędrzejewski
|
||||
|
||||
imports:
|
||||
- { resource: "config_test.yml" }
|
||||
|
||||
doctrine:
|
||||
orm:
|
||||
entity_managers:
|
||||
|
|
@ -20,13 +14,3 @@ doctrine:
|
|||
type: memcached
|
||||
host: localhost
|
||||
port: 11211
|
||||
|
||||
twig:
|
||||
strict_variables: true
|
||||
|
||||
sylius_channel:
|
||||
debug: true
|
||||
|
||||
fos_rest:
|
||||
exception:
|
||||
debug: true
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
fidry_alice_data_fixtures:
|
||||
default_purge_mode: no_purge
|
||||
3
config/packages/test_cached/fos_rest.yaml
Normal file
3
config/packages/test_cached/fos_rest.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fos_rest:
|
||||
exception:
|
||||
debug: true
|
||||
4
config/packages/test_cached/framework.yaml
Normal file
4
config/packages/test_cached/framework.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
framework:
|
||||
test: ~
|
||||
session:
|
||||
storage_id: session.storage.mock_file
|
||||
6
config/packages/test_cached/monolog.yaml
Normal file
6
config/packages/test_cached/monolog.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
level: error
|
||||
6
config/packages/test_cached/swiftmailer.yaml
Normal file
6
config/packages/test_cached/swiftmailer.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
swiftmailer:
|
||||
disable_delivery: true
|
||||
logging: true
|
||||
spool:
|
||||
type: file
|
||||
path: "%kernel.cache_dir%/spool"
|
||||
2
config/packages/test_cached/sylius_channel.yaml
Normal file
2
config/packages/test_cached/sylius_channel.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
sylius_channel:
|
||||
debug: true
|
||||
3
config/packages/test_cached/sylius_theme.yaml
Normal file
3
config/packages/test_cached/sylius_theme.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
sylius_theme:
|
||||
sources:
|
||||
test: ~
|
||||
2
config/packages/test_cached/twig.yaml
Normal file
2
config/packages/test_cached/twig.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
twig:
|
||||
strict_variables: true
|
||||
Loading…
Add table
Reference in a new issue