mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-23 16:22:19 +01:00
Add support for shopware/app-bundle 5.x (#1921)
This commit is contained in:
@@ -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
|
||||
7
shopware/app-bundle/5.0/config/routes/shopware_app.yaml
Normal file
7
shopware/app-bundle/5.0/config/routes/shopware_app.yaml
Normal file
@@ -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
|
||||
13
shopware/app-bundle/5.0/manifest.json
Normal file
13
shopware/app-bundle/5.0/manifest.json
Normal file
@@ -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"
|
||||
}
|
||||
}
|
||||
6
shopware/app-bundle/5.0/post-install.txt
Normal file
6
shopware/app-bundle/5.0/post-install.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
* <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
|
||||
13
shopware/app-bundle/5.0/src/Entity/Shop.php
Normal file
13
shopware/app-bundle/5.0/src/Entity/Shop.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use Doctrine\ORM\Mapping\Entity;
|
||||
use Shopware\AppBundle\Entity\AbstractShop;
|
||||
|
||||
#[Entity]
|
||||
class Shop extends AbstractShop
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user