From e5e55bbe4f20bb56f81be94eb5beae5de1ef8ee1 Mon Sep 17 00:00:00 2001 From: Igor Pinchuk Date: Thu, 10 Sep 2026 21:58:04 +0800 Subject: [PATCH] Add recipe for indexnowkit/symfony-bundle (#2048) --- .../0.15/config/packages/indexnowkit.yaml | 3 +++ .../0.15/config/routes/indexnowkit.yaml | 2 ++ indexnowkit/symfony-bundle/0.15/manifest.json | 15 +++++++++++++++ indexnowkit/symfony-bundle/0.15/post-install.txt | 9 +++++++++ 4 files changed, 29 insertions(+) create mode 100644 indexnowkit/symfony-bundle/0.15/config/packages/indexnowkit.yaml create mode 100644 indexnowkit/symfony-bundle/0.15/config/routes/indexnowkit.yaml create mode 100644 indexnowkit/symfony-bundle/0.15/manifest.json create mode 100644 indexnowkit/symfony-bundle/0.15/post-install.txt diff --git a/indexnowkit/symfony-bundle/0.15/config/packages/indexnowkit.yaml b/indexnowkit/symfony-bundle/0.15/config/packages/indexnowkit.yaml new file mode 100644 index 00000000..fac785ce --- /dev/null +++ b/indexnowkit/symfony-bundle/0.15/config/packages/indexnowkit.yaml @@ -0,0 +1,3 @@ +indexnowkit: + key: '%env(INDEXNOW_KEY)%' + base_url: '%env(INDEXNOW_BASE_URL)%' diff --git a/indexnowkit/symfony-bundle/0.15/config/routes/indexnowkit.yaml b/indexnowkit/symfony-bundle/0.15/config/routes/indexnowkit.yaml new file mode 100644 index 00000000..cf650109 --- /dev/null +++ b/indexnowkit/symfony-bundle/0.15/config/routes/indexnowkit.yaml @@ -0,0 +1,2 @@ +indexnowkit: + resource: '@IndexNowKitBundle/config/routes.php' diff --git a/indexnowkit/symfony-bundle/0.15/manifest.json b/indexnowkit/symfony-bundle/0.15/manifest.json new file mode 100644 index 00000000..f99b9daa --- /dev/null +++ b/indexnowkit/symfony-bundle/0.15/manifest.json @@ -0,0 +1,15 @@ +{ + "bundles": { + "IndexNowKit\\SymfonyBundle\\IndexNowKitBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "#1": "The IndexNow key, served at /.txt. Generate one into .env.local: bin/console indexnow:key:generate --write-env", + "#2": "Empty outside production = dry run (nothing is sent); empty in production = a configuration error indexnow:check explains", + "INDEXNOW_KEY": "", + "#3": "The public URL of the site (console commands and Messenger workers have no request to read it from)", + "INDEXNOW_BASE_URL": "https://www.example.com" + } +} diff --git a/indexnowkit/symfony-bundle/0.15/post-install.txt b/indexnowkit/symfony-bundle/0.15/post-install.txt new file mode 100644 index 00000000..814cb0a2 --- /dev/null +++ b/indexnowkit/symfony-bundle/0.15/post-install.txt @@ -0,0 +1,9 @@ + IndexNow is installed: search engines (Yandex, Bing, Naver, Seznam, ...) get told which pages changed. + + Next steps: + 1. Run bin/console indexnow:key:generate --write-env — writes INDEXNOW_KEY to .env.local + 2. Set INDEXNOW_BASE_URL to the public URL of the site + 3. Add #[IndexNow(route: '...')] to the entities that have a public page (needs indexnowkit/doctrine) + 4. Run bin/console indexnow:check — it verifies the key file, the transport and the configuration + + Documentation: https://github.com/indexnowkit/php/tree/main/packages/symfony-bundle