mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-14 08:36:34 +03:00
feat: add shopware app sdk (#1508)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
shopware_app:
|
||||
shop_class: App\Entity\Shop
|
||||
name: '%env(SHOPWARE_APP_NAME)%'
|
||||
secret: '%env(SHOPWARE_APP_SECRET)%'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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