mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-23 16:22:19 +01:00
Feature/mock server bundle recipe 1.0 (#1492)
* Add default configuration file * Add manifest.json * Update default config to ensure http_client service is available in dev * Remove http_client config; this is enabled in the bundle via prepend * Update default config to only load in test and dev environments
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
when@test: &test
|
||||
mock_server:
|
||||
host_url: '%env(MOCK_SERVER_HOST)%'
|
||||
mocks_directory: '%kernel.project_dir%/tests/apiMocks'
|
||||
|
||||
when@dev: *test
|
||||
11
youritservices/mock-server-bundle/1.0/manifest.json
Normal file
11
youritservices/mock-server-bundle/1.0/manifest.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"bundles": {
|
||||
"YourITServices\\MockServerBundle\\MockServerBundle": ["dev", "test"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"MOCK_SERVER_HOST": "http://mock-api:1080"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user