Add support for ContentfulBundle 4.0

This commit is contained in:
Davide Borsatto
2019-02-18 15:40:21 +01:00
parent 91b4a2b396
commit 9af2cc8606
3 changed files with 29 additions and 0 deletions
@@ -0,0 +1,7 @@
# For the complete configuration, please visit
# https://www.contentful.com/developers/docs/php/tutorials/getting-started-with-contentful-and-symfony/
contentful:
delivery:
main:
token: "%env(CONTENTFUL_ACCESS_TOKEN)%"
space: "%env(CONTENTFUL_SPACE_ID)%"
@@ -0,0 +1,14 @@
{
"bundles": {
"Contentful\\ContentfulBundle\\ContentfulBundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"CONTENTFUL_SPACE_ID": "cfexampleapi",
"CONTENTFUL_ACCESS_TOKEN": "b4c0n73n7fu1"
}
}
@@ -0,0 +1,8 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> Next: ContentfulBundle Configuration </>
<bg=blue;fg=white> </>
* Get your space ID and API key from https://www.contentful.com
and configure them in your <fg=green>.env</>
Documentation: https://www.contentful.com/developers/docs/php/