add Basic Shopware API

This commit is contained in:
Marko
2022-06-27 10:50:23 +02:00
parent f35f8adceb
commit f2107b024e
12 changed files with 723 additions and 27 deletions

View File

@@ -12,4 +12,5 @@ return [
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true],
ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
];

View File

@@ -1,6 +1,9 @@
# see https://symfony.com/doc/current/reference/configuration/framework.html
framework:
secret: '%env(APP_SECRET)%'
# SHOPWARE_API_URL: '%env(string:SHOPWARE_API_URL)%'
# SHOPWARE_API_KEY: '%env(string:SHOPWARE_API_KEY)%'
# SHOPWARE_API_ID: '%env(string:SHOPWARE_API_ID)%'
#csrf_protection: true
http_method_override: false

View File

@@ -4,6 +4,15 @@
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters:
# the secret key used to generate tokens
# you should change it to a secret key that is not public
# see https://symfony.com/doc/current/security/token_storage.html#secrets-in-symfony-secrets-v3
# the url of the shopware api
SHOPWARE_API_URL: '%env(SHOPWARE_API_URL)%'
# the api key of the shopware api
SHOPWARE_API_KEY: '%env(SHOPWARE_API_KEY)%'
# the api id of the shopware api
SHOPWARE_API_ID: '%env(SHOPWARE_API_ID)%'
services:
# default configuration for services in *this* file