mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-16 01:26:27 +03:00
Update Flex endpoint
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"manifests": {
|
||||
"shopware/app-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Shopware\\AppBundle\\ShopwareAppBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
},
|
||||
"env": {
|
||||
"SHOPWARE_APP_NAME": "TestApp",
|
||||
"SHOPWARE_APP_SECRET": "MySecret"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * <fg=yellow>Warning</> the shopware/app-bundle uses by default a in-memory database. You should use doctrine or dynamodb",
|
||||
"",
|
||||
" For doctrine install the following packages: composer require doctrine/orm symfony/doctrine-bridge",
|
||||
" For dynamodb install the following packages: composer require async-aws/async-aws-bundle async-aws/dynamo-db",
|
||||
"",
|
||||
" Make sure to configure the correct storage after installing the packages in config/packages/shopware_app.yaml"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"config/packages/shopware_app.yaml": {
|
||||
"contents": [
|
||||
"shopware_app:",
|
||||
" name: '%env(SHOPWARE_APP_NAME)%'",
|
||||
" secret: '%env(SHOPWARE_APP_SECRET)%'",
|
||||
" # You should specify a specific storage like: dynamodb or doctrine",
|
||||
" storage: 'auto'",
|
||||
" doctrine:",
|
||||
" shop_class: App\\Entity\\Shop",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/routes/shopware_app.yaml": {
|
||||
"contents": [
|
||||
"shopware_app_lifecycle:",
|
||||
" resource: '@ShopwareAppBundle/Resources/config/routing/lifecycle.xml'",
|
||||
" prefix: /app",
|
||||
"",
|
||||
"shopware_app_webhook:",
|
||||
" resource: '@ShopwareAppBundle/Resources/config/routing/webhook.xml'",
|
||||
" prefix: /app",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/Shop.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"declare(strict_types=1);",
|
||||
"",
|
||||
"namespace App\\Entity;",
|
||||
"",
|
||||
"use Doctrine\\ORM\\Mapping\\Entity;",
|
||||
"use Shopware\\AppBundle\\Entity\\AbstractShop;",
|
||||
"",
|
||||
"#[Entity]",
|
||||
"class Shop extends AbstractShop",
|
||||
"{",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b1417a2ffda1869be8b0d19ba38d99c0c2fbdafd"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,8 +30,8 @@
|
||||
"shopware_app:",
|
||||
" name: '%env(SHOPWARE_APP_NAME)%'",
|
||||
" secret: '%env(SHOPWARE_APP_SECRET)%'",
|
||||
" # You should use doctrine or dynamodb as storage",
|
||||
" storage: 'in-memory'",
|
||||
" # You should specify a specific storage like: dynamodb or doctrine",
|
||||
" storage: 'auto'",
|
||||
" doctrine:",
|
||||
" shop_class: App\\Entity\\Shop",
|
||||
""
|
||||
@@ -72,7 +72,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "863ca5afe37f713407d6aca2348777b4f72c9c7d"
|
||||
"ref": "b1417a2ffda1869be8b0d19ba38d99c0c2fbdafd"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user