feat: add shopware app sdk (#1508)

This commit is contained in:
Shyim
2023-05-10 19:56:03 +02:00
committed by GitHub
parent c8af99bd45
commit ef5ef86df3
4 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
shopware_app:
shop_class: App\Entity\Shop
name: '%env(SHOPWARE_APP_NAME)%'
secret: '%env(SHOPWARE_APP_SECRET)%'

View File

@@ -0,0 +1,8 @@
shopware_app_lifecycle:
resource: '@ShopwareAppBundle/Resources/config/routing/lifecycle.xml'
prefix: /app
shopware_app_webhook:
resource: '@ShopwareAppBundle/Resources/config/routing/webhook.xml'
prefix: /app

View 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"
}
}

View 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
{
}