From 6e0529aba412412e441424e3ed2b6f74f5914654 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Fri, 10 Jan 2025 11:27:29 +0100 Subject: [PATCH] Add flysystem, messenger, workflow recipes --- .env | 7 ++++++ config/bundles.php | 1 + config/packages/flysystem.yaml | 7 ++++++ config/packages/messenger.yaml | 22 ++++++++++++++++ config/packages/workflow.yaml | 2 ++ symfony.lock | 46 ++++++++++++++++++++++++++++++++++ 6 files changed, 85 insertions(+) create mode 100644 config/packages/flysystem.yaml create mode 100644 config/packages/messenger.yaml create mode 100644 config/packages/workflow.yaml diff --git a/.env b/.env index 8d2460a8..1f1d8f12 100644 --- a/.env +++ b/.env @@ -49,3 +49,10 @@ DATABASE_URL="mysql://root:ChangeMe@127.0.0.1:3306/su_myapp?serverVersion=8.0.32 # Email address that will receive system notifications and might be used as universal fallback value by bundles SULU_ADMIN_EMAIL=example@localhost ###< sulu/sulu ### + +###> symfony/messenger ### +# Choose one of the transports below +# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages +# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages +MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0 +###< symfony/messenger ### diff --git a/config/bundles.php b/config/bundles.php index b321e72c..7b0249d9 100644 --- a/config/bundles.php +++ b/config/bundles.php @@ -45,4 +45,5 @@ Sulu\Bundle\TrashBundle\SuluTrashBundle::class => ['all' => true], Sulu\Bundle\ReferenceBundle\SuluReferenceBundle::class => ['all' => true], Scheb\TwoFactorBundle\SchebTwoFactorBundle::class => ['all' => true], + League\FlysystemBundle\FlysystemBundle::class => ['all' => true], ]; diff --git a/config/packages/flysystem.yaml b/config/packages/flysystem.yaml new file mode 100644 index 00000000..d104e2e3 --- /dev/null +++ b/config/packages/flysystem.yaml @@ -0,0 +1,7 @@ +# Read the documentation at https://github.com/thephpleague/flysystem-bundle/blob/master/docs/1-getting-started.md +flysystem: + storages: + default.storage: + adapter: 'local' + options: + directory: '%kernel.project_dir%/var/storage/default' diff --git a/config/packages/messenger.yaml b/config/packages/messenger.yaml new file mode 100644 index 00000000..672b6c40 --- /dev/null +++ b/config/packages/messenger.yaml @@ -0,0 +1,22 @@ +framework: + messenger: + # Uncomment this (and the failed transport below) to send failed messages to this transport for later handling. + # failure_transport: failed + + transports: + # https://symfony.com/doc/current/messenger.html#transport-configuration + # async: '%env(MESSENGER_TRANSPORT_DSN)%' + # failed: 'doctrine://default?queue_name=failed' + # sync: 'sync://' + + routing: + # Route your messages to the transports + # 'App\Message\YourMessage': async + +# when@test: +# framework: +# messenger: +# transports: +# # replace with your transport name here (e.g., my_transport: 'in-memory://') +# # For more Messenger testing tools, see https://github.com/zenstruck/messenger-test +# async: 'in-memory://' diff --git a/config/packages/workflow.yaml b/config/packages/workflow.yaml new file mode 100644 index 00000000..855df59c --- /dev/null +++ b/config/packages/workflow.yaml @@ -0,0 +1,2 @@ +framework: + workflows: null diff --git a/symfony.lock b/symfony.lock index 799cd8f9..b23b011f 100644 --- a/symfony.lock +++ b/symfony.lock @@ -88,6 +88,19 @@ "config/packages/jms_serializer.yaml" ] }, + "league/flysystem-bundle": { + "version": "3.3", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "main", + "version": "1.0", + "ref": "913dc3d7a5a1af0d2b044c5ac3a16e2f851d7380" + }, + "files": [ + "config/packages/flysystem.yaml", + "var/storage/.gitignore" + ] + }, "massive/build-bundle": { "version": "0.5.7" }, @@ -254,6 +267,18 @@ "config/packages/mailer.yaml" ] }, + "symfony/messenger": { + "version": "7.1", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "main", + "version": "6.0", + "ref": "ba1ac4e919baba5644d31b57a3284d6ba12d52ee" + }, + "files": [ + "config/packages/messenger.yaml" + ] + }, "symfony/monolog-bundle": { "version": "3.10", "recipe": { @@ -333,6 +358,15 @@ "templates/base.html.twig" ] }, + "symfony/uid": { + "version": "7.1", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "main", + "version": "7.0", + "ref": "0df5844274d871b37fc3816c57a768ffc60a43a5" + } + }, "symfony/validator": { "version": "7.1", "recipe": { @@ -358,6 +392,18 @@ "config/routes/web_profiler.yaml" ] }, + "symfony/workflow": { + "version": "7.1", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "main", + "version": "3.3", + "ref": "3b2f8ca32a07fcb00f899649053943fa3d8bbfb6" + }, + "files": [ + "config/packages/workflow.yaml" + ] + }, "vincentlanglet/twig-cs-fixer": { "version": "3.0", "recipe": {