mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01: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)%'
|
||||
|
||||
8
shopware/app-bundle/1.0/config/routes/shopware_app.yaml
Normal file
8
shopware/app-bundle/1.0/config/routes/shopware_app.yaml
Normal 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
|
||||
|
||||
13
shopware/app-bundle/1.0/manifest.json
Normal file
13
shopware/app-bundle/1.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"
|
||||
}
|
||||
}
|
||||
13
shopware/app-bundle/1.0/src/Entity/Shop.php
Normal file
13
shopware/app-bundle/1.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