-
-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add shopware/app-bundle 4.0 variant (#1673)
- Loading branch information
Showing
5 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
shopware_app: | ||
name: '%env(SHOPWARE_APP_NAME)%' | ||
secret: '%env(SHOPWARE_APP_SECRET)%' | ||
# You should use doctrine or dynamodb as storage | ||
storage: 'in-memory' | ||
doctrine: | ||
shop_class: App\Entity\Shop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
{ | ||
} |