diff --git a/archived/symfony.messenger/ba1ac4e919baba5644d31b57a3284d6ba12d52ee.json b/archived/symfony.messenger/ba1ac4e919baba5644d31b57a3284d6ba12d52ee.json new file mode 100644 index 00000000..6defabd7 --- /dev/null +++ b/archived/symfony.messenger/ba1ac4e919baba5644d31b57a3284d6ba12d52ee.json @@ -0,0 +1,66 @@ +{ + "manifests": { + "symfony/messenger": { + "manifest": { + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "#1": "Choose one of the transports below", + "#2": "MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages", + "#3": "MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages", + "MESSENGER_TRANSPORT_DSN": "doctrine://default?auto_setup=0" + }, + "conflict": { + "symfony/framework-bundle": "<4.3" + }, + "post-install-output": [ + " * You're ready to use the Messenger component. You can define your own message buses", + " or start using the default one right now by injecting the message_bus service", + " or type-hinting Symfony\\Component\\Messenger\\MessageBusInterface in your code.", + "", + " * To send messages to a transport and handle them asynchronously:", + "", + " 1. Update the MESSENGER_TRANSPORT_DSN env var in .env if needed", + " and framework.messenger.transports.async in config/packages/messenger.yaml;", + " 2. (if using Doctrine) Generate a Doctrine migration bin/console doctrine:migration:diff", + " and execute it bin/console doctrine:migration:migrate", + " 3. Route your message classes to the async transport in config/packages/messenger.yaml.", + "", + " * Read the documentation at https://symfony.com/doc/current/messenger.html" + ] + }, + "files": { + "config/packages/messenger.yaml": { + "contents": [ + "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://'", + "" + ], + "executable": false + } + }, + "ref": "ba1ac4e919baba5644d31b57a3284d6ba12d52ee" + } + } +} diff --git a/archived/symfony.webapp-pack/aece95c8a188f6e6d04f01ccb8678d1764fd2642.json b/archived/symfony.webapp-pack/aece95c8a188f6e6d04f01ccb8678d1764fd2642.json new file mode 100644 index 00000000..a5513aa8 --- /dev/null +++ b/archived/symfony.webapp-pack/aece95c8a188f6e6d04f01ccb8678d1764fd2642.json @@ -0,0 +1,44 @@ +{ + "manifests": { + "symfony/webapp-pack": { + "manifest": { + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } + }, + "files": { + "config/packages/messenger.yaml": { + "contents": [ + "framework:", + " messenger:", + " failure_transport: failed", + "", + " transports:", + " # https://symfony.com/doc/current/messenger.html#transport-configuration", + " async:", + " dsn: '%env(MESSENGER_TRANSPORT_DSN)%'", + " options:", + " use_notify: true", + " check_delayed_interval: 60000", + " retry_strategy:", + " max_retries: 3", + " multiplier: 2", + " failed: 'doctrine://default?queue_name=failed'", + " # sync: 'sync://'", + "", + " routing:", + " Symfony\\Component\\Mailer\\Messenger\\SendEmailMessage: async", + " Symfony\\Component\\Notifier\\Message\\ChatMessage: async", + " Symfony\\Component\\Notifier\\Message\\SmsMessage: async", + "", + " # Route your messages to the transports", + " # 'App\\Message\\YourMessage': async", + "" + ], + "executable": false + } + }, + "ref": "aece95c8a188f6e6d04f01ccb8678d1764fd2642" + } + } +} diff --git a/symfony.messenger.6.0.json b/symfony.messenger.6.0.json index f4adc4b7..6defabd7 100644 --- a/symfony.messenger.6.0.json +++ b/symfony.messenger.6.0.json @@ -7,9 +7,9 @@ }, "env": { "#1": "Choose one of the transports below", - "#2": "MESSENGER_TRANSPORT_DSN=doctrine://default", - "#3": "MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages", - "#4": "MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages" + "#2": "MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages", + "#3": "MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages", + "MESSENGER_TRANSPORT_DSN": "doctrine://default?auto_setup=0" }, "conflict": { "symfony/framework-bundle": "<4.3" @@ -21,9 +21,11 @@ "", " * To send messages to a transport and handle them asynchronously:", "", - " 1. Uncomment the MESSENGER_TRANSPORT_DSN env var in .env", + " 1. Update the MESSENGER_TRANSPORT_DSN env var in .env if needed", " and framework.messenger.transports.async in config/packages/messenger.yaml;", - " 2. Route your message classes to the async transport in config/packages/messenger.yaml.", + " 2. (if using Doctrine) Generate a Doctrine migration bin/console doctrine:migration:diff", + " and execute it bin/console doctrine:migration:migrate", + " 3. Route your message classes to the async transport in config/packages/messenger.yaml.", "", " * Read the documentation at https://symfony.com/doc/current/messenger.html" ] @@ -58,7 +60,7 @@ "executable": false } }, - "ref": "2523f7d31488903e247a522e760dc279be7f7aaf" + "ref": "ba1ac4e919baba5644d31b57a3284d6ba12d52ee" } } } diff --git a/symfony.webapp-pack.1.0.json b/symfony.webapp-pack.1.0.json index 30cd1e88..a5513aa8 100644 --- a/symfony.webapp-pack.1.0.json +++ b/symfony.webapp-pack.1.0.json @@ -4,9 +4,6 @@ "manifest": { "copy-from-recipe": { "config/": "%CONFIG_DIR%/" - }, - "env": { - "MESSENGER_TRANSPORT_DSN": "doctrine://default?auto_setup=0" } }, "files": { @@ -41,7 +38,7 @@ "executable": false } }, - "ref": "2fb3513dbc139884fc5b7c751242b66f9f10f0c3" + "ref": "aece95c8a188f6e6d04f01ccb8678d1764fd2642" } } }