Skip to content

Commit

Permalink
feat: add shopware/app-bundle 4.0 variant
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Sep 19, 2024
1 parent be6c378 commit 99ddfb0
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shopware/app-bundle/4.0/config/packages/shopware_app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
shopware_app:
name: '%env(SHOPWARE_APP_NAME)%'
secret: '%env(SHOPWARE_APP_SECRET)%'
doctrine:
shop_class: App\Entity\Shop

Check failure on line 5 in shopware/app-bundle/4.0/config/packages/shopware_app.yaml

View workflow job for this annotation

GitHub Actions / call-qa / Run checks

Indendation must be a multiple of 4 spaces
8 changes: 8 additions & 0 deletions shopware/app-bundle/4.0/config/routes/shopware_app.yaml
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions shopware/app-bundle/4.0/manifest.json
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions shopware/app-bundle/4.0/src/Entity/Shop.php
Original file line number Diff line number Diff line change
@@ -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
{
}

0 comments on commit 99ddfb0

Please sign in to comment.