Add Shopware 6 example (#61)

This commit is contained in:
Cynthia Ebert
2025-12-13 20:06:52 +01:00
committed by GitHub
parent 0cd6ace70a
commit 569b86f260
35 changed files with 12770 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Shopware\Core\Framework\Framework::class => ['all' => true],
Shopware\Core\System\System::class => ['all' => true],
Shopware\Core\Content\Content::class => ['all' => true],
Shopware\Core\Checkout\Checkout::class => ['all' => true],
Shopware\Core\Maintenance\Maintenance::class => ['all' => true],
Shopware\Core\DevOps\DevOps::class => ['e2e' => true],
Shopware\Core\Profiling\Profiling::class => ['all' => true],
Shopware\Core\Service\Service::class => ['all' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
Pentatrion\ViteBundle\PentatrionViteBundle::class => ['all' => true],
Shopware\Administration\Administration::class => ['all' => true],
Shopware\Elasticsearch\Elasticsearch::class => ['all' => true],
Shopware\Storefront\Storefront::class => ['all' => true],
];

3
shopware6/config/jwt/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
*
!.gitignore

View File

@@ -0,0 +1,2 @@
framework:
lock: '%env(LOCK_DSN)%'

View File

@@ -0,0 +1,11 @@
services:
# Register nyholm/psr7 services for autowiring with PSR-17 (HTTP factories)
Psr\Http\Message\RequestFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\ResponseFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\ServerRequestFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\StreamFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\UploadedFileFactoryInterface: '@nyholm.psr7.psr17_factory'
Psr\Http\Message\UriFactoryInterface: '@nyholm.psr7.psr17_factory'
nyholm.psr7.psr17_factory:
class: Nyholm\Psr7\Factory\Psr17Factory

View File

@@ -0,0 +1,5 @@
controllers:
resource:
path: ../src/Controller/
namespace: App\Controller
type: attribute

View File

@@ -0,0 +1,27 @@
# This file is the entry point to configure your own services.
# Files in the packages/ subdirectory configure your dependencies.
# 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:
shopware.store.frw: '1'
default_cdn_strategy: 'physical_filename'
shopware.cdn.strategy: '%env(default:default_cdn_strategy:SHOPWARE_CDN_STRATEGY_DEFAULT)%'
env(OPENSEARCH_URL): 'http://localhost:9200'
services:
# default configuration for services in *this* file
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
# Binding arguments by name or type
# https://symfony.com/doc/current/service_container.html#binding-arguments-by-name-or-type
#bind:
# 'bool $isDebug': '%kernel.debug%'
App\:
resource: '../src/'
exclude:
- '../src/DependencyInjection/'
- '../src/Entity/'
- '../src/Kernel.php'