From bdd83db49e663290a1732c1a922cd607bd629aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 26 Mar 2021 12:10:20 +0100 Subject: [PATCH 1/2] MercureBundle: add support for v0.3 --- symfony/mercure-bundle/0.3/config/packages/mercure.yaml | 7 +++++++ symfony/mercure-bundle/0.3/manifest.json | 1 + 2 files changed, 8 insertions(+) create mode 100644 symfony/mercure-bundle/0.3/config/packages/mercure.yaml create mode 120000 symfony/mercure-bundle/0.3/manifest.json diff --git a/symfony/mercure-bundle/0.3/config/packages/mercure.yaml b/symfony/mercure-bundle/0.3/config/packages/mercure.yaml new file mode 100644 index 00000000..cf9f2128 --- /dev/null +++ b/symfony/mercure-bundle/0.3/config/packages/mercure.yaml @@ -0,0 +1,7 @@ +mercure: + enable_profiler: '%kernel.debug%' + hubs: + default: + url: '%env(MERCURE_URL)%' + public_url: '%env(MERCURE_PUBLIC_URL)%' + jwt: '%env(MERCURE_JWT_TOKEN)%' diff --git a/symfony/mercure-bundle/0.3/manifest.json b/symfony/mercure-bundle/0.3/manifest.json new file mode 120000 index 00000000..601da602 --- /dev/null +++ b/symfony/mercure-bundle/0.3/manifest.json @@ -0,0 +1 @@ +../0.1/manifest.json \ No newline at end of file From 8bb01efaa09bc22d46febe6841798709d466f248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Sat, 3 Apr 2021 11:23:15 +0200 Subject: [PATCH 2/2] finish --- .../0.3/config/packages/mercure.yaml | 5 +++-- symfony/mercure-bundle/0.3/manifest.json | 19 ++++++++++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) mode change 120000 => 100644 symfony/mercure-bundle/0.3/manifest.json diff --git a/symfony/mercure-bundle/0.3/config/packages/mercure.yaml b/symfony/mercure-bundle/0.3/config/packages/mercure.yaml index cf9f2128..f2a73954 100644 --- a/symfony/mercure-bundle/0.3/config/packages/mercure.yaml +++ b/symfony/mercure-bundle/0.3/config/packages/mercure.yaml @@ -1,7 +1,8 @@ mercure: - enable_profiler: '%kernel.debug%' hubs: default: url: '%env(MERCURE_URL)%' public_url: '%env(MERCURE_PUBLIC_URL)%' - jwt: '%env(MERCURE_JWT_TOKEN)%' + jwt: + secret: '%env(MERCURE_JWT_SECRET)%' + publish: '*' diff --git a/symfony/mercure-bundle/0.3/manifest.json b/symfony/mercure-bundle/0.3/manifest.json deleted file mode 120000 index 601da602..00000000 --- a/symfony/mercure-bundle/0.3/manifest.json +++ /dev/null @@ -1 +0,0 @@ -../0.1/manifest.json \ No newline at end of file diff --git a/symfony/mercure-bundle/0.3/manifest.json b/symfony/mercure-bundle/0.3/manifest.json new file mode 100644 index 00000000..76bb94d0 --- /dev/null +++ b/symfony/mercure-bundle/0.3/manifest.json @@ -0,0 +1,18 @@ +{ + "bundles": { + "Symfony\\Bundle\\MercureBundle\\MercureBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "#1": "See https://symfony.com/doc/current/mercure.html#configuration", + "#2": "The URL of the Mercure hub, used by the app to publish updates (can be a local URL)", + "MERCURE_URL": "https://127.0.0.1:8000/.well-known/mercure", + "#3": "The public URL of the Mercure hub, used by the browser to connect", + "MERCURE_PUBLIC_URL": "https://127.0.0.1:8000/.well-known/mercure", + "#4": "The secret used to sign the JWTs", + "MERCURE_JWT_SECRET": "!ChangeMe!" + }, + "aliases": ["mercure"] +}