From eb8eea5f30e997ba6aee35968d2c3f0c3e3ff4b9 Mon Sep 17 00:00:00 2001 From: HypeMC <2445045+HypeMC@users.noreply.github.com> Date: Tue, 29 Oct 2024 03:35:33 +0100 Subject: [PATCH] Add Sofascore Purgatory Bundle (#1701) --- .../1.0/config/packages/purgatory.yaml | 32 +++++++++++++++++++ sofascore/purgatory-bundle/1.0/manifest.json | 8 +++++ .../purgatory-bundle/1.0/post-install.txt | 6 ++++ 3 files changed, 46 insertions(+) create mode 100644 sofascore/purgatory-bundle/1.0/config/packages/purgatory.yaml create mode 100644 sofascore/purgatory-bundle/1.0/manifest.json create mode 100644 sofascore/purgatory-bundle/1.0/post-install.txt diff --git a/sofascore/purgatory-bundle/1.0/config/packages/purgatory.yaml b/sofascore/purgatory-bundle/1.0/config/packages/purgatory.yaml new file mode 100644 index 000000000..b43c11c6e --- /dev/null +++ b/sofascore/purgatory-bundle/1.0/config/packages/purgatory.yaml @@ -0,0 +1,32 @@ +# Read the full documentation at: https://sofascore.github.io/purgatory-bundle/ + +purgatory: + # Define patterns for routes whose controllers should not be checked for #[PurgeOn] attributes. + route_ignore_patterns: [ '/^_profiler/', '/^_wdt/' ] + + # Define the purger to use. For Varnish, set it to "varnish". To create a custom purger, refer to: + # https://sofascore.github.io/purgatory-bundle/custom-purgers.html + purger: + name: symfony + # Specify the hosts from which URLs should be purged. This is primarily used by the Varnish purger. + # hosts: [] + + # To process purge requests asynchronously, configure the Symfony Messenger transport. For more details, visit: + # https://sofascore.github.io/purgatory-bundle/#configuring-asynchronous-processing + # messenger: + # transport: null + # # Set the number of URLs to dispatch per message. Defaults to using all URLs passed to the purger. + # batch_size: null + +when@dev: + purgatory: + # Ignore all purge requests during development. + purger: void + +when@test: + purgatory: + # Enable asserting in tests that the expected purge requests were dispatched. For details, see: + # https://sofascore.github.io/purgatory-bundle/#testing + purger: in-memory + # Disable collecting purge request data in the test environment. + profiler_integration: false diff --git a/sofascore/purgatory-bundle/1.0/manifest.json b/sofascore/purgatory-bundle/1.0/manifest.json new file mode 100644 index 000000000..cd8961b89 --- /dev/null +++ b/sofascore/purgatory-bundle/1.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Sofascore\\PurgatoryBundle\\PurgatoryBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} diff --git a/sofascore/purgatory-bundle/1.0/post-install.txt b/sofascore/purgatory-bundle/1.0/post-install.txt new file mode 100644 index 000000000..8d5873118 --- /dev/null +++ b/sofascore/purgatory-bundle/1.0/post-install.txt @@ -0,0 +1,6 @@ + + Getting Started with sofascore/purgatory-bundle + + + * Configure a purger based on your HTTP cache backend in config/packages/purgatory.yaml + * Read the complete documentation at https://sofascore.github.io/purgatory-bundle/