diff --git a/shopware/app-bundle/5.0/config/packages/shopware_app.yaml b/shopware/app-bundle/5.0/config/packages/shopware_app.yaml new file mode 100644 index 00000000..1c40076a --- /dev/null +++ b/shopware/app-bundle/5.0/config/packages/shopware_app.yaml @@ -0,0 +1,7 @@ +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 diff --git a/shopware/app-bundle/5.0/config/routes/shopware_app.yaml b/shopware/app-bundle/5.0/config/routes/shopware_app.yaml new file mode 100644 index 00000000..73562190 --- /dev/null +++ b/shopware/app-bundle/5.0/config/routes/shopware_app.yaml @@ -0,0 +1,7 @@ +shopware_app_lifecycle: + resource: '@ShopwareAppBundle/Resources/config/routing/lifecycle.php' + prefix: /app + +shopware_app_webhook: + resource: '@ShopwareAppBundle/Resources/config/routing/webhook.php' + prefix: /app diff --git a/shopware/app-bundle/5.0/manifest.json b/shopware/app-bundle/5.0/manifest.json new file mode 100644 index 00000000..33481859 --- /dev/null +++ b/shopware/app-bundle/5.0/manifest.json @@ -0,0 +1,13 @@ +{ + "bundles": { + "Shopware\\AppBundle\\ShopwareAppBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "src/": "%SRC_DIR%/" + }, + "env": { + "SHOPWARE_APP_NAME": "TestApp", + "SHOPWARE_APP_SECRET": "MySecret" + } +} diff --git a/shopware/app-bundle/5.0/post-install.txt b/shopware/app-bundle/5.0/post-install.txt new file mode 100644 index 00000000..3c53f3e3 --- /dev/null +++ b/shopware/app-bundle/5.0/post-install.txt @@ -0,0 +1,6 @@ + * 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 diff --git a/shopware/app-bundle/5.0/src/Entity/Shop.php b/shopware/app-bundle/5.0/src/Entity/Shop.php new file mode 100644 index 00000000..2d04f87b --- /dev/null +++ b/shopware/app-bundle/5.0/src/Entity/Shop.php @@ -0,0 +1,13 @@ +